1 (edited by davenull 2013-09-19 09:57:20)

Topic: Connexion SSH et FTP

Bonjour à tous

Hier j'ai activé mon shell et crée un espace de téléchargement, mais j'arrive pas à y acceder

- En SSH, j'attends et rien ne passe
- En FTP, gFTP m'affiche "connecté sur ftp.tuxfamily.org:21" mais j'ai "connexion en cours" dans la zone au dessus de l'espace d'affichage des fichiers sur le serveur, ça charge éternellement si je le laisse

Si quelqu'un pouvait m'eclairer ? merci d'avance

Re: Connexion SSH et FTP

Ça ressemble à un blocage par firewall, utilises-tu ou subis-tu un firewall en sortie ? :)

Que donne ssh -v ssh.tuxfamily.org  ?

Re: Connexion SSH et FTP

J'essayerai avec l'option -v quand je rentre

J'ai pas pensé au Firewall vu que je peux me connecter en SSH sur les serveurs de test de sdf.org

4 (edited by davenull 2013-10-16 18:43:41)

Re: Connexion SSH et FTP

Apparement il arrive à trouver le serveur ssh.tuxfamily.org

ssh -v ssh.familytux.org
OpenSSH_6.0p1 Debian-3ubuntu1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
ssh: Could not resolve hostname ssh.familytux.org: Name or service not known

Re: Connexion SSH et FTP

"ssh -v ssh.familytux.org"

familytux... comme c'est bizarre :)

6 (edited by davenull 2013-09-19 18:47:37)

Re: Connexion SSH et FTP

PEBKAC pour moi même...

Il n'empêche que mon problème ne viens pas de là, y'a pas cette erreur sur l'historique des commandes et de gFTP aussi bien en SSH qu'en FTP

ssh -v ssh.tuxfamily.org
OpenSSH_6.0p1 Debian-3ubuntu1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to ssh.tuxfamily.org [212.85.158.7] port 22.
debug1: Connection established.
debug1: identity file /home/dave/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/dave/.ssh/id_rsa-cert type -1
debug1: identity file /home/dave/.ssh/id_dsa type -1
debug1: identity file /home/dave/.ssh/id_dsa-cert type -1
debug1: identity file /home/dave/.ssh/id_ecdsa type -1
debug1: identity file /home/dave/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-6+squeeze3
debug1: match: OpenSSH_5.5p1 Debian-6+squeeze3 pat OpenSSH_5*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.0p1 Debian-3ubuntu1
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


ssh -v davenull@ssh.tuxfamily.org
OpenSSH_6.0p1 Debian-3ubuntu1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to ssh.tuxfamily.org [212.85.158.7] port 22.
debug1: Connection established.
debug1: identity file /home/dave/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/dave/.ssh/id_rsa-cert type -1
debug1: identity file /home/dave/.ssh/id_dsa type -1
debug1: identity file /home/dave/.ssh/id_dsa-cert type -1
debug1: identity file /home/dave/.ssh/id_ecdsa type -1
debug1: identity file /home/dave/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-6+squeeze3
debug1: match: OpenSSH_5.5p1 Debian-6+squeeze3 pat OpenSSH_5*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.0p1 Debian-3ubuntu1
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

Et ça se bloque là dans les 2 cas

Re: Connexion SSH et FTP

Bizarre bizarre, et avec -vvv ?

Re: Connexion SSH et FTP

ssh -vvv ssh.tuxfamily.org
OpenSSH_6.0p1 Debian-3ubuntu1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to ssh.tuxfamily.org [212.85.158.7] port 22.
debug1: Connection established.
debug1: identity file /home/dave/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/dave/.ssh/id_rsa-cert type -1
debug1: identity file /home/dave/.ssh/id_dsa type -1
debug1: identity file /home/dave/.ssh/id_dsa-cert type -1
debug1: identity file /home/dave/.ssh/id_ecdsa type -1
debug1: identity file /home/dave/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-6+squeeze3
debug1: match: OpenSSH_5.5p1 Debian-6+squeeze3 pat OpenSSH_5*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.0p1 Debian-3ubuntu1
debug2: fd 3 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "ssh.tuxfamily.org" from file "/home/dave/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /home/dave/.ssh/known_hosts:4
debug3: load_hostkeys: loaded 1 keys
debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-dss-cert-v00@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
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

Re: Connexion SSH et FTP

Humm, en cherchant "hangs after SSH2_MSG_KEX_DH_GEX_GROUP", j'ai trouvé ça, qui confirme un soucis de firewall/équipement réseau défectueux:

https://fogbugz.bitvise.com/default.asp … .1.18665.5

http://ubuntuforums.org/showthread.php?t=1335137

Sylvain

Re: Connexion SSH et FTP

Ok, merci pour l'info

J'essayerai depuis une autre connection dès que je peux

Bonne soirée

Re: Connexion SSH et FTP

D'ailleurs à chaque fois que tu postes un message sur le forum, c'est avec une IP différente, ça sent le gros bricolage réseau de la part de ton opérateur :(

12 (edited by davenull 2013-09-19 21:36:45)

Re: Connexion SSH et FTP

J'ai aussi remarqué des changements d'IP sur TCPdump/Wireshark et le forum me demande une validation du token à chaque nouvelle connexion...

Pire encore après l'affichage de debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP, je vois apparaitre sur tcpdump la même ligne quasiment (sauf le temps bien sur et les numéros val/ecr)
GlaNIX.47130 > ftp.tuxfamily.net.ssh: Flags [P.], seq 1312:1336, ack 826, win 127, options [nop,nop,TS val 2856580 ecr 962912438], length 24
Le même paquet retransmis plusieurs fois mais il n'arrive jamais sur votre serveur

ça sent le filtrage...

13 (edited by davenull 2013-10-16 18:45:01)

Re: Connexion SSH et FTP

C'est résolu, merci