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