Saturday, January 16, 2010

SSL using RSA key

http://josephj.com/article/understand-ssh-key/

Keep input the password may have system insecure. Using the key authentication instead.

$ ssh-keygen -t rsa ~/.ssh/testkey

Give a passphrase for security reason.
You will get a public key in ~/.ssh/testkey.pub. Put it into server side (~/.ssh/).

You can further use ssh-agent to avoid keep input passphrase.
$ eval 'ssh-agent' (execute the output of ssh-agent)
$ ssh-add ~/.ssh/testkey


And you can further use a login script(bash_profile) to do all these when login.

No comments:

Related Posts Plugin for WordPress, Blogger...