Ubuntu安装openssh-server与openssh-client
1、安装服务器sudo apt-get install openssh-server
2、安装客户端sudo apt-get install openssh-client
3、查看是否启动sshd
sudo ps -e | grep sshd
如下图已经启动
如果没启动则启动服务sudo /etc/init.d/ssh
crt登录Ubuntu 点击 connect
发现登录失败。提示:
这是秘钥交互失败,需要修改相关配置文件如下
sudo vi /etc/ssh/ssh_config修改文件为以下截图
sudo vi /etc/ssh/sshd_config修改文件为以下截图
就是将ssh_config文件中的
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
复制到sshd_config文件中,然后重启服sshd服务器。
sudo /etc/init.d/ssh restart
重新连接即可连接上
参考链接:https://blog.csdn.net/zls986992484/article/details/52683332