1. 程式人生 > >在Windows上通過putty遠程登錄CentOS

在Windows上通過putty遠程登錄CentOS

引導啟動 down 輸入 upd ssh 獲取 如果 clean href

目的:在windows上通過putty(或者secureCRT)遠程登錄centos6.5

硬件:centos6.5服務器一臺,windows客戶機一臺

軟件:ssh、putty(或者SecureCRT)

centos6.5端操作步驟

yum install openssh-server

安裝過程中,系統會自動配置好,如果找不到包,就更新一下軟件源。

更新軟件源步驟:

1. 刪除之前的更新列表

sudo rm /var/lib/apt/lists/* -rvf

2. 清理一下垃圾:

sudo apt-get autoremove

sudo apt-get autoclean

3. 更新一下引導啟動項



sudo update-grub

4. 獲取最近的列表

sudo apt-get update

Windows通過ssh服務遠程登錄centos6.5

Windows端有多種登錄centos服務器的方法,這裏只介紹putty和SecureCRT。

一、使用putty:

1.安裝putty並打開;

2.輸入centos服務器的IP地址;

3.按照提示輸入用戶名,然後輸入密碼即可登錄。

二、使用SecureCRT:

1. 安裝SecureCRT並打開;

2. 點擊快速連接,協議選擇SSH2,主機名填寫centos服務器的IP地址,用戶名填寫centos服務器的用戶名之一,其他選項默認,然後點擊連接;

3. 按照提示輸入對應於上步中用戶名的密碼,選擇保存密碼,點擊確定即可登錄centos服務器。

4. 設置一下SecureCRT,選項 -- 會話選項 -- 外觀,當前顏色方案選擇白/黑,字體選擇16號,字符編碼選擇UTF-8(否則中文會亂碼),點擊確定即可。、

Linux通過ssh服務遠程登錄centos6.5

Linux安裝ssh後(安裝方式和centos類似)。

在終端輸入以下命令用來登錄和退出:

登錄:

ssh [email protected]服務器主機ip

退出:

exit

其他要說明的問題

1. Windows和centos要能互相ping通,否則無法登陸。

2. 如果不能ping通,首先考慮centos的防火墻是否讓ssh服務通過,然後考慮Windows和centos有沒有在同一個局域網內(當然,高手也可以設置成非局域網也可登錄,即也可以互相ping通)。

putty下載地址: http://download.csdn.net/detail/u010787933/8097347

SecureCRT下載地址: http://download.csdn.net/detail/u010787933/8097317

winscp下載地址(可用在Windows端和centos互相拷貝文件):http://download.csdn.net/detail/u010787933/8097355

原文鏈接:http://blog.csdn.net/geng823/article/details/40591943

在Windows上通過putty遠程登錄CentOS