安裝:
apt-get install openssh-server
啟動:
systemctl enable ssh
其他可能用到的命令:
systemctl disable ssh
#關閉ssh開機自動啟動命令
systemctl start ssh
#單次開啟
ssh
systemctl stop ssh
#單次關閉
ssh
reboot
#設置好后重啟系統
systemctl status ssh
#查看ssh是否啟動
posted on 2020-06-29 13:59
小王 閱讀(229)
評論(0) 編輯 收藏 引用 所屬分類:
linux