Howto Add SSH Key to Authorized Keys List and Enable Remote Access on Linux and Unix

December 30, 2011 | By Duchateaux.

How to Authorize SSH Access for Remote Client

This little Guide shows you Step-by-Step How to Authorize the SSH Remote Access to Server for a Remote Linux/Unix Client.

Practically you will Need to Add an Entry to the Authorized Keys List on the File on your Home .ssh Directory.

Howto Add SSH Key to list of Authorized Keys - Featured
  1. How to Easy Generate SSH Keys Pair:

    Generate SSH Keys Pair
  2. To Upload the Key to the Server you need the SSH Access Password.

    For Shared Hosting Account often that’s the Same as the cpanel one.

  3. Upload It by the rsync Command:

    rsync -av -e "ssh -p PORT-NUMBER" ~/.ssh/ USERNAME@SERVER-ADDRESS:~/

    You need to Substitute PORT-NUMBER, USERNAME and SERVER-ADDRESS with your Hosting Parameters.

  4. SSH Log-In into the Remote:


    Normaly now you will be Prompt for the Password to get Access.

  5. Copy the Key into the Authorized List:

    cat >> .ssh/authorized_keys
  6. Latest Check than you haven't any blank line inserted into the ssh Keys Stack with:

    cat .ssh/authorized_keys
  7. After is Time to Try your Newly Authorized SSH Access with:

    Possibly Close the SSH Session with:




    And like a Charm you should Get Direct Access into the Server.

QuickChic Theme • Powered by WordPress