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

 

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2021-04-14
  • 2021-12-17
  • 2021-03-27
  • 2021-12-04
  • 2021-05-26
  • 2021-06-21
猜你喜欢
  • 2021-09-30
  • 2021-12-21
  • 2021-04-11
  • 2021-06-07
  • 2022-02-05
  • 2021-12-29
  • 2021-04-13
相关资源
相似解决方案