OVH Cloud OVH Cloud

Soucis avec SSH

17 réponses
Avatar
Franck
Hello,

J'ai un soucis avec SSH, impossible de me logguer sur la machine alors
que le HTTP, SMTP et autre marche bien :(

Système SID ou Sarge de base avec juste ssh d'installer 192.168.0.136

Depuis une machine 192.168.0.5, je lance la commande SSH :
# ssh 192.168.0.136
# Connection closed by 192.168.0.136

j'ai passé les logs de SSH en debug et j'ai ceci :
Jan 19 18:09:18 base_sid sshd[1799]: debug1: Forked child 1801.
Jan 19 18:09:18 base_sid sshd[1801]: Connection from ::ffff:192.168.0.5
port 32791
Jan 19 18:09:18 base_sid sshd[1801]: debug1: Client protocol version
2.0; client software version OpenSSH_3.9p1
Jan 19 18:09:18 base_sid sshd[1801]: debug1: match: OpenSSH_3.9p1 pat
OpenSSH*
Jan 19 18:09:18 base_sid sshd[1801]: debug1: Enabling compatibility mode
for protocol 2.0
Jan 19 18:09:18 base_sid sshd[1801]: debug1: Local version string
SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4
Jan 19 18:09:19 base_sid sshd[1801]: debug1: PAM: initializing for "root"
Jan 19 18:09:19 base_sid sshd[1801]: debug1: PAM: setting PAM_RHOST to
"192.168.0.5"
Jan 19 18:09:19 base_sid sshd[1801]: debug1: PAM: setting PAM_TTY to "ssh"

Alros que le SSH depuis la machine 192.168.0.136 sur une autre machine
de mon réseau marhce bien (.0.2 ou .0.5)

Un peu d'aide me ferait du bien :)

++

Franck


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to debian-user-french-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

10 réponses

1 2
Avatar
Antoine Bobin
T'as essayé de te logguer avec un utilisateur et de passer ensuite en
root via "su -" ?

--
Antoine

Franck a écrit :

Hello,

J'ai un soucis avec SSH, impossible de me logguer sur la machine alors
que le HTTP, SMTP et autre marche bien :(

Système SID ou Sarge de base avec juste ssh d'installer 192.168.0.136

Depuis une machine 192.168.0.5, je lance la commande SSH :
# ssh 192.168.0.136
# Connection closed by 192.168.0.136

j'ai passé les logs de SSH en debug et j'ai ceci :
Jan 19 18:09:18 base_sid sshd[1799]: debug1: Forked child 1801.
Jan 19 18:09:18 base_sid sshd[1801]: Connection from
::ffff:192.168.0.5 port 32791
Jan 19 18:09:18 base_sid sshd[1801]: debug1: Client protocol version
2.0; client software version OpenSSH_3.9p1
Jan 19 18:09:18 base_sid sshd[1801]: debug1: match: OpenSSH_3.9p1 pat
OpenSSH*
Jan 19 18:09:18 base_sid sshd[1801]: debug1: Enabling compatibility
mode for protocol 2.0
Jan 19 18:09:18 base_sid sshd[1801]: debug1: Local version string
SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4
Jan 19 18:09:19 base_sid sshd[1801]: debug1: PAM: initializing for "root"
Jan 19 18:09:19 base_sid sshd[1801]: debug1: PAM: setting PAM_RHOST to
"192.168.0.5"
Jan 19 18:09:19 base_sid sshd[1801]: debug1: PAM: setting PAM_TTY to
"ssh"

Alros que le SSH depuis la machine 192.168.0.136 sur une autre machine
de mon réseau marhce bien (.0.2 ou .0.5)

Un peu d'aide me ferait du bien :)

++

Franck






--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Pierre Ancelot
--nextPart1122600.21NBS1l6gW
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline


La suite du log stp. Ca marche en simple user ? root peut etre interdit...

Salut :)






On Wednesday 19 January 2005 19:18, Franck wrote:
Hello,

J'ai un soucis avec SSH, impossible de me logguer sur la machine alors
que le HTTP, SMTP et autre marche bien :(

Système SID ou Sarge de base avec juste ssh d'installer 192.168.0.136

Depuis une machine 192.168.0.5, je lance la commande SSH :
# ssh 192.168.0.136
# Connection closed by 192.168.0.136

j'ai passé les logs de SSH en debug et j'ai ceci :
Jan 19 18:09:18 base_sid sshd[1799]: debug1: Forked child 1801.
Jan 19 18:09:18 base_sid sshd[1801]: Connection from ::ffff:192.168.0.5
port 32791
Jan 19 18:09:18 base_sid sshd[1801]: debug1: Client protocol version
2.0; client software version OpenSSH_3.9p1
Jan 19 18:09:18 base_sid sshd[1801]: debug1: match: OpenSSH_3.9p1 pat
OpenSSH*
Jan 19 18:09:18 base_sid sshd[1801]: debug1: Enabling compatibility mode
for protocol 2.0
Jan 19 18:09:18 base_sid sshd[1801]: debug1: Local version string
SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4
Jan 19 18:09:19 base_sid sshd[1801]: debug1: PAM: initializing for "root"
Jan 19 18:09:19 base_sid sshd[1801]: debug1: PAM: setting PAM_RHOST to
"192.168.0.5"
Jan 19 18:09:19 base_sid sshd[1801]: debug1: PAM: setting PAM_TTY to "ssh"

Alros que le SSH depuis la machine 192.168.0.136 sur une autre machine
de mon réseau marhce bien (.0.2 ou .0.5)

Un peu d'aide me ferait du bien :)

++

Franck



--nextPart1122600.21NBS1l6gW
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBB7qddtSti1Zwti3IRAum2AJ0UV5V2Z3elJLQEbY22rb19+CAVXgCfQqPE
X0rh3ihuYz6it9YMNG6Ushg =I0dI
-----END PGP SIGNATURE-----

--nextPart1122600.21NBS1l6gW--


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Franck
> T'as essayé de te logguer avec un utilisateur et de passer ensuite en
root via "su -" ?



pareil :(

Depuis une machine 192.168.0.5, je lance la commande SSH :
# ssh -l franck 192.168.0.136
# Connection closed by 192.168.0.136


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
J.-Pierre Pourrez
Franck a écrit :
Hello,

J'ai un soucis avec SSH, impossible de me logguer sur la machine alors
que le HTTP, SMTP et autre marche bien :(


La config de ces serveurs est indépendante.

Pour ssh, jette un oeil dans /etc/hosts.allow. Tu dois avoir la ligne
suivante:

sshd: all

Après modification redémarrer xinetd et portmap

Bon courage
Jean-Pierre


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Jean-Luc Coulon (f5ibh)
--=-vT3anJVmD1AInK0heniP
Content-Type: text/plain; charset=ISO-8859-1; DelSp=Yes; Format=Flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Le 19.01.2005 21:08:22, Franck a écrit :

T'as essayé de te logguer avec un utilisateur et de passer ensuite
en root via "su -" ?



pareil :(

Depuis une machine 192.168.0.5, je lance la commande SSH :
# ssh -l franck 192.168.0.136
# Connection closed by 192.168.0.136



Il n'y a rien dans auth.log ?
Ca peut venir d'un hosts.deny mal configuré.

J-L

--=-vT3anJVmD1AInK0heniP
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBB7sJJUdGGXzzGnNARAqvQAJ9vf45m1UGGy5xWI8lmK1diYEdmFACfZmH1
oBCypMpEZKxkaNxJEiVS+Ww =xsFQ
-----END PGP SIGNATURE-----

--=-vT3anJVmD1AInK0heniP--



--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
antoine roy
Hello,

On peut voir ton /etc/ssh/ssh_config ??

On Wednesday 19 January 2005 19:18, Franck wrote:
Hello,

J'ai un soucis avec SSH, impossible de me logguer sur la machine alors
que le HTTP, SMTP et autre marche bien :(

Système SID ou Sarge de base avec juste ssh d'installer 192.168.0.136

Depuis une machine 192.168.0.5, je lance la commande SSH :
# ssh 192.168.0.136
# Connection closed by 192.168.0.136

j'ai passé les logs de SSH en debug et j'ai ceci :
Jan 19 18:09:18 base_sid sshd[1799]: debug1: Forked child 1801.
Jan 19 18:09:18 base_sid sshd[1801]: Connection from ::ffff:192.168.0.5
port 32791
Jan 19 18:09:18 base_sid sshd[1801]: debug1: Client protocol version
2.0; client software version OpenSSH_3.9p1
Jan 19 18:09:18 base_sid sshd[1801]: debug1: match: OpenSSH_3.9p1 pat
OpenSSH*
Jan 19 18:09:18 base_sid sshd[1801]: debug1: Enabling compatibility mode
for protocol 2.0
Jan 19 18:09:18 base_sid sshd[1801]: debug1: Local version string
SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4
Jan 19 18:09:19 base_sid sshd[1801]: debug1: PAM: initializing for "root"
Jan 19 18:09:19 base_sid sshd[1801]: debug1: PAM: setting PAM_RHOST to
"192.168.0.5"
Jan 19 18:09:19 base_sid sshd[1801]: debug1: PAM: setting PAM_TTY to "ssh"

Alros que le SSH depuis la machine 192.168.0.136 sur une autre machine
de mon réseau marhce bien (.0.2 ou .0.5)

Un peu d'aide me ferait du bien :)

++

Franck



--
Antoine Roy
http://www.fbx.homeunix.com
Avatar
Franck
> On peut voir ton /etc/ssh/ssh_config ??


C'est celui installé par défaut

Port 22
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 768
SyslogFacility AUTH
LogLevel DEBUG
LoginGraceTime 600
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
RhostsRSAAuthentication
PermitEmptyPasswords no
PasswordAuthentication no
X11Forwarding no
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
KeepAlive yes
Subsystem sftp /usr/lib/sftp-server
UsePAM yes


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
NaiosKAE{FR}
que donne un nmap du serveur ? (t'aurais pas le port 22 de bloqué par
iptables.... ou un probleme de se style?

Franck a écrit :

On peut voir ton /etc/ssh/ssh_config ??



C'est celui installé par défaut

Port 22
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 768
SyslogFacility AUTH
LogLevel DEBUG
LoginGraceTime 600
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
RhostsRSAAuthentication
PermitEmptyPasswords no
PasswordAuthentication no
X11Forwarding no
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
KeepAlive yes
Subsystem sftp /usr/lib/sftp-server
UsePAM yes





--
______________________________________
/ Le vrai rêveur est celui qui rêve de
| l'impossible. |
| |
-+- Elsa Triolet -+- /
--------------------------------------
^__^
(oo)_______
(__) )/
||----w |
|| ||


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Xavier Poinsard
Franck a écrit :
Hello,

J'ai un soucis avec SSH, impossible de me logguer sur la machine alors
que le HTTP, SMTP et autre marche bien :(

Système SID ou Sarge de base avec juste ssh d'installer 192.168.0.136

Un peu d'aide me ferait du bien :)




que donne ssh -v ?


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Frédéric Bothamy
* Franck [2005-01-20 06:56] :
>Il n'y a rien dans auth.log ?

Quand j'essais depuis une autre machine qui ne s'est jamais logguée :

:~> ssh 192.168.0.136
The authenticity of host '192.168.0.136 (192.168.0.136)' can't be
established.
RSA key fingerprint is a8:4c:ef:aa:e8:96:ac:aa:ef:99:3d:43:a2:f0:5a:2d.
Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added '192.168.0.136' (RSA) to the list of known hosts.
Connection closed by 192.168.0.136

#################################
Et coté auth.log, cela engendre ceci :

Jan 20 05:52:20 base_sid sshd[1799]: debug1: Forked child 1918.
Jan 20 05:52:20 base_sid sshd[1918]: Connection from ::ffff:192.168.0.5
port 32795
Jan 20 05:52:20 base_sid sshd[1918]: debug1: Client protocol version
2.0; client software version OpenSSH_3.9p1
Jan 20 05:52:20 base_sid sshd[1918]: debug1: match: OpenSSH_3.9p1 pat
OpenSSH*
Jan 20 05:52:20 base_sid sshd[1918]: debug1: Enabling compatibility mode
for protocol 2.0
Jan 20 05:52:20 base_sid sshd[1918]: debug1: Local version string
SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4
Jan 20 05:52:20 base_sid sshd[1918]: debug1: PAM: initializing for "root"
Jan 20 05:52:20 base_sid sshd[1918]: debug1: PAM: setting PAM_RHOST to
"192.168.0.5"
Jan 20 05:52:20 base_sid sshd[1918]: debug1: PAM: setting PAM_TTY to "ssh"
Jan 20 05:52:30 base_sid sshd[1799]: debug1: Forked child 1921.
Jan 20 05:52:30 base_sid sshd[1921]: Connection from ::ffff:192.168.0.2
port 49844
Jan 20 05:52:30 base_sid sshd[1921]: debug1: Client protocol version
2.0; client software version OpenSSH_3.8p1
Jan 20 05:52:30 base_sid sshd[1921]: debug1: match: OpenSSH_3.8p1 pat
OpenSSH*
Jan 20 05:52:30 base_sid sshd[1921]: debug1: Enabling compatibility mode
for protocol 2.0
Jan 20 05:52:30 base_sid sshd[1921]: debug1: Local version string
SSH-2.0-OpenSSH_3.8.1p1 Debian-8.sarge.4



Tout ceci concerne une autre connexion en tant que root 2 minutes celles
en tant que l'utilisateur frank.

Jan 20 05:54:10 base_sid sshd[1921]: debug1: PAM: initializing for "franck"
Jan 20 05:54:11 base_sid sshd[1921]: debug1: PAM: setting PAM_RHOST to
"192.168.0.2"
Jan 20 05:54:11 base_sid sshd[1921]: debug1: PAM: setting PAM_TTY to "ssh"



Il y a quelque chose d'intéressant après ces lignes ?


Fred

--
Comment poser les questions de manière intelligente ?
http://www.gnurou.org/documents/smart-questions-fr.html
Comment signaler efficacement un bug ?
http://www.chiark.greenend.org.uk/~sgtatham/bugs-fr.html


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
1 2