- Suppose the domain name of your server is server, and your login name loginname.
- On the client, generate a public and private key.
ssh-keygen -C loginname@server -t dsa
When asked for a password, simply press return. The private key is stored in
~/.ssh/id_dsa
and the public key in
~/.ssh/id_dsa.pub - Copy the public file to the server with
scp ~/.ssh/id_dsa.pub loginname@server:~/ - Login on the server with
ssh loginname@server - Append the copied file to ~/.ssh/authorized_keys with
cat ~/id_dsa.pub >>~/.ssh/authorized_keys
2013/08/14
Secure SSH, CVS, SCP Without Password Prompt
▼ Click here to say thanks ▼
Subscribe to:
Post Comments
(
Atom
)
Thank you for the explanation! I looked for this information hours and I tried to do a lot of things but nothing worked. On your blog I can always find what I need. Thank you so much !
ReplyDelete