1. 程式人生 > >關於CRT連線到虛擬機器Linux系統的幾個問題。

關於CRT連線到虛擬機器Linux系統的幾個問題。

linux中遇到的CRT連線問題?
在無線網路環境中,Linux的網路配置有下面幾個步驟:
1、終端輸入 ifconfig 檢視IP 在root許可權下
2、netconfig 設定網路IP如上查詢
3、啟動網路服務service network restart 
4、ping IP查詢是否連通


CRT連線超時有sshd沒有啟動:service sshd start 
CRT連線顯示主機無法訪問出現:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
  @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @ 
 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
  Permissions 0755 for '/etc/ssh_host_key' are too open. 
  It is recommended that your private key files are NOT accessible by others. 
  This private key will be ignored. 
  bad permissions: ignore key: /etc/ssh_host_key 
  Could not load host key: /etc/ssh_host_key


可以用以下步驟解決:
執行命令  # cd /etc/ssh 
# chmod 0644 *  
# chmod 0600 ssh_host_dsa_key ssh_host_key ssh_host_rsa_key 
# /etc/init.d/sshd start  
starting sshd:             [OK]
 如果不行 出現報錯  
Starting sshd: /var/empty/sshd must be owned by root and not group or world-writable.         [FAILED] 
執行  
chown -R root.root /var/empty/sshd   
chmod 744 /var/empty/sshd   
service sshd restart