Hoffman2:Password-less Logins: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Hoffman2|Back to all things Hoffman2]] | [[Hoffman2|Back to all things Hoffman2]] | ||
Log in to Hoffman2 without typing your password every time. | |||
: [https://www.hoffman2.idre.ucla.edu/access/passwordless_ssh/ Password-less ssh] | |||
== On your local computer | <!--The steps below will show you how to login without typing your password every time! | ||
== On your local computer == | |||
a@A:-> '''ssh-keygen''' | a@A:-> '''ssh-keygen''' | ||
Line 20: | Line 23: | ||
user@hoffman2.idre.ucla.edu's password: '''[PASSWORD]''' | user@hoffman2.idre.ucla.edu's password: '''[PASSWORD]''' | ||
Finally append your new public key to user@hoffman2.idre.ucla.edu:.ssh/authorized_keys and enter | Finally append your new public key to user@hoffman2.idre.ucla.edu:.ssh/authorized_keys and enter your Hoffman2 password one last time: | ||
a@A:~> cat .ssh/id_rsa.pub | ssh user@hoffman2.idre.ucla.edu 'cat >> .ssh/authorized_keys' | a@A:~> cat .ssh/id_rsa.pub | ssh user@hoffman2.idre.ucla.edu 'cat >> .ssh/authorized_keys' | ||
user@hoffman2.idre.ucla.edu's password: '''[PASSWORD]''' | user@hoffman2.idre.ucla.edu's password: '''[PASSWORD]''' | ||
Now you can | Now you can log in to Hoffman2 from local computer without a password! | ||
a@A:~> '''ssh user@hoffman2.idre.ucla.edu''' | a@A:~> '''ssh user@hoffman2.idre.ucla.edu'''--> |
Latest revision as of 15:56, 8 July 2017
Log in to Hoffman2 without typing your password every time.