Monday, November 26, 2007

How to generate keys by ssh command

Finally get the clue with the help of Zeba's website.

1. On the machine you want to use to call another machine, say A ->B
We would like A to ssh B without inputing the password.

2. In A machine, type the command: ssh-keygen -t dsa -b 1024
no key phrases

3. Copy the key to machine B by: scp user@192.168.X.X:/home/user/.ssh (this might be changed according to different setting)

4. cat >> /path/.ssh/authorizedkeys

5. Now you can ssh B without password from A.

for details I need to read more on security authentication...

No comments: