一般Ubuntu都会默认安装openssh-client,但是没有安装openssh-server。
安装ssh服务器
sudo apt install openssh-server
安装ssh客户端
sudo apt install openssh-client

配置ssh客户端,去掉PasswordAuthentication yes前面的#号,保存退出
sudo gedit /etc/ssh/ssh_config
Linux Ubuntu下如何安装和配置ssh教程
配置ssh服务器,把PermitRootLogin prohibit-password改成PermitRootLogin yes,保存退出。
sudo gedit /etc/ssh/sshd_config

Linux Ubuntu下如何安装和配置ssh教程

重启ssh服务
sudo /etc/init.d/ssh restart

安装及配置完成!

相关文章:

  • 2021-10-06
  • 2021-10-27
  • 2022-12-23
  • 2021-10-21
  • 2021-10-23
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
相关资源
相似解决方案