Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

ssh et ProxyCommand

2 réponses
Avatar
olivier.marti
Bonjour,

j'essaye de faire marcher les ProxyCommand de ssh.

Dans .ssh/ssh_config, j'ai :

Host asterix_labo
User marti
ProxyCommand ssh idefix1.labo.fr nc asterix1.labo.fr 22


Je fait donc : ssh asterix_labo, et ça ne marche pas. En activant le
debug, j'ai l'impression qu'il se connecte sur idefix1, mais ne passe
pas sur asterix1.

Comme chaque connexion marche séparément, je ne sais pas ou est le
problème. Si je met tout mon .ssh sur une machine Linux, ça marche. Donc
la syntaxe doit être correcte. Le ssh du Mac n'est pas adapté à
ProxyCommand ?

Que faire ?

Olivier

Ci-joint ce qui sort quand on active le dbug sur les deux connections
ssh :

Last login: Wed Sep 24 19:53:30 on ttys000
Spip-marti-31-~:ssh asterix_lsce
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/marti/.ssh/config
debug1: Applying options for *
debug1: Applying options for *.labo.fr
debug1: Applying options for idefix*
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to idefix1.labo.fr [132.166.43.200] port 22.
debug1: Connection established.
debug1: identity file /Users/marti/.ssh/identity type -1
debug1: identity file /Users/marti/.ssh/id_rsa type 1
debug1: identity file /Users/marti/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information


debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<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: Host 'idefix1.labo.fr' is known and matches the RSA host key.
debug1: Found key in /Users/marti/.ssh/known_hosts:3
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information


debug1: Next authentication method: publickey
debug1: Offering public key: /Users/marti/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 434
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Requesting authentication agent forwarding.
debug1: Sending command: nc asterix1.labo.fr 22
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 2496, received 2840 bytes, in 120.4 seconds
Bytes per second: sent 20.7, received 23.6
debug1: Exit status 0
Write failed: Broken pipe
Spip-marti-32-~:
Desktop/ GRAF/ Olivier/ Public/ Sites/
Documents/ Library/ PANAMA/ Quarantaine/ Web/
Downloads/ Movies/ PYTHON/ SE_1900_1909/ ioipsl3/
EXE/ Music/ Pictures/ Serveurs/
Spip-marti-32-~:ssh asterix_lsce
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/marti/.ssh/config
debug1: Applying options for *
debug1: Applying options for *.labo.fr
debug1: Applying options for idefix*
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to idefix1.labo.fr [132.166.43.200] port 22.
debug1: Connection established.
debug1: identity file /Users/marti/.ssh/identity type -1
debug1: identity file /Users/marti/.ssh/id_rsa type 1
debug1: identity file /Users/marti/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information


debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<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: Host 'idefix1.labo.fr' is known and matches the RSA host key.
debug1: Found key in /Users/marti/.ssh/known_hosts:3
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information


debug1: Next authentication method: publickey
debug1: Offering public key: /Users/marti/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 434
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Requesting authentication agent forwarding.
debug1: Sending command: nc asterix1.labo.fr 22
c^Cdebug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Killed by signal 2.

Spip-marti-33-~:ssh asterix_lsce
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/marti/.ssh/config
debug1: Applying options for *
debug1: Applying options for *.labo.fr
debug1: Applying options for idefix*
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to idefix1.labo.fr [132.166.43.200] port 22.
debug1: Connection established.
debug1: identity file /Users/marti/.ssh/identity type -1
debug1: identity file /Users/marti/.ssh/id_rsa type 1
debug1: identity file /Users/marti/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information


debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<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: Host 'idefix1.labo.fr' is known and matches the RSA host key.
debug1: Found key in /Users/marti/.ssh/known_hosts:3
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information


debug1: Next authentication method: publickey
debug1: Offering public key: /Users/marti/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 434
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Requesting authentication agent forwarding.
debug1: Sending command: nc asterix1.labo.fr 22
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 2496, received 2840 bytes, in 120.3 seconds
Bytes per second: sent 20.7, received 23.6
debug1: Exit status 0
Write failed: Broken pipe
Spip-marti-34-~:s_top
s_topata s_toplatine
Spip-marti-34-~:s_toipsl .ssh/*config* .ssh
building file list ...
4 files to consider
config
4289 100% 3.42MB/s 0:00:00 (xfer#1, to-check=3/4)
config~
4232 100% 344.40kB/s 0:00:00 (xfer#2, to-check=2/4)
ssh_config
1986 100% 57.04kB/s 0:00:00 (xfer#3, to-check=1/4)
ssh_config~
1880 100% 42.70kB/s 0:00:00 (xfer#4, to-check=0/4)

sent 10540 bytes received 134 bytes 7116.00 bytes/sec
total size is 12387 speedup is 1.16
Spip-marti-35-~:s_toipsl .ssh .
building file list ...
38 files to consider
.ssh/
.ssh/.ssh/.ssh/
.ssh/authorized_keys
828 100% 125.00kB/s 0:00:00 (xfer#1, to-check=11/38)
.ssh/authorized_keys2
828 100% 808.59kB/s 0:00:00 (xfer#2, to-check=10/38)

sent 1023 bytes received 72 bytes 730.00 bytes/sec
total size is 64475 speedup is 58.88
Spip-marti-36-~:ssh mercur_lsce
^C
Spip-marti-37-~:ssh mercure_lsce
^CKilled by signal 2.

Spip-marti-38-~:ssh idefix 'ssh mercure'

CORRECT>ssh idefix '.ssh mercure' (y|n|e|a)? no
Pseudo-terminal will not be allocated because stdin is not a terminal.
ssh: mercure: Name or service not known
Spip-marti-39-~:stolsce .ssh .

CORRECT>s_tolsce .ssh . (y|n|e|a)? yes
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/marti/.ssh/config
debug1: Applying options for *
debug1: Applying options for *.labo.fr
debug1: Applying options for idefix*
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to idefix1.labo.fr [132.166.43.200] port 22.
debug1: Connection established.
debug1: identity file /Users/marti/.ssh/identity type -1
debug1: identity file /Users/marti/.ssh/id_rsa type 1
debug1: identity file /Users/marti/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information


debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<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: Host 'idefix1.labo.fr' is known and matches the RSA host key.
debug1: Found key in /Users/marti/.ssh/known_hosts:3
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information


debug1: Next authentication method: publickey
debug1: Offering public key: /Users/marti/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 434
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Requesting authentication agent forwarding.
debug1: Sending command: nc asterix1.labo.fr 22
^Cdebug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Killed by signal 2.
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at
/SourceCache/rsync/rsync-35.2/rsync/rsync.c(244) [sender=2.6.9]
Spip-marti-40-~:alias s_tolsce
${rssh} !:1 ${LSCE_USER}@${ASTERIX}:!:2
Spip-marti-41-~:sra
Spip-marti-42-~:alias s_tolsce
${rssh} !:1 ${LSCE_USER}@${ASTERIX}:!:2
Spip-marti-43-~:
Desktop/ GRAF/ Olivier/ Public/ Sites/
Documents/ Library/ PANAMA/ Quarantaine/ Web/
Downloads/ Movies/ PYTHON/ SE_1900_1909/ ioipsl3/
EXE/ Music/ Pictures/ Serveurs/
Spip-marti-43-~:sra
Spip-marti-44-~:s_tolsce .ssh .
building file list ...
38 files to consider
.ssh/
.ssh/authorized_keys
828 100% 125.00kB/s 0:00:00 (xfer#1, to-check=36/38)
.ssh/authorized_keys2
828 100% 808.59kB/s 0:00:00 (xfer#2, to-check=35/38)
.ssh/config
4289 100% 4.09MB/s 0:00:00 (xfer#3, to-check=34/38)
.ssh/config~
4232 100% 172.20kB/s 0:00:00 (xfer#4, to-check=33/38)
.ssh/ssh_config
1986 100% 43.10kB/s 0:00:00 (xfer#5, to-check=26/38)
.ssh/ssh_config~
1880 100% 39.91kB/s 0:00:00 (xfer#6, to-check=25/38)
.ssh/.ssh/.ssh/

sent 12798 bytes received 206 bytes 5201.60 bytes/sec
total size is 64475 speedup is 4.96
Spip-marti-45-~:ssh idefix 'ssh mercure'

CORRECT>ssh idefix '.ssh mercure' (y|n|e|a)? no
Pseudo-terminal will not be allocated because stdin is not a terminal.
^CKilled by signal 2.
Spip-marti-46-~:more .ssh/config
Spip-marti-47-~:ssh -v mercure_lsce
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/marti/.ssh/config
debug1: Applying options for *
debug1: Applying options for mercure*
debug1: Applying options for mercure_lsce
debug1: Reading configuration data /etc/ssh_config
debug1: Executing proxy command: exec ssh idefix1.saclay.cea.fr nc
mercure.ccc.cea.fr 22
debug1: permanently_drop_suid: 501
debug1: identity file /Users/marti/.ssh/identity type -1
debug1: identity file /Users/marti/.ssh/id_rsa type 1
debug1: identity file /Users/marti/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.1
debug1: match: OpenSSH_4.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug1: An invalid name was supplied
Hostname cannot be canonicalized

debug1: An invalid name was supplied
Hostname cannot be canonicalized

debug1: An invalid name was supplied


debug1: SSH2_MSG_KEXINIT sent
Write failed: Broken pipe
Spip-marti-48-~:ssh -v asterix_lsce
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/marti/.ssh/config
debug1: Applying options for *
debug1: Applying options for asterix*
debug1: Applying options for asterix_lsce
debug1: Reading configuration data /etc/ssh_config
debug1: Executing proxy command: exec ssh -v idefix1.labo.fr nc
asterix1.labo.fr 22
debug1: permanently_drop_suid: 501
debug1: identity file /Users/marti/.ssh/identity type -1
debug1: identity file /Users/marti/.ssh/id_rsa type 1
debug1: identity file /Users/marti/.ssh/id_dsa type 2
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/marti/.ssh/config
debug1: Applying options for *
debug1: Applying options for *.labo.fr
debug1: Applying options for idefix*
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to idefix1.labo.fr [132.166.43.200] port 22.
debug1: Connection established.
debug1: identity file /Users/marti/.ssh/identity type -1
debug1: identity file /Users/marti/.ssh/id_rsa type 1
debug1: identity file /Users/marti/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information


debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<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: Host 'idefix1.labo.fr' is known and matches the RSA host key.
debug1: Found key in /Users/marti/.ssh/known_hosts:3
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information


debug1: Next authentication method: publickey
debug1: Offering public key: /Users/marti/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 434
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Requesting authentication agent forwarding.
debug1: Sending command: nc asterix1.labo.fr 22
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug1: An invalid name was supplied
Hostname cannot be canonicalized

debug1: An invalid name was supplied
Hostname cannot be canonicalized

^Cdebug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Killed by signal 2.

Spip-marti-49-~:clear

Spip-marti-50-~:ssh -v asterix_lsce
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/marti/.ssh/config
debug1: Applying options for *
debug1: Applying options for asterix*
debug1: Applying options for asterix_lsce
debug1: Reading configuration data /etc/ssh_config
debug1: Executing proxy command: exec ssh -v idefix1.labo.fr nc
asterix1.labo.fr 22
debug1: permanently_drop_suid: 501
debug1: identity file /Users/marti/.ssh/identity type -1
debug1: identity file /Users/marti/.ssh/id_rsa type 1
debug1: identity file /Users/marti/.ssh/id_dsa type 2
OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /Users/marti/.ssh/config
debug1: Applying options for *
debug1: Applying options for *.labo.fr
debug1: Applying options for idefix*
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to idefix1.labo.fr [132.166.43.200] port 22.
debug1: Connection established.
debug1: identity file /Users/marti/.ssh/identity type -1
debug1: identity file /Users/marti/.ssh/id_rsa type 1
debug1: identity file /Users/marti/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information


debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<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: Host 'idefix1.labo.fr' is known and matches the RSA host key.
debug1: Found key in /Users/marti/.ssh/known_hosts:3
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more
information


debug1: Next authentication method: publickey
debug1: Offering public key: /Users/marti/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 434
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Requesting authentication agent forwarding.
debug1: Sending command: nc asterix1.labo.fr 22
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug1: An invalid name was supplied
Hostname cannot be canonicalized

debug1: An invalid name was supplied
Hostname cannot be canonicalized

debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 2496, received 2840 bytes, in 120.3 seconds
Bytes per second: sent 20.8, received 23.6
debug1: Exit status 0
debug1: An invalid name was supplied


debug1: SSH2_MSG_KEXINIT sent
Write failed: Broken pipe
Spip-marti-51-~:

2 réponses

Avatar
Julien Salort
(Olivier Marti) writes:

Dans .ssh/ssh_config, j'ai :

Host asterix_labo
User marti
ProxyCommand ssh idefix1.labo.fr nc asterix1.labo.fr 22



Je ne sais pas pourquoi ça ne marche pas. Cependant, je peux te donne r,
pour info, la ligne que j'ai dans mon ~/.ssh/config et qui fonctionne
pour moi :

Host *.labo
User jsalort
ProxyCommand ssh "nc -w 3 $(basename %h
.labo) %p"

--
R: Parce que ça renverse bêtement l'ordre naturel de lecture !
Q: Mais pourquoi citer en fin d'article est-il si effroyable ?
R: Citer en fin d'article.
Q: Quelle est la chose la plus désagréable sur les groupes de new s ?
Avatar
olivier.marti
Julien Salort wrote:

(Olivier Marti) writes:

> Dans .ssh/ssh_config, j'ai :
>
> Host asterix_labo
> User marti
> ProxyCommand ssh idefix1.labo.fr nc asterix1.labo.fr 22

Je ne sais pas pourquoi ça ne marche pas. Cependant, je peux te donner,
pour info, la ligne que j'ai dans mon ~/.ssh/config et qui fonctionne
pour moi :

Host *.labo
User jsalort
ProxyCommand ssh "nc -w 3 $(basename %h
.labo) %p"




En fait ma commande ne marche pas depuis chez moi, sur le réseau Télé2,
mais fonctionne depuis un autre labo, sur Renater donc. Ca augmente ma
perplexité.

Olivier