亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: ssh登陸慢的問題 [打印本頁]

作者: pyartist    時間: 2015-10-12 11:08
標(biāo)題: ssh登陸慢的問題
兩臺虛擬機(jī),一臺redhat,一臺Debian ,從 redhat登陸到Debian(192.168.110.114)
  1. [root@compute3 ~]# cat /etc/redhat-release
  2. Red Hat Enterprise Linux Server release 7.1 (Maipo)
復(fù)制代碼
  1. vyatta@vyatta:~$ cat /proc/version
  2. Linux version 3.10.83-1-amd64-vyatta (abuild@build-worker3) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Wed Jul 8 03:22:17 UTC 2015
復(fù)制代碼
我 試過網(wǎng)上集中常見的對策,都沒有用,包括修改 /etc/hosts;UseDNS 的缺省值由yes修改為no;GSSAPIAuthentication設(shè)置成no

把以上的修改都做了,現(xiàn)在卡在 debug1: Local version string SSH-2.0-OpenSSH_6.6.1 和 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-6+squeeze5 之間了,
就是顯示完Local version string SSH-2.0-OpenSSH_6.6.1要等好幾秒才顯示debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-6+squeeze5

整個ssh過程大約要個好幾秒才能出現(xiàn)輸入密碼的提示。
其他的從各個版本的redhat和各個版本的centos互相ssh登陸都是秒開,唯獨(dú)這兩個虛擬機(jī),難道是Debian系的和redhat之間的問題?搞不明白問題出在哪里了
  1. [root@compute3 ~]# ssh vyatta@192.168.110.114 -v
  2. OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013
  3. debug1: Reading configuration data /etc/ssh/ssh_config
  4. debug1: /etc/ssh/ssh_config line 56: Applying options for *
  5. debug1: Connecting to 192.168.110.114 [192.168.110.114] port 22.
  6. debug1: Connection established.
  7. debug1: permanently_set_uid: 0/0
  8. debug1: identity file /root/.ssh/id_rsa type -1
  9. debug1: identity file /root/.ssh/id_rsa-cert type -1
  10. debug1: identity file /root/.ssh/id_dsa type -1
  11. debug1: identity file /root/.ssh/id_dsa-cert type -1
  12. debug1: identity file /root/.ssh/id_ecdsa type -1
  13. debug1: identity file /root/.ssh/id_ecdsa-cert type -1
  14. debug1: identity file /root/.ssh/id_ed25519 type -1
  15. debug1: identity file /root/.ssh/id_ed25519-cert type -1
  16. debug1: Enabling compatibility mode for protocol 2.0
  17. debug1: Local version string SSH-2.0-OpenSSH_6.6.1
  18. debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-6+squeeze5
  19. debug1: match: OpenSSH_5.5p1 Debian-6+squeeze5 pat OpenSSH_5* compat 0x0c000000
  20. debug1: SSH2_MSG_KEXINIT sent
  21. debug1: SSH2_MSG_KEXINIT received
  22. debug1: kex: server->client aes128-ctr hmac-md5 none
  23. debug1: kex: client->server aes128-ctr hmac-md5 none
  24. debug1: kex: diffie-hellman-group-exchange-sha256 need=16 dh_need=16
  25. debug1: kex: diffie-hellman-group-exchange-sha256 need=16 dh_need=16
  26. debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<3072<8192) sent
  27. debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
  28. debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
  29. debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
  30. debug1: Server host key: RSA 4c:04:55:7a:ab:86:a3:3f:1e:3f:1a:81:10:49:ed:11
  31. debug1: Host '192.168.110.114' is known and matches the RSA host key.
  32. debug1: Found key in /root/.ssh/known_hosts:30
  33. debug1: ssh_rsa_verify: signature correct
  34. debug1: SSH2_MSG_NEWKEYS sent
  35. debug1: expecting SSH2_MSG_NEWKEYS
  36. debug1: SSH2_MSG_NEWKEYS received
  37. debug1: Roaming not allowed by server
  38. debug1: SSH2_MSG_SERVICE_REQUEST sent
  39. debug1: SSH2_MSG_SERVICE_ACCEPT received
  40. Welcome to Vyatta
  41. debug1: Authentications that can continue: publickey,password
  42. debug1: Next authentication method: publickey
  43. debug1: Trying private key: /root/.ssh/id_rsa
  44. debug1: Trying private key: /root/.ssh/id_dsa
  45. debug1: Trying private key: /root/.ssh/id_ecdsa
  46. debug1: Trying private key: /root/.ssh/id_ed25519
  47. debug1: Next authentication method: password
  48. vyatta@192.168.110.114's password:
復(fù)制代碼

作者: csoho2000    時間: 2015-10-12 11:24
1.遠(yuǎn)程登錄使用root用戶試試
2.統(tǒng)一兩臺服務(wù)器openssh版本試試
作者: 零的開始3    時間: 2015-10-12 11:36
不錯的啊。。
作者: lyhabc    時間: 2015-10-12 21:44
試試 ssh -l root  192.168.1.2

作者: pyartist    時間: 2015-10-16 08:51
沒法子
去 mirror.vyos.net/iso/release/1.1.6
重下了個鏡像,openstack生成實(shí)例后,重新配網(wǎng)絡(luò),一切ok,ssh秒開了
對比新舊虛擬機(jī)的ssh -v log,一模一樣

左邊是新的ssh秒開,右邊會卡個幾秒

不知道原因,感覺靠ssh -v的信息也查不出來是具體原因
作者: ching00086    時間: 2015-10-20 10:45
看看DNS設(shè)置文件 /etc/resolve.conf
作者: chenyx    時間: 2015-10-26 09:24
本帖最后由 chenyx 于 2015-10-26 09:25 編輯

修改服務(wù)器的sshd_config,將UseDNS修改為no,然后重啟ssh服務(wù)看看
作者: pyartist    時間: 2015-10-26 23:01
回復(fù) 7# chenyx


   不行啊,這招試過了




歡迎光臨 Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2