Today installed Ubuntu Server 14.04 in the terminal configuration root password, use SECURECRT and putty unexpectedly can not SSH login, SecureCRT always prompt password is wrong, but can certainly enter the password 100% correct, With Putty has been reported to access Denied, so you can be sure that the system restricts the root does not allow remote SSH login.
But normal user remote ssh login after su root normal! Why
It turns out there's a limit in sshd_config.
#vim/etc/ssh/sshd_config
1 2345 |
# authentication: #PermitRootLogin without-password #找到这里, annotate it Code class= "Bash plain"? permitrootlogin yes #改为yes Then restart <a href= "http://so.21ops.com/cse/search?s=9181936462520079739&entry=1&q=ssh" class= " Bdcs-inlinelink "target=" _blank ">SSH</A> strictmodes yes ??? |
#service ssh restart??
#Tips: note here that/etc/init.d/ssh restart is unsuccessful in this way.
Ubuntu Server 14.04 under root cannot ssh login