【Linux】Windows以SSH方式远程登录ubuntu16.04

1. win10主机端安装SSH Client,我使用的是SSHSecureShellClient-3.2.9.exe。

生成两个图标

【Linux】Windows以SSH方式远程登录ubuntu16.04_第1张图片

一个是ssh命令行模式登陆,一个是传输文件的图形窗口。

2. Ubuntu16.04安装ssh

sudo apt-get install openssh-server

3.  打开SSH Secure Shell Client

【Linux】Windows以SSH方式远程登录ubuntu16.04_第2张图片

点击Quick Connect

【Linux】Windows以SSH方式远程登录ubuntu16.04_第3张图片

输入服务器的ip地址,以及登陆服务器的账号,点击Connect。

然后可能会报错:“server responded”algorithm negotiation failed

【Linux】Windows以SSH方式远程登录ubuntu16.04_第4张图片

这个时候需要去ubuntu服务器端做一下修改。

sudo vim /etc/ssh/sshd_config

在文件末尾添加如下内容:

Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc

MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,hmac-sha1-96,hmac-md5-96

KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,[email protected]

重启ssh服务

sudo service ssh restart

 这个时候重新点击Connect,提示输入密码。输入密码,点击OK。

【Linux】Windows以SSH方式远程登录ubuntu16.04_第5张图片

连接成功。

 

【Linux】Windows以SSH方式远程登录ubuntu16.04_第6张图片

你可能感兴趣的:(linux)