ssh远程连接docker中的Linux系统

下载ssh

docker中的系统

sudo apt install openssh-server
sudo apt install ssh

检查ssh状态

service ssh status

修改ssh配置文件

sudo vim /etc/ssh/sshd_config
将PermitRootLogin设置为yes
PermitRootLogin yes

保存退出

连接即可
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/CSDN_Ethan2086/article/details/131454754