用xshell 連線伺服器提示:Could not connect to '192.168.0.104' (port 22): Connection failed.
xshell 連線伺服器時提示:
Could not connect to '192.168.0.104' (port 22): Connection failed.的解決方法如下:
(1)、檢視網路是否連通
ping 192.168.0.104
正在 Ping 192.168.0.104 具有 32 位元組的資料:
來自 192.168.0.104 的回覆: 位元組=32 時間=1ms TTL=64
來自 192.168.0.104 的回覆: 位元組=32 時間<1ms TTL=64
來自 192.168.0.104 的回覆: 位元組=32 時間<1ms TTL=64
若能ping通則證明網路連通,問題出在伺服器埠,否則需要設定伺服器網路,直至能ping通。然後執行(2)
(2)、檢查伺服器防火牆是否關閉或者22埠是否開啟
(方法一)關閉防火牆:
sudo ufw disable
(方法二)防火牆開啟時只打開22埠:
sudo ufw allow 22
(3)、檢視ssh服務是否安裝及開啟 檢視伺服器是否安裝ssh:
ps -e |grep ssh
若無安裝執行以下命令:
sudo apt-get install openssh-server
開啟ssh服務:
/etc/init.d/ssh start
到此即可成功使用xshell進入伺服器
相關推薦
用xshell 連線伺服器提示:Could not connect to '192.168.0.104' (port 22): Connection failed.
xshell 連線伺服器時提示: Could not connect to '192.168.0.104' (port 22): Connection failed. 的解決方法如下: (1)、檢視網路是否連通 ping 192.168.0.104 正在 Ping 192
Xshell連結錯誤:Could notconnect to '192.168.18.128' (port 22): Connection failed.
Xshell連結錯誤:Could notconnect to '192.168.18.128' (port 22): Connection failed. 找了度娘,谷歌中的一些方案,都沒能解決,現在把我這裡的解決方案進行一個記錄和總結希望對您有多收穫:
Android Studio 開啟除錯 時 提示:could not connect to remote progress Aborting debug session
1. 在 AndroidMenifest.xml 新增: android:debuggable="true" 允許除錯。 <application android:debuggable="true" andr
Pycharm報錯:Could not connect to 127.0.0.1: XXXX NoneType: None,原因解析
今日陽光明媚,照常開啟自己的Pycharm工程檔案,點選執行。竟然報錯了,最近對它可沒做什麼修改呀。檢視報錯原因如下: Could not connect to 127.0.0.1: 61153 (此處編號可能不同,但問題一樣) NoneType: None 1、無法連線到127.0.
Navicat連線伺服器出現:Can't connect to mysql server on
1.重啟防火牆試試: service iptables restart 2.或者: 附錄iptables防火牆的命令 查詢防火牆狀態: [[email protected] ~]# service iptables status 停止防火牆: [[e
Beeline連線報錯:Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10000/default
java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10000/default: java.net.ConnectException: 拒絕連線
Xshell 6連線CentOS 7報錯Could not connect to '192.168.122.1' (port 22): Connection failed.
我之前在網上找了各種方法,都沒有連線成功,感覺自己都要炸了。很多都是說防火牆或者橋接/net連線的問題,我研究了很久,都沒有什麼用,或許你可以試試這種方法。 解決方法:很可能是你根本沒有生成IP地址,可以試一下service network restart,就會生成一個新的IP地址,如下圖:
Spring @Value("$XXX")注入值失敗,錯誤資訊提示:Could not resolve placeholder佔位符不能被解析
問題原因: Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'wx.app.config.appid' in string value "${wx.app.config
eclipse中svn外掛突然出現錯誤,不能連線svn了:Could not create the view: org.tigris.subversion.subclipse.ui.repositor
Myeclipse中突然與svn斷開連線無法找到svn通用的解決方法: 記得之前也遇到著這樣的錯,當時網上也找了一些方法,不過都沒用,後來自己它弄好但忘了具體方法,這次又遇見相同的錯,於是還是自己搞,終於解決,這次把它記下: 1、找到eclipse下的dropin
解決Maven提示:Could not read settings.xml, assuming default values
最近在學習Maven 時總是出現 Could not read settings.xml, assuming default values 錯誤,使得使用者配置無法生效,在網上找了很多資料仍然解決
Xshell 鏈接 Could not connect to '192.168.80.129' (port 22): Connection failed
ip地址 開機 add 5.0 could not 自啟 -s 刪除 需要 在使用Xshell鏈接虛擬機VM裏面的Linux的時候、鏈接失敗,報 Could not connect to ‘192.168.80.129‘ (port 22): Connection fai
Centos7誤刪/root目錄後重啟報錯:Could not chdir to home directory /root: No such file or directory
誤刪/root目錄 一、報錯: 二、解決辦法: 一、報錯: 誤刪根目錄的root資料夾 重啟後提示錯誤 could not chdir to home directory /root:No such file direc
Eclipse中啟動Tomcat時(MAVEN專案),報錯:Could not publish to the server. java.lang.IndexOutOfBoundsException的解決過程
Eclipse中啟動Tomcat時(MAVEN專案),報錯:Could not publish to the server. java.lang.IndexOutOfBoundsException,tomcat啟動失敗, 原因:該MAVEN專案下載的本地jar包存在下載失敗的情況 &nbs
activeMQ出現異常: javax.jms.JMSException: Could not connect to broker URL: tcp://192.168.25.131:61616. R
activeMQ出現異常: javax.jms.JMSException: Could not connect to broker URL: tcp://192.168.25.131:61616. Reason: java.net.ConnectException: Connection t
部署CM報錯(7):hue無法訪問hbase報錯:HBase Thrift 1 server cannot be contacted: Could not connect to hadoop02:90
1.問題描述 cm安裝hue後,訪問hbase資料庫,報錯 HBase Thrift 1 server cannot be contacted: Could not connect to hadoop02:9090 2.問題原因 hbase的thrift server 1被關閉
ssh 不能連線linux系統 Could not connect to '192.168.X.X'(port 22) Connection failed
centOS7配置好IP地址後,發現可以ping通,但是不能ssh遠端連線 解決辦法: 檢視防火牆:service iptables status 關閉防火牆:service iptables stop 開啟防火牆:service iptables start 發現不是防火牆的原
部署CM報錯(1):Unable to issue query: could not connect to the Host Monitor,無法顯示charts
一、問題描述 點選clouldera manager無法顯示各個效能圖片,報錯 Unable to issue query: could not connect to the Host Monitor 二、原因: 沒有安裝 the Management service
解決redis-cli連線時出現Could not connect to Redis at 127.0.0.1:6379: Connection refused
原因:服務端未啟動[[email protected] bin]# ./redis-server redis.conf[[email protected] bin]# redis-cli-bash: redis-cli: 未找到命令[[email
telnet服務開啟了,但是xshell卻遠程不上去 出現的報錯信息 Connecting to 192.168.26.135:23... Could not connect to '192.168.26.135' (port 23): Connection failed.
ble ets conn telnet iptables bsp gre top table 用netstat -ntpl |grep :23命令查看端口Telnet服務已經開啟了 在虛擬機上也能telnet得上(telnet+ip地址) 但是在xshell上卻登錄
Apache啟動報錯:could not bind to address [::]:443 解決辦法
安裝Apache伺服器的時候,報如下錯誤: Installing the 'apache' service The 'apache' service is successfully installed. Testing httpd.conf.... Errors repo