- 编辑/etc/ssh/sshd_config文件,允许密码登录,允许22端口
Port 22
PasswordAuthentication yes
- 移除文件:sudo rm /etc/ssh/sshd_not_to_be_run
- 使能ssh服务:sudo systemctl enable ssh
- 打开ssh服务:sudo systemctl start ssh
- Optional重启ssh服务:sudo /etc/init.d/ssh restart
Bitnami虚拟机镜像使能ssh访问