SSH key exchange - Error - SSH

This is a discussion on SSH key exchange - Error - SSH ; Hi all, I need a passwordless login when I connect to our Debia Etch server. Theoretically I know how to proceed but something is wrong. The systems: - client: Windows XP puTTY release 0.58 - server: Linux etch.mydomain 2.6.16-2-686 #1 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: SSH key exchange - Error

  1. SSH key exchange - Error

    Hi all,

    I need a passwordless login when I connect to our Debia Etch server.
    Theoretically I know
    how to proceed but something is wrong.

    The systems:
    - client: Windows XP
    puTTY release 0.58
    - server: Linux etch.mydomain 2.6.16-2-686 #1 Fri Aug 18 19:01:49 UTC
    2006 i686 GNU/Linux
    OpenSSH_4.3p2 Debian-3, OpenSSL 0.9.8c 05 Sep 2006

    The steps what I followed:
    1. generate the key pair (SSH-2 RSA)
    2. I put a comment
    3. I saved the keys (my_id_rsa.ppk, my_id_rsa.pub)
    4. I copied the pub key using pscp to the Linux server
    (/home/user/.ssh)
    5. I issued the 'ssh-keyscan my_id_rsa.pub' command

    The serult was:
    getaddrinfo my_id_rsa.pub: Name or service not
    known

    What I made wrong?

    Laci


  2. Re: SSH key exchange - Error

    In article <1165482408.859719.100840@l12g2000cwl.googlegroups. com>
    graf.laszlo@axis.hu writes:
    >
    >I need a passwordless login when I connect to our Debia Etch server.
    >Theoretically I know
    >how to proceed but something is wrong.
    >
    >The systems:
    > - client: Windows XP
    > puTTY release 0.58
    > - server: Linux etch.mydomain 2.6.16-2-686 #1 Fri Aug 18 19:01:49 UTC
    >2006 i686 GNU/Linux
    > OpenSSH_4.3p2 Debian-3, OpenSSL 0.9.8c 05 Sep 2006
    >
    >The steps what I followed:
    >1. generate the key pair (SSH-2 RSA)
    >2. I put a comment
    >3. I saved the keys (my_id_rsa.ppk, my_id_rsa.pub)
    >4. I copied the pub key using pscp to the Linux server
    >(/home/user/.ssh)


    Assuming OpenSSH on the Linux box, the key should be stored in the
    authorized_keys file. That file can hold multiple keys, so a proper way
    to get it there would be

    cat my_id_rsa.pub >> /home/user/.ssh/authorized_keys

    Um, well, that assumes a key in OpenSSH format - I don't know what
    format puTTY uses, but assuming the "SECSH Public Key File Format",
    you'll need to instead do something like

    ssh-keygen -i -f my_id_rsa.pub >> /home/user/.ssh/authorized_keys

    >5. I issued the 'ssh-keyscan my_id_rsa.pub' command


    I don't know what you hoped to achieve with that - try 'man ssh-keyscan'
    to see what that command does. Maybe you mixed it up with ssh-keygen?

    >The serult was:
    > getaddrinfo my_id_rsa.pub: Name or service not
    >known


    Expected per the man page.

    --Per Hedeland
    per@hedeland.org

+ Reply to Thread