Outils pour utilisateurs

Outils du site


tech:pb_ssh_forward_-_connection_refused

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
tech/pb_ssh_forward_-_connection_refused.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki