the host may be down,or there may be a problem with the network connection. Sometimes such problems can also be caused by a misconfigured firewall.

遇到這樣的問題可能有這幾個情況:
1、在安裝centos的時候沒安裝ssh
2、sshd_config與ssh_config配置問題
3、IP問題
4、防火墻問題

一、安裝CentOS SSH
yum install ssh
二、啟動SSH
service sshd start

三、進入系統文件etc/ssh/sshd_config文件配置

1.vi /etc/ssh/sshd_config 將PermitRootLogin的注釋取消,或者將no改為yes。
2.service sshd restart
3.setup命令進入將防火墻關閉。

四、進入系統文件 /etc/ssh/ssh_config文件配置

在終端下面輸入:vi /etc/ssh/ssh_config

去掉Port 22前面的#號

Port 22

五、配置IP

ifconfig eth0 192.168.121.11

This error indicates that SSH Secure Shell for Workstations cannot establish a connection to the remote host computer. There are several reasons that might cause this situation.

It may be that you have simply made a typing mistake, and there is an error in the name of the remote host computer. In this case you should also receive an error stating that the host is unknown.

Check that you have defined the correct port number for the connection. The port can be changed on the Connection page of the Settings dialog.

There may be problems with the configuration or physical setup of the network connection. Verify that other network connections are functioning.

This problem may also arise if your local system is protected by a firewall and the firewall has not been properly configured. If you suspect that this is the case, ask your local system administrator to reconfigure the firewall.

There may also be a temporary problem with the remote host computer. If this is the case, you should wait for a while and try to connect again later. Contact the administrator of the remote host computer for additional information.

這個錯誤表示工作站的SSH安全Shell不能建立到遠程主機電腦的連接。有幾個原因可能導致這種情況。

這可能是因為你只是做了一個打字錯誤,有一個錯誤在遠程主機的計算機名稱。在這種情況下,你也應該會收到一個錯誤,說明該主機是未知。

檢查是否已定義為連接正確的端口號。可以改變端口上的連接“頁面設置”對話框。

有可能是與網絡連接的配置或物理安裝的問題。確認網絡連接是否正常。

如果您的本地系統防火墻和防火墻沒有正確配置的保護,這個問題也可能出現。如果懷疑是這種情況,請問您的本地系統管理員重新配置防火墻。

也有可能是一個與遠程主機上的臨時問題。如果是這樣的話,你應該等待一段時間,并嘗試再次連接后。更多信息,遠程主機的計算機管理員聯系。

圖解:



大小: 32.2 KB



大小: 37.7 KB


最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容

  • Spring Cloud為開發人員提供了快速構建分布式系統中一些常見模式的工具(例如配置管理,服務發現,斷路器,智...
    卡卡羅2017閱讀 134,948評論 18 139
  • 一、Nagios簡介 Nagios是一款開源的電腦系統和網絡監視工具,能有效監控Windows、Linux和Uni...
    1b3bd36d9d21閱讀 8,223評論 3 13
  • CentOS7下Firewall防火墻配置用法詳解 centos 7中防火墻是一個非常的強大的功能了,但對于cen...
    很少更新了閱讀 5,709評論 0 9
  • (共計1187字,建議閱讀時間2.5分鐘) 今天繼續閱讀約翰·哈蒂的《可見的學習(教師版)》一書,并從中get到重...
    行者V閱讀 898評論 0 1
  • 就這樣,有些人也許一輩子也見不到了。 我懷念過去,我太過于看淡時間流逝,以至于我活的有些孤獨。 但是我不悔,因為我...
    孫旌棋閱讀 245評論 0 0