一、首先要知道什么是ssh
可以把ssh看做是telnet的加强版,telnet的密码和信息都是不加密的,而ssh是加密。
二、在ubuntu上安装ssh(需要系统联网)
输入:sudo apt-get install openssh-server openssh-client
启动SSH服务
输入:sudo /etc/init.d/ssh start
配置ssh :
输入:gedit /etc/ssh/ssh_config
去掉 PasswordAuthenitcation, Port 22 ,Protocol 2,1这三行前的注释#
三、关闭防火墙
sudo ufw disable(防火墙在系统启动时自动禁用)
重启Ubuntu系统
四、安装secureCRT
五、查看ubuntu的ip
ifconfig(注意是ifconfig,不是windows上的ipconfig)
六、连接 secureCRT
secureCRT -> Quick Connect(快速连接)
Protocol选择SSH2,Hostname输入Ubuntu的IP地址,Port输入22,Firewall选择none,username 输入Ubuntu的用户名
七、汉字乱码问题的解决
连接成功了,发现secureCRT对汉字显示乱码。google了下,好像说ubuntu 2.6 kernel的ssh默认编码是utf8,而secureCRT的默认显示编码好像不是utf8,那么只要把secureCRT的显示编码修改成utf8就可以正确显示了。在secureCRT中,选择option(选项)->session option(会话选项)->apperance(外观)里把字符编码改成utf8。