SSH Keying Through Terminal (Mac OS X / Linux)

For Mac OS X and Linux

  1. In Terminal, type
    ssh-keygen -t dsa
  2. Accept the defaults when it queries you.
  3. Enter the following command, replacing 'username' with your username, and 'ip.add.ress.here' with your server's IP address.
    rsync -av -e "ssh" ~/.ssh/id_dsa.pub
    [email protected]:.ssh/authorized_keys
  4. Enter your root password.
  5. Now you will need to SSH into your server to confirm the key was uploaded.
    ssh [email protected]
  6. Enter the following commands:
    chmod 700 ~/.ssh
    chmod 600 ~/.ssh/authorized_keys
    chown username. ~/.ssh/authorized_keys



  • 279 Users Found This Useful
Was this answer helpful?

Related Articles

Is it a problem if I'm not in the US?

Not at all! In fact, we already have customers in countries all over the world.

I uploaded my page but it's not working!

Make sure that you are uploading to the public_html or www folder.  Only the files placed...

What is an error 404 page?

Error 404 indicates that you are requesting a file or a directory that does not exist on the...

Can I run scripts like Wordpress, Joomla, or phpBB on my site?

Absolutely! We make it extremely easy to install over 250 different scripts via the Softaculous...

Can I upgrade my plan or features later?

Upgrades/Addons are available to purchase at any time through your Client Area dashboard. Once...