WikiTwist France

Login SSH sur VMWare ESX / ESXi lent

Quand vous vous connectez en SSH sur un hôte VMWare ESX ou ESXi la connexion est lente? Le problème est facile à régler et on l’avait déjà abordé ici.

J’avais cette impression (enfin .. à ce niveau c’est plus une impression) de lenteur sur un de mes serveurs VMWare ESX, le login SSH semblait ralenti. Même en faisant les logins avec SSH -V ..

MBPR-Gonzague-5:~ gonzague$ ssh -v root@serveur
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to serveur [62.X.X.X] port 22.
debug1: Connection established.
debug1: identity file /Users/gonzague/.ssh/id_rsa type 1
debug1: identity file /Users/gonzague/.ssh/id_rsa-cert type -1
debug1: identity file /Users/gonzague/.ssh/id_dsa type 2
debug1: identity file /Users/gonzague/.ssh/id_dsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.6
debug1: match: OpenSSH_5.6 pat OpenSSH_5*
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-sha1 none
debug1: kex: client->server aes128-ctr hmac-sha1 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<2048<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: Server host key: RSA fx:xxx:xxx:xx:x:x:x:x
debug1: Host 'serveur' is known and matches the RSA host key.
debug1: Found key in /Users/gonzague/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/gonzague/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
Authenticated to serveur ([62.X.X.X]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = fr_FR.UTF-8
The time and date of this login have been sent to the system logs.

VMware offers supported, powerful system administration tools.  Please
see www.vmware.com/go/sysadmintools for details.

La solution à la lenteur est donc en fait très simple à appliquer:
- Connectez vous au serveur en SSH
- Editez le fichier /etc/ssh/sshd.config par exemple avec la commande vi /etc/ssh/sshd.config
- repérez si le paramètre useDNS est existant. S'il l'est, changez sa valeur à no
- Sauvegardez vos modifications
- Au prochain login, plus de délais ..

Quitter la version mobile