1. win10主机端安装SSH Client,我使用的是SSHSecureShellClient-3.2.9.exe。
生成两个图标
一个是ssh命令行模式登陆,一个是传输文件的图形窗口。
2. Ubuntu16.04安装ssh
sudo apt-get install openssh-server
3. 打开SSH Secure Shell Client
点击Quick Connect
输入服务器的ip地址,以及登陆服务器的账号,点击Connect。
然后可能会报错:“server responded”algorithm negotiation failed”
这个时候需要去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,umac-64@openssh.com,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,curve25519-sha256@libssh.org
重启ssh服务
sudo service ssh restart
这个时候重新点击Connect,提示输入密码。输入密码,点击OK。
连接成功。
<li class="tool-item tool-active is-like "><a href="javascript:;"><svg class="icon" aria-hidden="true"> <use xlink:href="#csdnc-thumbsup"></use> </svg><span class="name">点赞</span> <span class="count">1</span> </a></li>