Knowledgebase: Site Functions
SSH Into Your Server Without a Password
Posted by Cirtex John on 16 May 2008 07:10 PM

You need to generate SSH Key ( the private key )on your Linux local computer and then update remote Linux computer or server with the authorized_keys
(the public key).

1. Check if .ssh folder already exist under your home directory
(/home/user-name/.shh ).
If not create a folder .ssh

# mkdir .ssh

2. Generate or create SSH key run ssh-keygen command.

# ssh-keygen -t rsa

Press enter for all the below options to save the default settings:

-> Enter file in which to save the key (/Users/exampleuser/.ssh/id_rsa)

-> Enter passphrase (empty for no passphrase)

-> Enter same passphrase again

Now you have created the key pair.You can find all the newly generated files in your .ssh folder.

# ls

id_rsa known_hosts

you need to copy the *.pub file to your remote computer or server. Copy the file to your web server and save it as authorized_keys under


Restart sshd.


(733 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
Help Desk Software by Kayako fusion