Results 1 to 10 of 10

Thread: ssh setup rsa password

  1. #1
    Join Date
    Oct 2009
    Beans
    64
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question ssh setup rsa password

    hey everyone,
    i need to connect my ubuntu box (remote computer) to my mac box (don't ask questions) via ssh. i can connect but i need to know how to put the key in (rsa). i've read part of the https://help.ubuntu.com/community/SSH but i'm confused on what i need to do. can somebody help?
    1: make me a sandwich
    2: no, make one yourself
    1: sudo make me a sandwich
    2: [sudo] password for human:

  2. #2
    Join Date
    Apr 2009
    Location
    /home/montel
    Beans
    Hidden!

    Re: ssh setup rsa password

    Wait, what?

    Are you trying to generate a SSH key? Who is the host OS, Mac or Ubuntu?

  3. #3
    Join Date
    Oct 2009
    Beans
    64
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: ssh setup rsa password

    by host computer i guess you mean the one i'm connecting too, so the Mac is the host
    1: make me a sandwich
    2: no, make one yourself
    1: sudo make me a sandwich
    2: [sudo] password for human:

  4. #4
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: ssh setup rsa password

    What part of the key process is causing confusion - the generation or copying the public key to the server?
    Oh, wait - that's a question - sorry...
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  5. #5
    Join Date
    Mar 2010
    Beans
    Hidden!

    Re: ssh setup rsa password

    Does this help?
    https://help.ubuntu.com/community/SS...20SSH%20Logins
    Saving Keys on Remote Computers

    If you can log in to a computer over SSH using a password, you can transfer your RSA key by doing the following from your own computer:

    ssh-copy-id <username>@<host>Where <username> and <host> should be replaced by your username and the name of the computer you're transferring your key to.
    You can make sure this worked by doing:

    ssh <username>@<host>You should be prompted for the passphrase for your key:
    Enter passphrase for key '/home/<user>/.ssh/id_rsa':

    Enter your passphrase, and provided host is configured to allow key-based logins, you should then be logged in as usual.
    You said you can connect, but you didn't say if you could login.

  6. #6
    Join Date
    Oct 2009
    Beans
    64
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: ssh setup rsa password

    Quote Originally Posted by Iowan View Post
    What part of the key process is causing confusion - the generation or copying the public key to the server?
    Oh, wait - that's a question - sorry...
    i meant questions about why i have a mac box. i'm confused about if i generate the key on the computer i connect to and then add it to the i connect from or vice versa
    1: make me a sandwich
    2: no, make one yourself
    1: sudo make me a sandwich
    2: [sudo] password for human:

  7. #7
    psusi is offline Ubuntu addict and loving it
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Beans
    3,980
    Distro
    Ubuntu Development Release

    Re: ssh setup rsa password

    You can generate it anywhere you like. You just need to make sure that the public key is installed on the server you want to connect to, and the private key is installed on the computer you want to connect from.

  8. #8
    Join Date
    Apr 2009
    Location
    /home/montel
    Beans
    Hidden!

    Re: ssh setup rsa password

    Okay, so what I think you're trying to do is set up your Mac box to authenticate users that try to access it via SSH by a SSH key, right?


    http://lmgtfy.com/?q=mac+ssh+key+

    That should help you.

  9. #9
    Join Date
    Oct 2009
    Beans
    64
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: ssh setup rsa password

    ok, i've got the keys generated on my ubuntu box in my .ssh folder. do i move the id_rsa or the id_rsa.pub to the server (i.e. mac box)?
    1: make me a sandwich
    2: no, make one yourself
    1: sudo make me a sandwich
    2: [sudo] password for human:

  10. #10
    Join Date
    Oct 2009
    Beans
    64
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: ssh setup rsa password

    never mind, i've got it working

    thanks everyone
    1: make me a sandwich
    2: no, make one yourself
    1: sudo make me a sandwich
    2: [sudo] password for human:

Tags for this Thread

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
  •