How to Use the SecureCRT Connects Ubuntu Server

用secureCRT连接Ubuntu是出现远程系统拒绝访问。。经过一翻研究才知道Ubuntu上没有ssh.

 

以下为连接过程。

 

1. 首先要明白什么是ssh?

可以把ssh看做是telnet的加强版,telnet的密码和信息都是不加密的,而ssh则加密。

.
2. 开启ubuntu上的ssh功能

先安装,安装后就自动开启了.

sudo apt-get install openssh-server openssh-client
 

.

3. 安装secureCRT

.
4. 查看ubuntu的ip

ifconfig
 

(注意是ifconfig,不是windows上的ipconfig)

.
5. 连接

secureCRT => Quick Connect, 连接ubuntu, 输入ubuntu的id和pwd

. 如果还连接不上,可能是Ubuntu上的ssh服务没有开启。

. 启动ssh-server。

$ /etc/init.d/ssh restart
 



. 确认ssh-server已经正常工作。

$ netstat -tlp
tcp6    0    0 *:ssh                *:*                   LISTEN     -
 


看到上面这一行输出说明ssh-server已经在运行了。

另 在客户端通过ssh登录服务器。假设服务器的IP地址是192.168.0.103,登录的用户名是hyx。

$ ssh -l hyx 192.168.0.103
 



6. 汉字乱码问题的解决

连接成功了,发现secureCRT对汉字显示乱码。google了下,好像说ubuntu 2.6 kernel的ssh默认编码是utf8,而secureCRT的默认显示编码好像不是utf8,那么只要把secureCRT的显示编码修改成utf8 就可以正确显示了。在secureCRT中,选择option->session option->apperance里把字符编码改成utf8。

你可能感兴趣的:(windows,工作,Google,ubuntu,ssh)