Ubuntu安装和配置ssh教程

一般Ubuntu都会默认安装openssh-client,但是没有安装openssh-server。

安装ssh服务器

sudo apt install openssh-server


安装ssh客户端

sudo apt install openssh-client
 

 配置ssh客户端,去掉PasswordAuthentication yes前面的#号,保存退出

sudo vi /etc/ssh/ssh_config


配置ssh服务器,把PermitRootLogin prohibit-password改成PermitRootLogin yes,保存退出。

重启ssh服务

sudo /etc/init.d/ssh restart

[LINUX]使用SecureCRT登录时候报错:

https://blog.csdn.net/dannistang/article/details/75096435
 
原文链接:https://blog.csdn.net/future_ai/article/details/81701744

猜你喜欢

转载自blog.csdn.net/z1026544682/article/details/114227669