国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

ssh報(bào)錯(cuò):kex_exchange_identification

這篇具有很好參考價(jià)值的文章主要介紹了ssh報(bào)錯(cuò):kex_exchange_identification。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

問題分析

今年回校之后發(fā)現(xiàn)ssh登錄服務(wù)器會(huì)概率性出現(xiàn)kex_exchange_identification的錯(cuò)誤。根據(jù)博文可知是ssh連接數(shù)量過多。進(jìn)而猜測(cè)有肉雞服務(wù)器嘗試進(jìn)行ssh爆破。
通過命令cat /var/log/auth.log |more可以發(fā)現(xiàn)大量校園內(nèi)網(wǎng)IP正在撞庫爆破。
key_exchange_identification,ssh,服務(wù)器,linux

解決方案

1. 增加允許的sshd連接數(shù)

按照博文的方案將允許的sshd連接數(shù)改為2000發(fā)現(xiàn)雖然登錄成功的概率增加了但并不能阻止肉雞服務(wù)器的爆破。

2. 打開22端口的防火墻

sudo ufw enable # 啟動(dòng)防火墻
sudo ufw delete allow 22/tcp # 關(guān)閉22端口
sudo ufw allow from 自己電腦的IP #

這樣就只有指定IP能夠訪問22端口,防止爆破。不過這個(gè)方法需要單獨(dú)為實(shí)驗(yàn)室每個(gè)成員添加IP白名單,比較麻煩。

3. 修改ssh端口

vi /etc/ssh/sshd_config

key_exchange_identification,ssh,服務(wù)器,linux
一般來說,ssh爆破都是針對(duì)22端口,只需要將ssh修改成任意其他空閑端口就可以避免被爆破。

service ssh restart # 重啟ssh服務(wù)

4. fail2ban登錄鎖定

參考博文。文章來源地址http://www.zghlxwxcb.cn/news/detail-636576.html

到了這里,關(guān)于ssh報(bào)錯(cuò):kex_exchange_identification的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • Git報(bào)錯(cuò)Kex_exchange_identification

    Git報(bào)錯(cuò)Kex_exchange_identification

    問題: 本地項(xiàng)目push到github失敗 Push failed Kex_exchange_identification: Connection closed by remote hostConnection closed by 20.205.243.166 port 22 Could not read from remote repository. Please make sure you have the correct access rightsand the repository exists. 同樣地,從github中clone、pull、fetch也報(bào)上述錯(cuò)誤 解決方法 一般情況

    2024年01月25日
    瀏覽(17)
  • 【日常踩坑】解決 kex_exchange_identification 報(bào)錯(cuò)

    最近在使用 git 時(shí),發(fā)現(xiàn) git pull 時(shí)經(jīng)常會(huì)出現(xiàn)下面的報(bào)錯(cuò) kex_exchange_identification: Connection closed by remote host ,導(dǎo)致無法正常拉取代碼 和之前的 解決 pip 安裝第三方包時(shí)因 SSL 報(bào)錯(cuò) 原因類似,都是因?yàn)榫W(wǎng)絡(luò)代理導(dǎo)致的 主要是代理服務(wù)商為了安全考慮,避免被人當(dāng)作跳板,會(huì)主動(dòng)

    2024年01月22日
    瀏覽(51)
  • ssh 連接出現(xiàn)錯(cuò)誤: kex_exchange_identification: Connection closed by remote host

    ssh 連接出現(xiàn)錯(cuò)誤: kex_exchange_identification: Connection closed by remote host

    錯(cuò)誤如下表示: windstorm@LocalHost-Server ~ ssh webase-front@192.168.122.22 Couldn\\\'t get a file descriptor referring to the console. fish: Unknown command: nc fish: exec nc -X connect -x 127.0.0.1:15732 192.168.122.22 22 ???? ^^ kex_exchange_identification: Connection closed by remote host 當(dāng)出現(xiàn)這種錯(cuò)誤的時(shí)候,不要慌,我在csdn上面

    2024年02月09日
    瀏覽(17)
  • SSH遠(yuǎn)程連接報(bào)錯(cuò):kex_exchange_identification: Connection closed by remote host

    SSH遠(yuǎn)程連接報(bào)錯(cuò):kex_exchange_identification: Connection closed by remote host

    kex_exchange_identification: Connection closed by remote host 刪除known_hosts,重啟終端即可

    2024年02月11日
    瀏覽(20)
  • SSH遠(yuǎn)程連接時(shí)報(bào)錯(cuò)kex_exchange_identification: Connection closed by remote host

    在 SSH 服務(wù)器上進(jìn)行遠(yuǎn)程內(nèi)容時(shí),會(huì)經(jīng)常出現(xiàn) kex_exchange_identification: Connection closed by remote host 內(nèi)容,主要是由于遠(yuǎn)程計(jì)算機(jī)登錄節(jié)點(diǎn)的數(shù)量限制問題。 在 SSH 服務(wù)器上,最大并發(fā)登錄會(huì)話數(shù)是由 ‘MaxSessions’ 參數(shù)來控制的。 ‘MaxSessions’ 參數(shù)決定了 ssh 服務(wù)器最多會(huì)話數(shù)限制

    2024年02月16日
    瀏覽(34)
  • git報(bào)錯(cuò)——kex_exchange_identification: read: Software caused connection abort banner exchange......

    git報(bào)錯(cuò)——kex_exchange_identification: read: Software caused connection abort banner exchange......

    1、問題: 在IDE推送的時(shí)候,出現(xiàn)了如下的問題,特此記錄一下: kex_exchange_identification: read: Software caused connection abort banner exchange: Connection to 175.24.250.178 port 22: Software caused connection abort fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository

    2024年02月11日
    瀏覽(32)
  • 解決ssh:connect to host github.com port 22: Connection timed out與kex_exchange_identification

    解決ssh:connect to host github.com port 22: Connection timed out與kex_exchange_identification

    無法進(jìn)行clone項(xiàng)目和其他Git操作。執(zhí)行檢測(cè)連接命令 ssh -T git@github,com 報(bào)錯(cuò) ssh:connect to host github.com port 22: Connection timed out 即:連接22端口超時(shí) 涉及到的文件 : C:UsersJIACHENGER.sshconfig C:UsersJIACHENGER.sshgithub_id_rsa C:UsersJIACHENGER.sshgithub_id_rsa.pub C:UsersJIACHENGER.sshknown_hosts 生成

    2024年02月06日
    瀏覽(20)
  • github上傳文件遇到錯(cuò)誤:kex_exchange_identification: read: Software caused connection abort banner exchange:

    github上傳文件遇到錯(cuò)誤:kex_exchange_identification: read: Software caused connection abort banner exchange:

    github上傳文件時(shí),連接不上ssh,輸入ssh -T git@github.com,檢查連接,出現(xiàn)以下錯(cuò)誤: kex_exchange_identification: read: Software caused connection abort banner exchange: Connection to 20.205.243.166 port 22: Software caused connection abort 其中20.205.243.166是github的地址,22號(hào)端口是和你連接的端口。這段話意思是

    2024年02月10日
    瀏覽(30)
  • kex_exchange_identification: Connection closed by remote host

    登錄遠(yuǎn)程服務(wù)器時(shí),出現(xiàn)了這個(gè)問題,費(fèi)了好幾個(gè)小時(shí)定位,最后發(fā)現(xiàn)是開了代理。 兩個(gè)解決方案: 把代理關(guān)掉 在代理規(guī)則里過濾掉服務(wù)器的ip

    2024年02月14日
    瀏覽(21)
  • github: kex_exchange_identification: Connection closed by remote host

    github: kex_exchange_identification: Connection closed by remote host

    參照下邊文檔 https://docs.github.com/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port 進(jìn)入config文件 添加下述配置 結(jié)果如下圖 運(yùn)行如下代碼進(jìn)行驗(yàn)證 如果都沒問題,重新git pull自己代碼倉庫里的代碼,發(fā)現(xiàn)可以正常拉取,問題至此解決

    2024年02月05日
    瀏覽(52)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包