apt install openssh-server
vim /etc/ssh/sshd_config
Port 22
/etc/init.d/ssh start
出现错误
# service ssh start
* Starting OpenBSD Secure Shell server sshd
sshd: no hostkeys available -- exiting.
解决办法
ssh-keygen -A
标签:容器,sshd,etc,server,start,ssh,Docker
From: https://www.cnblogs.com/zhangxuechao/p/16955038.html