KWLUG Ten SSH Tricks #17

10) debug with ssh -v

  • Easier to catch configuration problems this way.

  • ssh -v and watch the output.

                 OpenSSH_3.4p1 Debian 1:3.4p1-1, SSH protocols 1.5/2.0, OpenSSL 0x0090603f
                 debug1: Reading configuration data /home/daniel/.ssh/config
                 debug1: Reading configuration data /etc/ssh/ssh_config
                 debug1: Rhosts Authentication disabled, originating port will not be trusted.
                 debug1: ssh_connect: needpriv 0
                 debug1: Connecting to coder.com [207.127.235.77] port 22.
                 debug1: Connection established.
                 debug1: identity file /home/daniel/.ssh/identity type 0
                 debug1: identity file /home/daniel/.ssh/id_rsa type 1
                 debug1: identity file /home/daniel/.ssh/id_dsa type -1
                 debug1: Remote protocol version 1.5, remote software version OpenSSH-1.2.3
                 debug1: match: OpenSSH-1.2.3 pat OpenSSH*
                 debug1: Local version string SSH-1.5-OpenSSH_3.4p1 Debian 1:3.4p1-1
                 debug1: Waiting for server public key.
                 debug1: Received server public key (768 bits) and host key (1024 bits).
                 debug1: Host 'coder.com' is known and matches the RSA1 host key.
                 debug1: Found key in /home/daniel/.ssh/known_hosts:1
                 debug1: Encryption type: 3des
                 debug1: Sent encrypted session key.
                 debug1: cipher_init: set keylen (16 -> 32)
                 debug1: cipher_init: set keylen (16 -> 32)
                 debug1: Installing crc compensation attack detector.
                 debug1: Received encrypted confirmation.
                 debug1: Trying RSA authentication with key '/home/daniel/.ssh/identity'
                 debug1: Remote: .ssh/authorized_keys, line 1: bad key syntax
                 debug1: Received RSA challenge from server.
                 debug1: Sending response to host key RSA challenge.
                 debug1: Remote: RSA authentication accepted.
                 debug1: RSA authentication accepted by server.
                 debug1: Requesting compression at level 6.
                 debug1: Enabling compression at level 6.
                 debug1: Requesting pty.
                 debug1: fd 3 setting TCP_NODELAY
                 debug1: Requesting shell.
                 debug1: Entering interactive session.
                 Last login: Mon Oct  7 15:57:22 2002 from kitchener-hse-ppp3572838.sympatico.ca on pts/2
                 Linux matrix 2.2.18pre21-compact #1 Sat Nov 18 09:23:46 MST 2000 i686 unknown
                 Most of the programs included with the Debian GNU/Linux system are
                 freely redistributable; the exact distribution terms for each program
                 are described in the individual files in /usr/doc/*/copyright
                 Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
                 permitted by applicable law.
                 No mail.

<< Previous | Index | Next >> Copyright © 2002 Daniel Allen