一,安装
sudo apt update && sudo apt upgrade sudo apt install openssh-server
二,配置
vim /etc/ssh/sshd_config Port 22 ListenAddress 0.0.0.0 PermitRootLogin yes PubkeyAuthentication no PasswordAuthentication yes UseLogin yes
三,运行
1,命令行
" /usr/sbin/sshd -d" " /usr/sbin/sshd -D -d"
2,服务管理
systemctl status ssh.service systemctl status sshd.service