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