校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識庫 > Linux SSH登錄很慢的解決方法

Linux SSH登錄很慢的解決方法

熱門標簽:淘寶系統退貨外呼項目考試答案 2020電銷機器人排行 廳外呼梯系統布線 貴陽語音電銷機器人招商 焦作人工智能電話機器人軟件 鹽城客服外呼系統軟件 北京市地圖標注 百度地圖標注陰影動態 鄭州營銷外呼系統運營商

使用ssh客戶端(如:putty)連接Linux服務器,可能會等待10-30秒才有提示輸入密碼。嚴重影響工作效率。登錄很慢,登錄上去后速度正常,這種情況主要有兩種可能的原因:

1. DNS反向解析問題

OpenSSH在用戶登錄的時候會驗證IP,它根據用戶的IP使用反向DNS找到主機名,再使用DNS找到IP地址,最后匹配一下登錄的IP是否合法。如果客戶機的IP沒有域名,或者DNS服務器很慢或不通,那么登錄就會很花時間。

解決辦法:

在目標服務器上修改sshd服務器端配置,并重啟sshd

復制代碼
代碼如下:

vi /etc/ssh/sshd_config
UseDNS no

2. 關閉ssh的gssapi認證

用ssh -v user@server 可以看到登錄時有如下信息:

復制代碼
代碼如下:

debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information

注:ssh -vvv user@server 可以看到更細的debug信息

解決辦法:

修改sshd服務器端配置

復制代碼
代碼如下:

vi /etc/ssh/ssh_config
GSSAPIAuthentication no

可以使用ssh -o GSSAPIAuthentication=no user@server登錄

GSSAPI ( Generic Security Services Application Programming Interface) 是一套類似Kerberos 5的通用網絡安全系統接口。該接口是對各種不同的客戶端服務器安全機制的封裝,以消除安全接口的不同,降低編程難度。但該接口在目標機器無域名解析時會有問題

使用strace查看后發現,ssh在驗證完key之后,進行authentication gssapi-with-mic,此時先去連接DNS服務器,在這之后會進行其他操作

復制代碼
代碼如下:

[root@192-168-3-40 ~]# ssh -vvv root@192.168.3.44
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.3.44 [192.168.3.44] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/identity-cert type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug3: Wrote 960 bytes for a total of 981
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug3: Wrote 24 bytes for a total of 1005
debug2: dh_gen_key: priv key bits set: 120/256
debug2: bits set: 506/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: Wrote 144 bytes for a total of 1149
debug3: check_host_in_hostfile: host 192.168.3.44 filename /root/.ssh/known_hosts
debug3: check_host_in_hostfile: host 192.168.3.44 filename /root/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 8
debug1: Host '192.168.3.44' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:8
debug2: bits set: 527/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: Wrote 16 bytes for a total of 1165
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug3: Wrote 48 bytes for a total of 1213
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /root/.ssh/identity ((nil))
debug2: key: /root/.ssh/id_rsa ((nil))
debug2: key: /root/.ssh/id_dsa ((nil))
debug2: key: /root/.ssh/id_ecdsa ((nil))
debug3: Wrote 64 bytes for a total of 1277
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup gssapi-keyex
debug3: remaining preferred: gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-keyex
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug2: we did not send a packet, disable method
debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
debug3: Trying to reverse map address 192.168.3.44.
debug1: Unspecified GSS failure. Minor code may provide more information
Cannot determine realm for numeric host address/p> p>debug1: Unspecified GSS failure. Minor code may provide more information
Cannot determine realm for numeric host address/p> p>debug1: Unspecified GSS failure. Minor code may provide more information/p> p>
debug1: Unspecified GSS failure. Minor code may provide more information
Cannot determine realm for numeric host address/p> p>debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug3: no such identity: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug3: no such identity: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug3: no such identity: /root/.ssh/id_dsa
debug1: Trying private key: /root/.ssh/id_ecdsa
debug3: no such identity: /root/.ssh/id_ecdsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
root@192.168.3.44's password:

標簽:六安 青島 大理 大慶 周口 大興安嶺 遼寧 樂山

巨人網絡通訊聲明:本文標題《Linux SSH登錄很慢的解決方法》,本文關鍵詞  Linux,SSH,登錄,很慢,的,解決,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《Linux SSH登錄很慢的解決方法》相關的同類信息!
  • 本頁收集關于Linux SSH登錄很慢的解決方法的相關信息資訊供網民參考!
  • 推薦文章
    校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃
    国产精品乱码一区二区三区软件| 国产一区二区三区免费看| 国产成都精品91一区二区三| 午夜成人免费视频| 亚洲精品高清视频在线观看| 国产精品天美传媒| 国产精品三级在线观看| 国产精品视频观看| 国产拍欧美日韩视频二区| 精品盗摄一区二区三区| 久久亚洲春色中文字幕久久久| 精品嫩草影院久久| 午夜av一区二区| 精久久久久久久久久久| 久久精品国产亚洲aⅴ| 日产国产欧美视频一区精品| 午夜日韩在线观看| 亚洲bt欧美bt精品777| 蜜臀av性久久久久蜜臀av麻豆| 日本欧美在线观看| 国产美女视频91| 成人午夜视频在线观看| 色94色欧美sute亚洲线路二| 欧美日韩在线电影| 日韩一区二区中文字幕| 久久综合久久综合久久综合| 国产精品欧美一级免费| 亚洲第一二三四区| 国产综合色在线| gogo大胆日本视频一区| 国产一区二区在线观看视频| 国产精品久久久久久久久免费相片| 精品国产一区二区国模嫣然| 一本一本大道香蕉久在线精品| 一本一本久久a久久精品综合麻豆| 欧美日韩在线播放一区| 精品国产一二三区| 亚洲黄色小说网站| 国产自产高清不卡| 色先锋久久av资源部| 欧美成人午夜电影| 亚洲人123区| 久久综合综合久久综合| 99re6这里只有精品视频在线观看| 欧美午夜宅男影院| 国产色爱av资源综合区| 亚洲第一福利一区| 成人免费视频一区二区| 在线成人av影院| ...av二区三区久久精品| 青青国产91久久久久久| 91激情五月电影| 久久久综合网站| 亚洲动漫第一页| 国产激情一区二区三区| 91精品办公室少妇高潮对白| 久久久久久久久久久黄色| 亚洲一区二区av在线| 成人国产精品免费观看| 26uuu国产在线精品一区二区| 亚洲超碰精品一区二区| 91亚洲精品久久久蜜桃| 久久久久国色av免费看影院| 亚洲成人免费视| 色综合久久久久久久| 中文字幕免费观看一区| 国产一区二区免费在线| 日韩视频一区二区在线观看| 丝袜亚洲另类欧美| 欧美日韩在线播放三区四区| 亚洲精品欧美综合四区| 粉嫩久久99精品久久久久久夜 | 国产原创一区二区| 欧美一区二区三区的| 亚洲成av人在线观看| 91久久精品网| 亚洲黄一区二区三区| 欧美大肚乱孕交hd孕妇| 91丨porny丨国产| 中文幕一区二区三区久久蜜桃| 亚洲色图第一区| 国产在线精品免费| 欧美本精品男人aⅴ天堂| 久久精品人人做人人爽人人| 欧美精品tushy高清| 日本一区免费视频| 狠狠色丁香九九婷婷综合五月| 欧美一区二区三区四区视频| 偷拍一区二区三区| 欧美日韩国产影片| 天堂va蜜桃一区二区三区| 欧美日韩成人一区二区| 午夜欧美在线一二页| 欧美精品18+| 欧美一区二区三区在线视频| 国产+成+人+亚洲欧洲自线| 国产午夜亚洲精品不卡| 国内久久精品视频| 日本一区二区三区久久久久久久久不 | 一区二区三区不卡视频| 在线日韩国产精品| 日本成人在线视频网站| 日韩欧美一区在线| 国产精品亚洲成人| 国产精品久99| 欧美久久久久久久久中文字幕| 日韩精品久久理论片| 26uuu久久天堂性欧美| 99re这里只有精品6| 亚洲图片欧美综合| 精品国产乱码久久久久久浪潮| 懂色av一区二区三区免费观看| 亚洲日本韩国一区| 91精品国产综合久久精品图片 | 日韩激情一二三区| 亚洲精品一区二区三区精华液 | 欧美一区二区三区免费视频 | 精品无人码麻豆乱码1区2区| 国产精品伦理一区二区| 欧美丝袜丝nylons| 国产一区二区三区精品欧美日韩一区二区三区 | 久久综合九色综合欧美就去吻 | 日韩电影在线一区二区三区| 亚洲精品在线观看网站| 色狠狠色噜噜噜综合网| 久久www免费人成看片高清| 亚洲精品久久久久久国产精华液| 日韩午夜激情电影| 一本色道久久综合精品竹菊| 精东粉嫩av免费一区二区三区| 亚洲欧美国产77777| 久久久久97国产精华液好用吗 | 国产精品天天看| 日韩一区二区三区观看| 色综合激情五月| 成人一道本在线| 蜜臀av性久久久久蜜臀av麻豆| 最新欧美精品一区二区三区| 精品卡一卡二卡三卡四在线| 在线观看亚洲精品视频| 成人在线视频首页| 国内精品视频666| 秋霞av亚洲一区二区三| 亚洲午夜精品一区二区三区他趣| 国产色婷婷亚洲99精品小说| 日韩欧美一二区| 欧美日韩午夜影院| 91国在线观看| 99国产精品国产精品久久| 国产精品一区三区| 久久精品国产成人一区二区三区 | 老鸭窝一区二区久久精品| 亚洲国产日韩av| 一区二区三区四区激情| 综合精品久久久| 国产精品久久久久影院老司| 久久蜜桃一区二区| 26uuu欧美日本| 精品国产免费一区二区三区香蕉| 91精品国产品国语在线不卡| 欧美性色综合网| 精品sm捆绑视频| 日韩国产一二三区| 欧美一区二区三区喷汁尤物| 日韩国产欧美三级| 欧美色图片你懂的| 欧美tk丨vk视频| 精品国产一区二区三区不卡| 国产在线播放一区二区三区 | 中文字幕一区二区5566日韩| 久久久美女艺术照精彩视频福利播放| 制服丝袜在线91| 91精品欧美综合在线观看最新| 欧美疯狂做受xxxx富婆| 欧美精品视频www在线观看| 欧美高清激情brazzers| 欧美一级视频精品观看| 2021国产精品久久精品| 国产清纯白嫩初高生在线观看91 | 久久在线观看免费| 大陆成人av片| 日韩美女久久久| 日韩一区二区在线观看视频播放| 91丝袜美腿高跟国产极品老师| 亚洲蜜臀av乱码久久精品| 亚洲国产成人在线| 亚洲丝袜自拍清纯另类| 亚洲国产aⅴ天堂久久| 日韩成人伦理电影在线观看| 免费高清在线一区| 国产乱人伦偷精品视频不卡 | 一区二区中文字幕在线| 亚洲女人小视频在线观看| 亚洲一区在线观看网站| 美女视频黄频大全不卡视频在线播放| 精品一二三四区| 一本色道亚洲精品aⅴ| 91精品国产手机| 国产欧美一区二区精品忘忧草| 久久精品欧美日韩|