zl程序教程

您现在的位置是:首页 >  其他

当前栏目

在docker运行sshd作为服务端

2023-04-18 16:17:32 时间

启动容器,监听端口(或者host网络)

安装

apt-get install openssh-server

配置

修改端口

vim /etc/ssh/sshd_config

Port 27138

改成喜欢的端口,因为22端口很可能冲突。

运行

service ssh start