1、首先安装openssh-server
apt update && apt install openssh-server
2、修改sshd_config 配置,允许远程
vi /etc/ssh/sshd_config
PasswordAuthentication yes
ChallengeResponseAuthentication yes
UsePAM yes
3、重启ssh服务
/etc/init.d/ssh restar
apt update && apt install openssh-server
vi /etc/ssh/sshd_config
/etc/init.d/ssh restar