Outils pour utilisateurs

Outils du site


blog

Pb SSH over VPN - Connexion KO après expecting SSH2_MSG_KEX_ECDH_REPLY

Connexion SSH KO après debug1: expecting SSH2_MSG_KEX_ECDH_REPLY \ Alors que flux réseaux OK.

ip r get 192.168.255.118
192.168.255.118 dev tun0 src 192.168.100.4 uid 0 
    cache 

Solution : Réduire la MTU

ip l set mtu 1200 dev tun0
2025/03/24 15:06

Pb SSH long lent

Voir aussi :

Sources :

Pb

ssh -vvv plop
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.

[ TRES LENT ICI ]

Autre commande longue. su sur le serveur et connecté en root

su - user -c date

Solution

# systemctl daemon-reexec
systemctl restart dbus
systemctl restart systemd-logind

Autres solutions pour autres Pb

DNS, Kerberos/GSSAPI

Coté client ~/.ssh/config

Host *
    GSSAPIAuthentication no
    GSSAPIKeyExchange no

Coté serveur /etc/ssh/sshd_config

UseDNS no
2025/03/24 15:06

Pb ssh forward - Connection refused

Voir aussi : /proc/sys/net/ipv4/ip_unprivileged_port_start

ssh -R1443:web-app:443 vm_test
$ curl https://web-app:1443
curl: (7) Failed to connect to web-app port 1443: Connection refused

ou

$ curl https://web-app:1443
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to web-app:1443

Erreur retournée sur la console du tunnel ssh

connect to web-app port 443 failed: Permission denied

Solution

Le problème vient de SELinux

Sur la machine qui lance la commande ssh

sudo setsebool -P nis_enabled 1
2025/03/24 15:06

Pb ssh - symbol lookup error /usr/lib64/libk5crypto.so.3 undefined symbol EVP_KDF_ctrl version OPENSSL_1_1_1b

$ ssh
ssh: symbol lookup error: /usr/lib64/libk5crypto.so.3: undefined symbol: EVP_KDF_ctrl, version OPENSSL_1_1_1b

Solution

unset LD_LIBRARY_PATH
 
# ou
 
env LD_LIBRARY_PATH= ssh
alias ssh='env LD_LIBRARY_PATH= ssh'
2025/03/24 15:06
, , ,

Pb ssh - no matching cipher found

$ ssh old-rhel3
Unable to negotiate with UNKNOWN port 65535: no matching cipher found. Their offer: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se

Solution

ssh -c aes128-cbc old-rhel3

ou mettre Ciphers +aes256-cbc dans le ~/.ssh/config pour ne pas à avoir ajouter systématiquement -c aes128-cbc

~/.ssh/config

Host old-rhel3
        KexAlgorithms +diffie-hellman-group1-sha1,diffie-hellman-group14-sha1
        HostKeyAlgorithms +ssh-rsa
        PubkeyAcceptedKeyTypes +ssh-rsa
        SetEnv TERM=linux
        Ciphers +aes256-cbc
2025/03/24 15:06
blog.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki