How to Create SSH Certificate

104 4

    Generate an SSH Certificate Key

    • 1). Open your SSH terminal program on your local machine. You may need to install SSH software on your local machine if it not already present.

    • 2). Generate an SSH key pair by typing "ssh-keygen -t dsa" and pressing the "Return" key.

      Leave the default filename of "id_dsa."

    • 3). Enter a passphrase for the SSH key pair when prompted to do so.

    Upload the SSH Certificate

    • 1). Locate the SSH certificate files in the ".ssh" folder in your local machine's home directory. They should be called "id_dsa.pub" and "id_dsa."

    • 2). Transfer the "id_dsa.pub" file to the remote machine with the scp utility--for example: scp ~/.ssh/id_dsa.pub remotemachine.com:.ssh/authorized_keys2

      Replace "remotemachine.com" in the above command with the address of the remote computer on which you have an account. You will be asked for your SSH password.

    • 3). Log into the remote machine with an SSH connection--for example: ssh username@remotemachine.com

      It should allow you in without a password. Your connection is still secure, thanks to the SSH certificate.

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.