容器多了,用命令(docker exec)进入容器觉得太麻烦, 为了避免麻烦,笔者在docker容器安装了ssh. 于是出现了以下错误.080836fadc3a ~# /etc/init.d/sshd startbash-4.3# ssh root@192.168.1.54root@192.168.1.54's password:Last login: Tue Jul 5 06:51:12 2016 from 192.168.1.46Connection to 192.168.1.54 closed.bash-4.3# - 登陆后自动退出容器.080836fadc3a ~# vim /etc/ssh/sshd_configPermitRootLogin yesUsePAM no080836fadc3a ~# /etc/init.d/sshd restartbash-4.3# ssh root@192.168.1.54080836fadc3a ~#
|
评分
-
查看全部评分
|