1.首先要明白什么是ssh?
可以把ssh看做是telnet的加强版,telnet的密码和信息都是不加密的,而ssh则加密。
2.开启ubuntu上的ssh功能
先安装,安装后就自动开启了
(1).sudoapt-get install openssh-server openssh-client
(2)首先安装SSH服务
输入:sudoapt-getinstallopenssh-server
启动SSH服务
输入:sudo /etc/init.d/ssh start
启动之后可以检查是否安装成功并启动
输入:ssh-v
OpenSSH_5.1p1Debian-6ubuntu2,OpenSSL0.9.8g19Oct2007
usage:ssh[-1246AaCfgKkMNnqsTtVvXxY][-bbind_address][-ccipher_spec]
[-D[bind_address:]port][-eescape_char][-Fconfigfile]
[-iidentity_file][-L[bind_address:]port:host:hostport]
[-llogin_name][-mmac_spec][-Octl_cmd][-ooption][-pport]
[-R[bind_address:]port:host:hostport][-Sctl_path]
[-wlocal_tun[:remote_tun]][user@]hostname[command]
看到类似信息,说明安装并启动成功!
安装成功之后还需要修改配置才能使用
修改ssh配置:
输入:sudo pico/etc/ssh/ssh_config
去掉PasswordAuthenitcation,Port22,Protocol2,1这三行前的注释
这里需要重启一下系统。
3.安装secureCRT
4.查看ubuntu的ip
ifconfig(注意是ifconfig,不是windows上的ipconfig)
.
5.连接
(1)secureCRT=>QuickConnect(快速连接),连接ubuntu,输入ubuntu的id和pwd
(2)重启之后,设置SecureCRT连接Linux
Protocol选择SSH2,Hostname输入Ubuntu的IP地址,Port输入22,Firewall选择none,username输入Ubuntu的用户名
点击Connect
6.汉字乱码问题的解决
连接成功了,发现secureCRT对汉字显示乱码。google了下,好像说ubuntu2.6kernel的ssh默认编码是utf8,而secureCRT的默认显示编码好像不是utf8,那么只要把secureCRT的显示编码修改成utf8就可以正确显示了。在secureCRT中,选择option(选项)->sessionoption(会话选项)->apperance(外观)里把字符编码改成utf8。
可以把ssh看做是telnet的加强版,telnet的密码和信息都是不加密的,而ssh则加密。
2.开启ubuntu上的ssh功能
先安装,安装后就自动开启了
(1).sudoapt-get install openssh-server openssh-client
(2)首先安装SSH服务
输入:sudoapt-getinstallopenssh-server
启动SSH服务
输入:sudo /etc/init.d/ssh start
启动之后可以检查是否安装成功并启动
输入:ssh-v
OpenSSH_5.1p1Debian-6ubuntu2,OpenSSL0.9.8g19Oct2007
usage:ssh[-1246AaCfgKkMNnqsTtVvXxY][-bbind_address][-ccipher_spec]
[-D[bind_address:]port][-eescape_char][-Fconfigfile]
[-iidentity_file][-L[bind_address:]port:host:hostport]
[-llogin_name][-mmac_spec][-Octl_cmd][-ooption][-pport]
[-R[bind_address:]port:host:hostport][-Sctl_path]
[-wlocal_tun[:remote_tun]][user@]hostname[command]
看到类似信息,说明安装并启动成功!
安装成功之后还需要修改配置才能使用
修改ssh配置:
输入:sudo pico/etc/ssh/ssh_config
去掉PasswordAuthenitcation,Port22,Protocol2,1这三行前的注释
这里需要重启一下系统。
3.安装secureCRT
4.查看ubuntu的ip
ifconfig(注意是ifconfig,不是windows上的ipconfig)
.
5.连接
(1)secureCRT=>QuickConnect(快速连接),连接ubuntu,输入ubuntu的id和pwd
(2)重启之后,设置SecureCRT连接Linux
Protocol选择SSH2,Hostname输入Ubuntu的IP地址,Port输入22,Firewall选择none,username输入Ubuntu的用户名
点击Connect
6.汉字乱码问题的解决
连接成功了,发现secureCRT对汉字显示乱码。google了下,好像说ubuntu2.6kernel的ssh默认编码是utf8,而secureCRT的默认显示编码好像不是utf8,那么只要把secureCRT的显示编码修改成utf8就可以正确显示了。在secureCRT中,选择option(选项)->sessionoption(会话选项)->apperance(外观)里把字符编码改成utf8。
886

被折叠的 条评论
为什么被折叠?



