1. 程式人生 > >ssh遠端報錯ssh_exchange_identification: read: Connection reset by peer

ssh遠端報錯ssh_exchange_identification: read: Connection reset by peer

通過命令在兩臺伺服器間傳輸檔案

scp [email protected]**************:/data/Doc/hlg_superdv/caffe_rtpose-**** ./

返回錯誤

ssh_exchange_identification: read: Connection reset by peer

初步原因鎖定:

1-伺服器防火牆限定,

2-是否達到ssh的最大連線數,超過之後會伺服器端會拒絕新的連線,直到有新的連線釋放出來

3-/etc/hosts.allow和/etc/hosts.deny配置檔案限定ip登入

解決方案:

1 firewall-cmd --list-all-zones

    檢視pubilic.xml和ssh.xml兩個防火牆配置檔案,是否放通指定ip

2 w 檢視當天ssh遠端連線數,是否達到最大連線數

   #vim /etc/ssh/sshd_config

     #LoginGraceTime 2m    引數表示登入驗證時間

     #MaxAuthTries 6    最大驗證重試次數

     #MaxSessions 10    最大遠端連線數

3 vim /etc/hosts.all和vim /etc/hosts.deny檢視限定的ip

4 檢視ssh使用者登入日誌/var/log/secure

    tail -20 /var/log/secure    

or

    #less /var/log/messages    檢視最近系統操作資訊

or

    #last    檢視最近登入日誌

檢查完後仍然沒有解決問題,檔案依然傳輸不了。

最終通過原始檔伺服器ifconfig 獲取內網地址,後將scp命令中的ip地址改為內網地址,傳輸完成



相關推薦

ssh遠端ssh_exchange_identification: read: Connection reset by peer

通過命令在兩臺伺服器間傳輸檔案 scp [email protected]**************:/data/Doc/hlg_superdv/caffe_rtpose-**** ./ 返回錯誤 ssh_exchange_identification: rea

suse ssh連線拒絕, ssh_exchange_identification: read: Connection reset by peer

   操作報錯現象,ssh遠端伺服器,提示ssh_exchange_identification: read: Connection reset by peer  ,但是能夠ping的通  執行ssh -v [email protected]&n

ssh連線遠端伺服器:ssh_exchange_identification: read: Connection reset by peer

查閱資料這是伺服器超過使用者最大連線數,雲伺服器後臺遠端連線修改一下自動連線數: ----> -----> 輸入密碼遠端連線之後: 進入usr目錄,然後輸入:  vi /etc/ssh/sshd_config  按i編輯,修改這個引

CentOS7使用ssh不能登錄,Read from socket failed: Connection reset by peer

read from socket failed: connection reset by peer使用xshell登錄CentOS7,不能登錄,使用另外一臺Linux主機,telent 22端口是同的,ssh連接報以下錯誤:Read from socket failed: Connection reset b

CentOS7 yum的一次" 14: curl#56 - "Recv failure: Connection reset by peer" "

yum1、故障現象[[email protected]/* */ src]# yum update Loaded plugins: fastestmirror, langpacks Could not retrieve mirrorlist 7&arch=x86_64&repo

ssh登陸:packet_write_wait: Connection to x.x.x.x port 22: Broken pipe

多臺 tro following eat ESS and config 說明 user ssh登陸報錯:packet_write_wait: Connection to x.x.x.x port 22: Broken pipe 參考文章: https://patrickmn

SSH error ( Read from socket failed: Connection reset by peer ) and it's solution

ssh cann't connected ,event in localhost[[email protected] ssh]# ssh 127.0.0.1Read from socket failed: Connection reset by peertry the following refe

pyspider連線rabbitmq ,結果出現socket.error: [Errno 104] Connection reset by peer 這樣的資訊

linux系統中: pyspider+rabbitmq+mongodb環境下啟動pyspider時出現socket.error: [Errno 104] Connection reset by peer 的錯誤資訊。 首先,分享一下自己總結的做維護或者排除bug 的思路:

curl ipcurl: (56) Recv failure: Connection reset by peer

背景:  第三方伺服器存在”域名白名單”控制,我這邊提供公網ip給對方,加好後,curl 對方的介面,出現 curl: (56) Recv failure: Connection reset by p

【OpenStack】SSH登入虛擬機器出現"Read from socket failed: Connection reset by peer"問題的解決辦法

宣告: 本部落格歡迎轉發,但請保留原作者資訊! 新浪微博:@孔令賢HW; 內容系本人學習、研究和總結,如有雷同,實屬榮幸! 1、問題現象 版本:Grizzly master分支程式碼2013.06.17 部署:三個節點(Controller/Compute + Netw

ECS雲主機SSH連接提示“Connection reset by peer”的解決辦法和解決思路

阿裏雲 運維思想 工單支持 三周前剛從上家公司換到新的公司,這家公司與上家公司相比對阿裏雲的雲計算環境更加的依賴,使用的ECS實例和其他服務如SLB、RDS、OSS等更多了一個數量級。這篇文章的背景就是為了解決阿裏雲ECS雲主機SSH連接的一個問題,從故障發現到故障排除到最後反思的一個詳細

docker exec failed!!error from pipe caused \"read parent: connection reset by peer\"問題

一、復現報錯: docker exec -it  wsqtest  bash rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container p

Linux連線總是connection reset by peer問題!!!程式退出的解決辦法

求救:Linux連線總是報:connection reset by peer問題!!! 各位大哥:小弟我在Linux下寫的服務程式,當壓力很大(連線客戶量多頻繁、傳送請求頻繁)的時候,服務總是會部分連線報connection reset by peer錯誤,結

vmware虛擬機器下CentOS7.2出現ssh連線被connection reset by peer錯誤

用vmware 11 安裝了centos7.2後,用ssh工具遠端連接出現connection reset by peer錯誤,檢查防火牆和/etc/hosts.deny等都沒有發現問題,於是停止sshd服務,啟用debug模式跟蹤: /usr/sbin/sshd -d 

Redis遠端連線失敗-“Connection reset by peer”的解決方式(Win10以及Ubuntu)

每篇一句: The business of life is the acquisition of memories. In the end that’s all there is. 問題出現: 今天在在本機(Windows 10)以及虛擬

subsystem request failed on channel 0 Couldn't read packet: Connection reset by peer

sftp [email protected]: 提示錯誤: subsystem request failed on channel 0Couldn't read packet: Connection reset by peer 解決辦法: /etc/ssh/ssh

FtpClient連線ftp Connection reset by peer: socket write error異常

使用FtpClient連線ftp時候發現報Connection reset by peer: socket write error錯誤,但是之前一個demo連線確沒有問題,最後對比了一下發現jdk版本不一樣,報錯專案使

LR回放https協議腳本失敗:[GENERAL_MSG_CAT_SSL_ERROR]connect to host "XXX" failed:[10054] Connection reset by peer [MsgId:MERR-27780]

網絡連接 advance sgid 服務器 vuser con run load sgi 最近做一個負載均衡項目的性能測試,使用LR錄制腳本協議為https協議,回放腳本時出現報錯: [GENERAL_MSG_CAT_SSL_ERROR]connect to host "

connection reset by peer, socket write error問題分析

getc 主動 連接 返回 知識 可能 -- 成功 connect 上次寫《connection reset by peer, socket write error問題排查》已經過去大半年,當時把問題“敷衍”過去了。 但是此後每隔一段時間就會又想起來,baidu、googl

connection reset by peer問題總結及解決方案

net 方維 catch 火墻 tst buffer 整理 pos 在服務器 找遍了 中英文網站,翻遍了能找的角落,發現了出現故障的原因和原理,及改如何處理,這裏記錄下,希望能幫助到有需要的小夥伴,少走點彎路, 以上就整理內容: connection res