第一步,安装openssh-server
sudo apt install openssh-server
第二步,开启服务
sudo service ssh start
第三步,检查sshd是否开启
sudo ps -aux | grep sshd
如果看到sshd进程则说明sshd服务已经开启
apt install vim
vim /etc/ssh/sshd_config
HostKeyAlgorithms=+ssh-rsa,ssh-dss
KexAlgorithms=+diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
service sshd restart 或者 systemctl restart sshd
第四步,查看服务器ip地址,远程PC通过sshd连接则可
全部评论