SSH看做是telnet的加強版,telnet的密碼和資訊都是不加密的,而ssh則加密。
想用SecureCRT串連Linux--Ubuntu,需要SSH服務的支援,很多Linux系統在安裝的時候是不安裝SSH服務的,所以需要自己手動安裝,才能用SecureCRT串連Linux。
情境描述:
主機 Windows2003,虛擬機器VMware,虛擬機器系統Ubuntu 9.10
首先安裝SSH服務
輸入:sudo apt-get install openssh-server
啟動SSH服務
輸入:sudo /etc/init.d/ssh start
啟動之後可以檢查是否安裝成功並啟動
輸入:ssh -v
OpenSSH_5.1p1 Debian-6ubuntu2, OpenSSL 0.9.8g 19 Oct 2007
usage: ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-i identity_file] [-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-w local_tun[:remote_tun]] [user@]hostname [command]
看到類似資訊,說明安裝並啟動成功!
安裝成功之後還需要修改配置才能使用
修改ssh配置 :
輸入:sudo pico /etc/ssh/ssh_config
去掉 PasswordAuthenitcation, Port 22 ,Protocol 2,1這三行前的注釋#
注意哦, ubuntu9.10裡沒有permitrootlogin之類的東西
這裡需要重啟一下系統。
重啟之後,設定SecureCRT串連Linux。
Protocol選擇SSH2,Hostname輸入Ubuntu的IP地址,Port輸入22,Firewall選擇none,username輸入Ubuntu的使用者名稱
點擊Connect
看到下面的資訊,說明串連成功了,可以用SecureCRT操作Linux了,不用再切換到虛擬機器進行操作了,呵呵!
SecureCRT串連Ubuntu顯示亂碼的問題
options->sessionOptions->appearance
將Character修改為UTF-8
將“User Unicode line drawing chara” 取消選中狀態
重新登入!
本文來自CSDN部落格,轉載請標明出處:http://blog.csdn.net/happyjiang2009/archive/2010/07/15/5738214.aspx