2016-11-29 185 views
-2

關閉在終端上的Mac OS該密碼進入ssh連接上連接

ssh [email protected] 

立即看到它

Welcome to Ubuntu 12.04.5 LTS (GNU/Linux 2.6.32-042stab120.6 i686) 
* Documentation: https://help.ubuntu.com/ 
Last login: Tue Nov 29 14:38:45 2016 from yy.yy.yy.yy 
Connection to xx.xx.xx.xx closed. 

爲什麼連接被關閉?

回答

0

驗證您正在使用的用戶(例如login)是否有權通過服務器訪問ssh。

也有可能在您的.bash_profile中有exit 0。這會導致會話在登錄後立即關閉。 您可以嘗試使用此命令將其刪除:ssh [email protected] sed -i '/exit\ 0/d' .bashrc .bash_profile .profile .login