Results 1 to 6 of 6
  1. #1

    SSH login and keys

    Here's what I am trying to do:
    Disable password authorization for SSH logins
    Use generated KEY to login.

    I have done this but now - What do I do with the key once generated?

    I am using a Mac OSX 10.4.
    Do I just need to put this in my keychain and how do I do it?


  2. #2
    Are you talking about trying to log into your system or to an external system from OS X?

  3. #3
    I would like to login to my VPS from my local Mac using a secure SSH using keys and not a password.

    How do I store the public key on my Mac so that the Terminal can access it and login?


  4. #4
    You have it backwards. You want to generate a key pair on your Mac and store the public key on your VPS in the file ~/.ssh/authorized_keys. I'm assuming the VPS uses OpenSSH; if not, you'll have to determine into which file your public key should go.

    Ssh-keygen, by default, stores your generated keys in .ssh, and ssh will look there when you try to log into another system.

  5. #5
    placebo3 - Thanks a million.
    I got it to work perfectly!

    Here are the steps I did in case any other newbies like myself need to know:
    On local Mac:

    ssh-keygen -t dsa
    Generating public/private dsa key pair.
    Enter file in which to save the key (/Users/username/.ssh/id_dsa): /Users/username/.ssh/id_dsa
    Enter passphrase (empty for no passphrase):
    Enter same passphrase again:
    Your identification has been saved in /Users/username/.ssh/id_dsa.
    Your public key has been saved in /Users/username/.ssh/
    The key fingerprint is:
    [email protected]x

    cd .ssh/
    cp ~/Desktop/id_dsa.txt

    Open this file in a text editor and copy the text.
    In Web Host Manager, select Import key and paste in the new key.

    Thanks again placebo3

  6. #6
    You're welcome. Glad you got it working.

Posting Permissions

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