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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment