Loading

ubuntu install ssh

  1. 安装软件
sudo apt-get install openssh-server
  1. 设置ssh开机启动
sudo systemctl enable ssh
  1. 开启ssh服务
sudo systemctl start ssh
  1. 允许 root 远程登录
sudo vim /etc/ssh/sshd_config

将 **** 修改为 yes

PermitRootLogin ****

参考
https://www.cyberciti.biz/faq/ubuntu-linux-install-openssh-server/

posted @ 2023-01-04 15:59  lif323  阅读(56)  评论(0)    收藏  举报