安裝ssh
sudo apt install ssh
配置ssh
sudo vim /etc/ssh/sshd_config
修改
#Port 22 #註釋
Port 22 #添加這行
#StrictModes yes # 註釋
PasswordAuthentication yes # 允許密碼登錄
重啓ssh服務
sudo service ssh restart
錯誤
執行
dpkg-reconfigure openssh-server
重新啓動即可