1. 運行 apt search openssh-server 查看是否安裝ssh服務。
2. 如已安裝,運行 sudo dpkg-reconfigure openssh-server 重新配置shh服務。
3. 運行 sudo service ssh restart 重新啟動服務后,使用 sudo service ssh status 查看服務狀態。
4. 運行 sudo systemctl enable ssh 將ssh服務設置為用戶登錄時啟動。
5. 在其他機器上嘗試ssh連接: ssh user@ip_address
參考: https://linuxconfig.org/how-to-install-ssh-server-on-ubuntu-18-04-bionic-beaver-linux