亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 服務器 > Web服務器 > 正文

ssh 登錄很慢該如何解決

2024-09-01 13:50:00
字體:
來源:轉載
供稿:網友

ssh登錄很慢解決方法

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

1. DNS反向解析問題

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

解決辦法:在目標服務器上修改sshd服務器端配置,并重啟sshd

vi /etc/ssh/sshd_configUseDNS no

2. 關閉ssh的gssapi認證

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

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

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

解決辦法:

修改sshd服務器端配置

vi /etc/ssh/ssh_configGSSAPIAuthentication 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(1024<1024<8192) 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  debug1: Unspecified GSS failure. Minor code may provide more information Cannot determine realm for numeric host address  debug1: Unspecified GSS failure. Minor code may provide more information   debug1: Unspecified GSS failure. Minor code may provide more information Cannot determine realm for numeric host address  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: 

感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
91中文在线视频| 亚洲精品日韩在线| 久久精品99久久久香蕉| 亚洲色图av在线| 亚洲欧美成人一区二区在线电影| 亚洲欧洲偷拍精品| 亚洲国产日韩欧美在线图片| 久久国产精品久久精品| 91精品久久久久久久久不口人| 亚洲欧美另类在线观看| 伊人伊成久久人综合网站| 精品免费在线观看| 日韩欧美在线视频日韩欧美在线视频| 亚洲男人的天堂在线播放| 国产福利视频一区二区| 日韩av中文字幕在线播放| 日韩av在线免费看| 欧美性猛交xxxx黑人| 亚洲第一免费网站| 日本一区二区在线免费播放| 久久久久免费视频| 91理论片午午论夜理片久久| 欧美一级片免费在线| 中文字幕日韩欧美精品在线观看| 亚州国产精品久久久| 精品小视频在线| 奇米成人av国产一区二区三区| 亚洲国产私拍精品国模在线观看| 欧美疯狂性受xxxxx另类| 日韩免费视频在线观看| 中文字幕视频在线免费欧美日韩综合在线看| 性夜试看影院91社区| 欧美美最猛性xxxxxx| 疯狂欧美牲乱大交777| 国产91露脸中文字幕在线| 欧美性xxxx极品hd欧美风情| 国产精品久久久久久久久久东京| 日本精品在线视频| 国产成人鲁鲁免费视频a| 色综合色综合网色综合| 精品动漫一区二区三区| 国产精品自拍小视频| 国产ts一区二区| 国产在线精品成人一区二区三区| 久久亚洲一区二区三区四区五区高| 中文字幕日韩欧美在线视频| 国内免费精品永久在线视频| 成人免费网站在线看| 久久人人97超碰精品888| 欧美在线精品免播放器视频| 国产成人在线视频| 中文字幕日韩在线观看| 久久av红桃一区二区小说| 亚洲最大的成人网| 亚洲深夜福利网站| 亚洲国产成人一区| 亚洲视频自拍偷拍| 久久综合久久美利坚合众国| 97视频在线免费观看| www.欧美精品| 一区二区三区天堂av| 在线成人激情视频| 欧美精品久久一区二区| 国产suv精品一区二区| 孩xxxx性bbbb欧美| 777精品视频| 久久久人成影片一区二区三区观看| 欧美国产亚洲精品久久久8v| 精品人伦一区二区三区蜜桃网站| 欧美一区二区色| 国产亚洲精品激情久久| 国语自产在线不卡| 7777精品视频| 国产自摸综合网| 青草青草久热精品视频在线网站| 精品视频中文字幕| 57pao国产成人免费| 精品福利樱桃av导航| 亚洲成年网站在线观看| 日韩大陆毛片av| 一区二区三区视频免费| 国产精品亚洲第一区| 久久免费国产视频| 成人免费黄色网| 欧美日韩xxxxx| 亚洲欧美日韩综合| 国产在线不卡精品| 超薄丝袜一区二区| 国产精品久久久久久久久影视| 亚洲a∨日韩av高清在线观看| 久久视频免费在线播放| 国产不卡精品视男人的天堂| 日韩av不卡在线| 日韩欧美在线播放| 两个人的视频www国产精品| 日韩精品中文字幕在线观看| 国产亚洲精品va在线观看| 中文字幕av一区二区三区谷原希美| 久久在线免费视频| 欧美一级在线亚洲天堂| 国产+人+亚洲| 久久精品亚洲国产| 亚洲色图17p| 在线视频国产日韩| 欧美激情二区三区| 91爱爱小视频k| 亚洲第一精品久久忘忧草社区| 日韩在线小视频| 欧美床上激情在线观看| 一区二区三区 在线观看视| 九色91av视频| 久久精品国产一区| 亚洲人成在线一二| 国产精品狼人色视频一区| 久久综合九色九九| 国产日韩欧美91| 久久精品国产精品亚洲| 国产精品极品美女在线观看免费| 热久久视久久精品18亚洲精品| 中文字幕在线看视频国产欧美在线看完整| 欧美亚洲另类激情另类| 中文字幕国产亚洲2019| 国产成人97精品免费看片| 成人在线精品视频| 欧美性极品xxxx娇小| 色av吧综合网| 国产精品高清网站| 美女av一区二区| 午夜精品理论片| 国产精品视频一区二区三区四| 国产精品免费久久久| x99av成人免费| 久久九九亚洲综合| 亚洲欧美在线免费| 欧美激情一级精品国产| 亚洲天堂免费观看| 久久久久久这里只有精品| 91免费看国产| 亚洲欧洲在线看| 欧美午夜片在线免费观看| 18性欧美xxxⅹ性满足| 国产日韩欧美日韩| 欧美精品电影在线| 亚洲护士老师的毛茸茸最新章节| 久久男人资源视频| 国产视频精品自拍| 亚洲人午夜色婷婷| 色综合久久天天综线观看| 日本成熟性欧美| 国产精品精品一区二区三区午夜版| 国产精品丝袜白浆摸在线| 中文字幕在线看视频国产欧美| 久久久久中文字幕2018| 狠狠躁18三区二区一区| 日韩精品中文字幕视频在线| 欧美日韩日本国产| 亚洲国语精品自产拍在线观看| 亚洲精品白浆高清久久久久久| 亚洲国产日韩精品在线| 51色欧美片视频在线观看| 精品国产电影一区| 欧美性xxxxxx| 精品国产一区二区三区久久| 影音先锋欧美在线资源|