2020-04-21
更完整的介紹:
https://blog.csdn.net/qq_34672033/article/details/89633244
ssh 安裝
# ubuntu 下 sudo apt-get install openssh-server # 啟動 sudo /etc/init.d/ssh start # 設置開機自啟動 sudo systemctl enable ssh # 關閉 sudo systemctl disable ssh # 單次開啟ssh sudo systemctl start ssh sudo systemctl stop ssh # 卸載ssh sudo apt-get –purge remove sshd
其他linux系統下安裝與卸載方式:
https://blog.csdn.net/eddy23513/article/details/81366507
ssh 遠程重啟
# ssh 用戶名@ip;接下來需要輸入該用戶的密碼,這里使用的非root用戶 ssh benny@192.168.1.18 # 登錄后 sudo reboot
