SSH with OpenSSH and Putty - Please Help!

From: Armour, Aaron J (BearingPoint) (aarmour_at_bearingpoint.net)
Date: 03/01/04

  • Next message: Mark Leisher: "Re: SSH with OpenSSH and Putty - Please Help!"
    To: "'secureshell@securityfocus.com'" <secureshell@securityfocus.com>
    Date: Sun, 29 Feb 2004 21:12:10 -0500
    
    

    To Whom It May Concern,

    I have a server running Solaris 9 and I am trying to use Putty from Windows
    clients to connect. I can connect via username and password, but I want to
    use key exchange and it will not work. I generated a key on the Solaris
    server with Keygen and then appended that to a file in the /.ssh directory
    named authorized_keys. I had to create this file. I then copied the
    private key to my Windows machine via ftp and through Putty I converted the
    OpenSSH generated key to a Putty Key. I would think that this was all I
    needed, but I am missing something here. Do I need to generate keys on the
    server side (Solaris side) and then copy these locally somewhere so Putty
    can see them? I thought I followed the Putty directions fine, but obviously
    not and there is not alot of good troubleshooting documentation on the
    internet concerning SSH. Below is the output from my Putty log file.
    Everything seems fine until I get to the part that says:

    Event Log: Key refused
    Event Log: No supported authentications offered. Disconnecting

    Can someone please take a look at this and offer suggestions? I am very
    frustrated at this point. thanks--AJ

    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2004.02.29 14:24:24
    =~=~=~=~=~=~=~=~=~=~=~=
    Event Log: Appending session log (SSH packets mode) to file: putty.log
    Event Log: Looking up host "10.25.225.160"
    Event Log: Connecting to 10.25.225.160 port 22
    Event Log: Server version: SSH-2.0-Sun_SSH_1.0
    Event Log: We claim version: SSH-2.0-PuTTY-Release-0.54
    Event Log: Using SSH protocol version 2
    Incoming packet type 20 / 0x14 (SSH2_MSG_KEXINIT)
      00000000 7c a2 61 43 26 83 e7 47 45 89 eb 66 a9 f1 13 ab
    |.aC&..GE..f....
      00000010 00 00 00 1a 64 69 66 66 69 65 2d 68 65 6c 6c 6d
    ....diffie-hellm
      00000020 61 6e 2d 67 72 6f 75 70 31 2d 73 68 61 31 00 00
    an-group1-sha1..
      00000030 00 0f 73 73 68 2d 72 73 61 2c 73 73 68 2d 64 73
    ..ssh-rsa,ssh-ds
      00000040 73 00 00 00 20 61 65 73 31 32 38 2d 63 62 63 2c s...
    aes128-cbc,
      00000050 62 6c 6f 77 66 69 73 68 2d 63 62 63 2c 33 64 65
    blowfish-cbc,3de
      00000060 73 2d 63 62 63 00 00 00 20 61 65 73 31 32 38 2d s-cbc...
    aes128-
      00000070 63 62 63 2c 62 6c 6f 77 66 69 73 68 2d 63 62 63
    cbc,blowfish-cbc
      00000080 2c 33 64 65 73 2d 63 62 63 00 00 00 12 68 6d 61
    ,3des-cbc....hma
      00000090 63 2d 73 68 61 31 2c 68 6d 61 63 2d 6d 64 35 00
    c-sha1,hmac-md5.
      000000a0 00 00 12 68 6d 61 63 2d 73 68 61 31 2c 68 6d 61
    ...hmac-sha1,hma
      000000b0 63 2d 6d 64 35 00 00 00 09 6e 6f 6e 65 2c 7a 6c
    c-md5....none,zl
      000000c0 69 62 00 00 00 09 6e 6f 6e 65 2c 7a 6c 69 62 00
    ib....none,zlib.
      000000d0 00 00 f9 2f 75 73 72 2f 64 74 2f 6c 69 62 2f 6e
    .../usr/dt/lib/n
      000000e0 6c 73 2f 6d 73 67 2f 43 2f 53 55 4e 57 5f 4f 53
    ls/msg/C/SUNW_OS
      000000f0 54 5f 4f 53 43 4d 44 2e 63 61 74 3a 2f 75 73 72
    T_OSCMD.cat:/usr
      00000100 2f 64 74 2f 6c 69 62 2f 6e 6c 73 2f 6d 73 67 2f
    /dt/lib/nls/msg/
      00000110 43 2f 53 55 4e 57 5f 4f 53 54 5f 4f 53 43 4d 44
    C/SUNW_OST_OSCMD
      00000120 2e 63 61 74 3a 2c 67 65 6f 2c 6c 63 74 74 61 62
    .cat:,geo,lcttab
      00000130 2c 69 73 6f 5f 38 38 35 39 5f 31 35 2c 69 73 6f
    ,iso_8859_15,iso
      00000140 5f 38 38 35 39 5f 31 2c 65 6e 5f 43 41 2c 65 6e
    _8859_1,en_CA,en
      00000150 5f 43 41 2e 49 53 4f 38 38 35 39 2d 31 2c 65 6e
    _CA.ISO8859-1,en
      00000160 5f 55 53 2c 65 6e 5f 55 53 2e 49 53 4f 38 38 35
    _US,en_US.ISO885
      00000170 39 2d 31 2c 65 6e 5f 55 53 2e 49 53 4f 38 38 35
    9-1,en_US.ISO885
      00000180 39 2d 31 35 2c 65 6e 5f 55 53 2e 49 53 4f 38 38
    9-15,en_US.ISO88
      00000190 35 39 2d 31 35 40 65 75 72 6f 2c 65 73 2c 65 73
    59-15@euro,es,es
      000001a0 5f 4d 58 2c 65 73 5f 4d 58 2e 49 53 4f 38 38 35
    _MX,es_MX.ISO885
      000001b0 39 2d 31 2c 66 72 2c 66 72 5f 43 41 2c 66 72 5f
    9-1,fr,fr_CA,fr_
      000001c0 43 41 2e 49 53 4f 38 38 35 39 2d 31 00 00 00 f9
    CA.ISO8859-1....
      000001d0 2f 75 73 72 2f 64 74 2f 6c 69 62 2f 6e 6c 73 2f
    /usr/dt/lib/nls/
      000001e0 6d 73 67 2f 43 2f 53 55 4e 57 5f 4f 53 54 5f 4f
    msg/C/SUNW_OST_O
      000001f0 53 43 4d 44 2e 63 61 74 3a 2f 75 73 72 2f 64 74
    SCMD.cat:/usr/dt
      00000200 2f 6c 69 62 2f 6e 6c 73 2f 6d 73 67 2f 43 2f 53
    /lib/nls/msg/C/S
      00000210 55 4e 57 5f 4f 53 54 5f 4f 53 43 4d 44 2e 63 61
    UNW_OST_OSCMD.ca
      00000220 74 3a 2c 67 65 6f 2c 6c 63 74 74 61 62 2c 69 73
    t:,geo,lcttab,is
      00000230 6f 5f 38 38 35 39 5f 31 35 2c 69 73 6f 5f 38 38
    o_8859_15,iso_88
      00000240 35 39 5f 31 2c 65 6e 5f 43 41 2c 65 6e 5f 43 41
    59_1,en_CA,en_CA
      00000250 2e 49 53 4f 38 38 35 39 2d 31 2c 65 6e 5f 55 53
    .ISO8859-1,en_US
      00000260 2c 65 6e 5f 55 53 2e 49 53 4f 38 38 35 39 2d 31
    ,en_US.ISO8859-1
      00000270 2c 65 6e 5f 55 53 2e 49 53 4f 38 38 35 39 2d 31
    ,en_US.ISO8859-1
      00000280 35 2c 65 6e 5f 55 53 2e 49 53 4f 38 38 35 39 2d
    5,en_US.ISO8859-
      00000290 31 35 40 65 75 72 6f 2c 65 73 2c 65 73 5f 4d 58
    15@euro,es,es_MX
      000002a0 2c 65 73 5f 4d 58 2e 49 53 4f 38 38 35 39 2d 31
    ,es_MX.ISO8859-1
      000002b0 2c 66 72 2c 66 72 5f 43 41 2c 66 72 5f 43 41 2e
    ,fr,fr_CA,fr_CA.
      000002c0 49 53 4f 38 38 35 39 2d 31 00 00 00 00 00 ISO8859-1.....
    Outgoing packet type 20 / 0x14 (SSH2_MSG_KEXINIT)
      00000000 13 70 d1 95 88 83 72 9a da 53 7a 10 56 57 1f 7c
    .p....r..Sz.VW.|
      00000010 00 00 00 3d 64 69 66 66 69 65 2d 68 65 6c 6c 6d
    ...=diffie-hellm
      00000020 61 6e 2d 67 72 6f 75 70 2d 65 78 63 68 61 6e 67
    an-group-exchang
      00000030 65 2d 73 68 61 31 2c 64 69 66 66 69 65 2d 68 65
    e-sha1,diffie-he
      00000040 6c 6c 6d 61 6e 2d 67 72 6f 75 70 31 2d 73 68 61
    llman-group1-sha
      00000050 31 00 00 00 0f 73 73 68 2d 72 73 61 2c 73 73 68
    1....ssh-rsa,ssh
      00000060 2d 64 73 73 00 00 00 82 33 64 65 73 2d 63 62 63
    -dss....3des-cbc
      00000070 2c 61 65 73 32 35 36 2d 63 62 63 2c 72 69 6a 6e
    ,aes256-cbc,rijn
      00000080 64 61 65 6c 32 35 36 2d 63 62 63 2c 72 69 6a 6e
    dael256-cbc,rijn
      00000090 64 61 65 6c 2d 63 62 63 40 6c 79 73 61 74 6f 72
    dael-cbc@lysator
      000000a0 2e 6c 69 75 2e 73 65 2c 61 65 73 31 39 32 2d 63
    .liu.se,aes192-c
      000000b0 62 63 2c 72 69 6a 6e 64 61 65 6c 31 39 32 2d 63
    bc,rijndael192-c
      000000c0 62 63 2c 61 65 73 31 32 38 2d 63 62 63 2c 72 69
    bc,aes128-cbc,ri
      000000d0 6a 6e 64 61 65 6c 31 32 38 2d 63 62 63 2c 62 6c
    jndael128-cbc,bl
      000000e0 6f 77 66 69 73 68 2d 63 62 63 00 00 00 82 33 64
    owfish-cbc....3d
      000000f0 65 73 2d 63 62 63 2c 61 65 73 32 35 36 2d 63 62
    es-cbc,aes256-cb
      00000100 63 2c 72 69 6a 6e 64 61 65 6c 32 35 36 2d 63 62
    c,rijndael256-cb
      00000110 63 2c 72 69 6a 6e 64 61 65 6c 2d 63 62 63 40 6c
    c,rijndael-cbc@l
      00000120 79 73 61 74 6f 72 2e 6c 69 75 2e 73 65 2c 61 65
    ysator.liu.se,ae
      00000130 73 31 39 32 2d 63 62 63 2c 72 69 6a 6e 64 61 65
    s192-cbc,rijndae
      00000140 6c 31 39 32 2d 63 62 63 2c 61 65 73 31 32 38 2d
    l192-cbc,aes128-
      00000150 63 62 63 2c 72 69 6a 6e 64 61 65 6c 31 32 38 2d
    cbc,rijndael128-
      00000160 63 62 63 2c 62 6c 6f 77 66 69 73 68 2d 63 62 63
    cbc,blowfish-cbc
      00000170 00 00 00 17 68 6d 61 63 2d 73 68 61 31 2c 68 6d
    ....hmac-sha1,hm
      00000180 61 63 2d 6d 64 35 2c 6e 6f 6e 65 00 00 00 17 68
    ac-md5,none....h
      00000190 6d 61 63 2d 73 68 61 31 2c 68 6d 61 63 2d 6d 64
    mac-sha1,hmac-md
      000001a0 35 2c 6e 6f 6e 65 00 00 00 0e 6e 6f 6e 65 2c 7a
    5,none....none,z
      000001b0 6c 69 62 2c 6e 6f 6e 65 00 00 00 0e 6e 6f 6e 65
    lib,none....none
      000001c0 2c 7a 6c 69 62 2c 6e 6f 6e 65 00 00 00 00 00 00
    ,zlib,none......
      000001d0 00 00 00 00 00 00 00 .......
    Event Log: Doing Diffie-Hellman key exchange
    Outgoing packet type 30 / 0x1e (SSH2_MSG_KEXDH_INIT)
      00000000 00 00 00 80 57 5b df d0 27 83 72 dd f8 0a 5a 52
    ....W[..'.r...ZR
      00000010 c4 4c 57 62 7e e6 77 e4 d7 d0 4d a9 72 06 ea 7d
    .LWb~.w...M.r..}
      00000020 04 48 5f 26 26 e5 83 e5 99 5e c2 92 a3 be 60 c4
    .H_&&....^....`.
      00000030 b6 c5 27 fa 65 87 52 6f be c0 64 50 85 ba 39 24
    ..'.e.Ro..dP..9$
      00000040 74 11 cb f2 c7 b8 2b a8 fa 32 d9 23 0e 1d 68 99
    t.....+..2.#..h.
      00000050 02 a4 21 a1 d1 4b 69 c6 29 2b 1b b1 6b 1b b8 56
    ..!..Ki.)+..k..V
      00000060 d4 af 2b ff 38 d0 e2 dd ed 39 3d 17 c5 c3 7d 45
    ..+.8....9=...}E
      00000070 07 3c aa c6 f7 0e 0e cf 37 24 a1 9c ee 60 f7 28
    .<......7$...`.(
      00000080 c8 11 39 e4 ..9.
    Incoming packet type 31 / 0x1f (SSH2_MSG_KEXDH_REPLY)
      00000000 00 00 00 95 00 00 00 07 73 73 68 2d 72 73 61 00
    ........ssh-rsa.
      00000010 00 00 01 23 00 00 00 81 00 be 98 f2 b7 86 37 fa
    ...#..........7.
      00000020 4c de f9 a4 b7 05 56 bd b0 1b 4f 9e 60 e3 5a b6
    L.....V...O.`.Z.
      00000030 15 23 06 af 03 ea d6 ab d2 28 7a 2e 8e c1 41 e1
    .#.......(z...A.
      00000040 35 5f a2 85 aa 85 40 aa 43 bf 85 24 af 6c d3 28
    5_....@.C..$.l.(
      00000050 8e 62 36 be 4d aa ae fe e6 ea 4c 64 22 33 f5 49
    .b6.M.....Ld"3.I
      00000060 88 85 de 7b fa 32 04 c1 c7 1d 9b df cb dd fb c4
    ...{.2..........
      00000070 d0 4a 0e 18 2e 1e 1e 66 d6 16 77 c6 12 8b 45 75
    .J.....f..w...Eu
      00000080 49 a5 df 57 66 14 8e f1 49 21 d2 fc d5 79 fe 3c
    I..Wf...I!...y.<
      00000090 6d 62 8e 7b f6 1d 39 9a 75 00 00 00 81 00 ea 2e
    mb.{..9.u.......
      000000a0 84 0f 71 0b 23 57 c1 9f 9e 90 c7 37 6a 88 47 94
    ..q.#W.....7j.G.
      000000b0 e9 4e 1d b7 dd cf 71 ae b4 48 80 9e 91 82 50 08
    .N....q..H....P.
      000000c0 f8 e5 44 91 65 f8 e0 9f 06 33 83 a4 b6 46 53 fe
    ..D.e....3...FS.
      000000d0 a0 19 b7 5b e7 78 7b 0f fa 33 f4 f5 e7 20 9f 28 ...[.x{..3...
    .(
      000000e0 6f 53 6e 2f 5e 49 57 63 2a 50 b2 3b ca e0 99 be
    oSn/^IWc*P.;....
      000000f0 2c 40 c2 9c 47 5b c8 72 4d 17 7c be be d0 8f c2
    ,@..G[.rM.|.....
      00000100 52 a7 ec 1d 20 9a ca f5 db 0c 2f 59 74 9e d1 88 R...
    ...../Yt...
      00000110 da c5 bb c8 cc 7e d9 f8 d4 7e 8a 2a b5 80 00 00
    .....~...~.*....
      00000120 00 8f 00 00 00 07 73 73 68 2d 72 73 61 00 00 00
    ......ssh-rsa...
      00000130 80 33 20 8e 28 93 61 1d 01 ed a2 2a a6 c3 cc 7f .3
    .(.a....*....
      00000140 cd f0 7f db 75 1f 1a c1 fc 85 9a 96 0f 25 c8 cf
    ....u........%..
      00000150 be 23 2f bb 14 c9 57 dc 21 35 76 a3 84 f0 1a 3a
    .#/...W.!5v....:
      00000160 6c 68 ef 08 0f 68 52 27 65 d0 30 86 67 9d 81 0f
    lh...hR'e.0.g...
      00000170 8d 78 25 63 29 ae 82 89 52 2f 11 2d 8a 81 7c 07
    .x%c)...R/.-..|.
      00000180 ed 13 38 6c 97 e6 b2 52 14 ef fd 8a 96 0f fc eb
    ..8l...R........
      00000190 47 8d 1f 40 bc 2b 8b 43 d3 0d 16 d0 63 84 cd cd
    G..@.+.C....c...
      000001a0 c3 89 ed 68 bb eb a2 03 01 be be 87 32 20 cd ce ...h........2
    ..
      000001b0 9d .
    Event Log: Host key fingerprint is:
    Event Log: ssh-rsa 1024 fa:26:c7:15:0d:0e:ff:62:d0:f2:48:aa:ae:b5:f6:24
    Outgoing packet type 21 / 0x15 (SSH2_MSG_NEWKEYS)
    Incoming packet type 21 / 0x15 (SSH2_MSG_NEWKEYS)
    Event Log: Initialised triple-DES client->server encryption
    Event Log: Initialised triple-DES server->client encryption
    Outgoing packet type 5 / 0x05 (SSH2_MSG_SERVICE_REQUEST)
      00000000 00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68
    ....ssh-userauth
    Incoming packet type 6 / 0x06 (SSH2_MSG_SERVICE_ACCEPT)
      00000000 00 00 00 0c 73 73 68 2d 75 73 65 72 61 75 74 68
    ....ssh-userauth
    Outgoing packet type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST)
      00000000 00 00 00 07 61 61 72 6d 6f 75 72 00 00 00 0e 73
    ....aarmour....s
      00000010 73 68 2d 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00
    sh-connection...
      00000020 04 6e 6f 6e 65 .none
    Event Log: Reading private key file "D:\Documents and
    Settings\aarmour\Desktop\solarisPrivateKey.ppk"
    Incoming packet type 51 / 0x33 (SSH2_MSG_USERAUTH_FAILURE)
      00000000 00 00 00 09 70 75 62 6c 69 63 6b 65 79 00 ....publickey.
    Event Log: Pageant is running. Requesting keys.
    Event Log: Pageant has 1 SSH2 keys
    Event Log: Trying Pageant key #0
    Event Log: This key matches configured key file
    Outgoing packet type 50 / 0x32 (SSH2_MSG_USERAUTH_REQUEST)
      00000000 00 00 00 07 61 61 72 6d 6f 75 72 00 00 00 0e 73
    ....aarmour....s
      00000010 73 68 2d 63 6f 6e 6e 65 63 74 69 6f 6e 00 00 00
    sh-connection...
      00000020 09 70 75 62 6c 69 63 6b 65 79 00 00 00 00 07 73
    .publickey.....s
      00000030 73 68 2d 72 73 61 00 00 00 95 00 00 00 07 73 73
    sh-rsa........ss
      00000040 68 2d 72 73 61 00 00 00 01 23 00 00 00 81 00 a2
    h-rsa....#......
      00000050 7a 9a 1f f1 ee 21 12 0d 8e 07 87 28 e5 56 ad 97
    z....!.....(.V..
      00000060 96 bc 92 95 6c 9f eb 3e ec 9f 42 8e 7b 0f 80 18
    ....l..>..B.{...
      00000070 2f d4 c8 b6 19 b9 b1 c6 41 bf a8 7f d6 12 06 d7
    /.......A.......
      00000080 8b 40 4a f9 5b 14 d8 aa 5b 6a 5b 73 12 2b 14 c9
    .@J.[...[j[s.+..
      00000090 d7 bd e0 98 91 ae f2 d0 00 3e d2 d8 02 df 6d 04
    .........>....m.
      000000a0 53 91 ae 9b c8 be 2b e3 c0 99 4b e9 e4 37 ea 8a
    S.....+...K..7..
      000000b0 54 fb 7d ca cf c0 dd d7 e8 2b aa d0 bf 27 6b 8c
    T.}......+...'k.
      000000c0 ae a8 66 f9 44 0c 0c d9 60 af fb b4 64 c1 6f ..f.D...`...d.o
    Incoming packet type 51 / 0x33 (SSH2_MSG_USERAUTH_FAILURE)
      00000000 00 00 00 09 70 75 62 6c 69 63 6b 65 79 00 ....publickey.
    Event Log: Key refused
    Event Log: No supported authentications offered. Disconnecting
    Outgoing packet type 1 / 0x01 (SSH2_MSG_DISCONNECT)
      00000000 00 00 00 0b 00 00 00 2d 4e 6f 20 73 75 70 70 6f .......-No
    suppo
      00000010 72 74 65 64 20 61 75 74 68 65 6e 74 69 63 61 74 rted
    authenticat
      00000020 69 6f 6e 20 6d 65 74 68 6f 64 73 20 61 76 61 69 ion methods
    avai
      00000030 6c 61 62 6c 65 00 00 00 02 65 6e lable....en

    A.J. Armour | Senior Management Analyst | BearingPoint
    Mobile: 317-331-3152 | aarmour@BearingPoint.net

    ******************************************************************************
    The information in this email is confidential and may be legally
    privileged. Access to this email by anyone other than the
    intended addressee is unauthorized. If you are not the intended
    recipient of this message, any review, disclosure, copying,
    distribution, retention, or any action taken or omitted to be taken
    in reliance on it is prohibited and may be unlawful. If you are not
    the intended recipient, please reply to or forward a copy of this
    message to the sender and delete the message, any attachments,
    and any copies thereof from your system.
    ******************************************************************************


  • Next message: Mark Leisher: "Re: SSH with OpenSSH and Putty - Please Help!"

    Relevant Pages

    • PuTTY suddenly stopped working (WinXPsp2 to FreeBSD5.4)
      ... assumption is that the problem is on the Client machine. ... On the Server ... ... Open a PuTTY session and I am prompted for a username. ... Event Log: Writing new session log to file: ...
      (comp.security.ssh)
    • SSH with OpenSSH and Putty - Please Help!
      ... I deleted all my keys on the server and locally. ... Pagent and then I tried to connect via Putty and I got the same thing. ... Event Log: Appending session log (SSH packets mode) to file: putty.log ...
      (SSH)
    • RE: SSH with OpenSSH and Putty - Please Help!
      ... Chances are you put the public key in the wrong file on the server or the ... SSH with OpenSSH and Putty - Please Help! ... I have a server running Solaris 9 and I am trying to use Putty from Windows ... Event Log: No supported authentications offered. ...
      (SSH)
    • Re: SSH with OpenSSH and Putty - Please Help!
      ... > I have a server running Solaris 9 and I am trying to use Putty from Windows ... I generated a key on the Solaris ... > Event Log: No supported authentications offered. ...
      (SSH)
    • RE: SSH with OpenSSH and Putty - Please Help!
      ... SSH with OpenSSH and Putty - Please Help! ... I have a server running Solaris 9 and I am trying to use Putty from Windows ... Event Log: No supported authentications offered. ...
      (SSH)