在服务器上安装VirtualBox并配置转发:
VirtualBox网络连接方式,选择默认的NAT连接方式。
在下面有个 “端口转发” 按钮,点击配置主机到虚拟机的端口映射。
ref: http://blog.sina.com.cn/s/blog_484d87770102uxi6.html
配置好之后发现putty可以连ssh, 而xshell连不了,应该是它版本太低,修改配置ssh-server:
在/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]
ref: http://blog.csdn.net/wonder4/article/details/52241002