bash-4.3# ssh root@192.168.1.54
root@192.168.1.54's password:
Last login: Tue Jul 5 06:51:12 2016 from 192.168.1.46
Connection to 192.168.1.54 closed.
bash-4.3#
// 登陆后自动退出容器.
//解决登陆后自动退出容器
080836fadc3a ~# vim /etc/ssh/sshd_config
PermitRootLogin yes
UsePAM no
080836fadc3a ~# /etc/init.d/sshd restart
//再次登陆容器
bash-4.3# ssh root@192.168.1.54
080836fadc3a ~#
本文由 Mr Gu 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: Oct 12, 2016 at 02:44 pm