Results 1 to 9 of 9

Thread: ssh Setup

  1. #1
    Join Date
    Sep 2008
    Location
    South-Africa
    Beans
    79
    Distro
    Ubuntu 8.04 Hardy Heron

    ssh Setup

    Hi,

    How do I setup a ssh server. I have it working already, what I mean is, how do I set the fine details and settings: ie generate new security keys, etc.

  2. #2
    Join Date
    Dec 2004
    Location
    Atlanta, GA USA
    Beans
    7,257
    Distro
    Ubuntu Development Release

    Re: ssh Setup

    Here you go.

  3. #3
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: ssh Setup

    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  4. #4
    Join Date
    Sep 2008
    Location
    South-Africa
    Beans
    79
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: ssh Setup

    Thanks Bodi,

    I read the ssh and advanced ssh articles, but one thing did I not find. How do I get the ssh key generated on my Ubuntu server to my Windows putty client?

  5. #5
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: ssh Setup

    Quote Originally Posted by Konstabel View Post
    Thanks Bodi,

    I read the ssh and advanced ssh articles, but one thing did I not find. How do I get the ssh key generated on my Ubuntu server to my Windows putty client?
    You have to convert the key.

    You generated an openssh key , now you need to convert it to a format Putty understands.

    You do this with putty's key generator (puttygen.exe)

    Import the key, you will be asked for your password.

    Then save the key Use the same name as the original key (important).

    http://linux-sxs.org/networking/openssh.putty.html

    Scroll down to the "Converting the OpenSSH private key to Putty format" section.

    Note: I updated the SSH wiki page adding a short section and the above link.
    Last edited by bodhi.zazen; October 8th, 2008 at 04:18 PM.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  6. #6
    Join Date
    Dec 2006
    Beans
    702
    Distro
    Ubuntu

    Re: ssh Setup

    Quote Originally Posted by bodhi.zazen View Post
    You have to convert the key.

    You generated an openssh key , now you need to convert it to a format Putty understands.

    You do this with putty's key generator (puttygen.exe)

    Import the key, you will be asked for your password.

    Then save the key Use the same name as the original key (important).

    http://linux-sxs.org/networking/openssh.putty.html

    Scroll down to the "Converting the OpenSSH private key to Putty format" section.
    Your quick bodhi.zazen! I was going to suggest ex actually what you put. I started typing and say that you already replied


  7. #7
    Join Date
    Sep 2008
    Location
    South-Africa
    Beans
    79
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: ssh Setup

    Thanks for the help, it is really appreciated.

    Now I am stuck with the actual import step. When I try to do File->Load Private key, I get an error message stating "Cannot open file" (the id_rsa file).

    I saved the file in a shared folder, accessible by my windows machine. Everything else in the same folder I can access.

  8. #8
    Join Date
    Sep 2008
    Location
    South-Africa
    Beans
    79
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: ssh Setup

    I forgot to ask. Why is it that when ssh-keygen generates a key it is called a public key

    Your public key has been saved in ...

    But when you import it into keygen, it asks for a private key?

  9. #9
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: ssh Setup

    ssh-keygen generates two keys, a public and private key.

    The default is "id_rsa"

    You can change the name ...

    At any rate you get 2 files, id_rsa and id_rsa.pub

    The terminology is confusing.

    The .pub is the public key, you put that on the ssh server, under ~/.ssh/authorized_keys

    The private key you keep.

    You want to import the private key (to putty-gen) and then save is as "id_rsa.ppk".

    I found this helpful :

    http://alblue.blogspot.com/2005/08/h...sing-keys.html


    http://docs.ocf.berkeley.edu/wiki/SSH_key_management
    Last edited by bodhi.zazen; October 9th, 2008 at 12:29 AM.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •