ssh login lento VM

1. ssh login lento VM

Pablo
puzzle2

(usa Outra)

Enviado em 06/03/2014 - 22:15h

Pessoal,

Seguinte, crei uma VM com Oracle Linux.

Mas estou com 1 pequeno problema ao acessar por SSH.

Se eu deixo a interface de rede eth0 em modo automático, o acesso por SSH é rapido.
Mas quando eu altero a interface de rede para ter um IP fixo, o acesso SSH fica muito lento, demora até 1 minuto para solicitar a senha.


Alguma sugestão?


  


2. Re: ssh login lento VM

Josue de Jesus Santos
JJSantos

(usa Gentoo)

Enviado em 06/03/2014 - 23:24h

ja tentou logar com o modo verbose?
verificou as rotas, ssh_config, hosts?


3. Re: ssh login lento VM

Pablo
puzzle2

(usa Outra)

Enviado em 12/03/2014 - 21:55h

Josue A. Santos escreveu:

ja tentou logar com o modo verbose?
verificou as rotas, ssh_config, hosts?


Josue,

Veja se consegui me ajudar...

ssh_config -> default

[support@server02 ~]$ traceroute 192.168.56.199
traceroute to 192.168.56.199 (192.168.56.199), 30 hops max, 40 byte packets
1 (192.168.56.199) 0.409 ms 0.307 ms 0.217 ms


[support@server02~]$ ssh -v root@192.168.56.199
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.56.199 [192.168.56.199] port 22.
debug1: Connection established.
debug1: identity file /home/support/.ssh/identity type -1
debug1: identity file /home/support/.ssh/id_rsa type -1
debug1: identity file /home/support/.ssh/id_dsa type -1
debug1: loaded 3 keys
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
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
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.56.199' is known and matches the RSA host key.
debug1: Found key in /home/support/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found

debug1: Next authentication method: publickey
debug1: Trying private key: /home/support/.ssh/identity
debug1: Trying private key: /home/support/.ssh/id_rsa
debug1: Trying private key: /home/support/.ssh/id_dsa
debug1: Next authentication method: password
root@192.168.56.199's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Last login: Wed Mar 12 02:27:45 2014 from 192.168.56.1
[root@server01~]#





Se eu desabilito o GSSAPIAuthentication não muda nada, continua demorando 1 minuto para logar


[support@server02 ~]$ ssh -v -o GSSAPIAuthentication=no root@192.168.56.199
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.56.199 [192.168.56.199] port 22.
debug1: Connection established.
debug1: identity file /home/support/.ssh/identity type -1
debug1: identity file /home/support/.ssh/id_rsa type -1
debug1: identity file /home/support/.ssh/id_dsa type -1
debug1: loaded 3 keys
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
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
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.56.199' is known and matches the RSA host key.
debug1: Found key in /home/support/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/support/.ssh/identity
debug1: Trying private key: /home/support/.ssh/id_rsa
debug1: Trying private key: /home/support/.ssh/id_dsa
debug1: Next authentication method: password
root@192.168.56.199's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Last login: Thu Mar 13 01:46:54 2014 from 192.168.56.188
[root@server01~]#



4. DNS

ilton vieira de arruda junior
iltonjunior

(usa Ubuntu)

Enviado em 03/11/2014 - 16:42h

O Problema esta no DNS configurado no seu /etc/resolv.conf

Roda esse comando e testa o ssh novamente


echo > /etc/resolv.conf ### Ele vai limpar as conf. do resolv.conf
service sshd restart ### Restarta o Serviço..


##Depois é so Adicionar ...

echo "nameserver 8.8.8.8" >> /etc/resolv.conf ### DNS do google!! so coloque se sua máquina tiver acesso a internet






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts