我跑
sudo apt install openssh-server
并得到
openssh-server is already the newest version.
然后我跑
sudo systemctl status sshd
然后它回应
sshd.service
Loaded: error (Reason: No such file or directory)
Active: inactive (dead)
但似乎还是可以的
ssh -V
OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.13, OpenSSL 1.0.1f 6 Jan 2014
答案1
您应该先尝试删除它,然后重新安装它。
sudo apt remove openssh-server
sudo apt install openssh-server