Hoffman2:Password-less Logins: Difference between revisions
Jump to navigation
Jump to search
(Created page with "The steps below will show you how to login without typing your password every time! On your local computer: a@A:-> '''ssh-keygen -t rsa''' Generating public/private rsa key...") |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Hoffman2|Back to all things Hoffman2]] | |||
On your local computer | Log in to Hoffman2 without typing your password every time. | ||
a@A:-> '''ssh-keygen | : [https://www.hoffman2.idre.ucla.edu/access/passwordless_ssh/ Password-less ssh] | ||
<!--The steps below will show you how to login without typing your password every time! | |||
== On your local computer == | |||
a@A:-> '''ssh-keygen''' | |||
Generating public/private rsa key pair. | Generating public/private rsa key pair. | ||
Enter file in which to save the key (/Users/a/.ssh/id_rsa): '''[ENTER]''' | Enter file in which to save the key (/Users/a/.ssh/id_rsa): '''[ENTER]''' | ||
Line 17: | Line 23: | ||
user@hoffman2.idre.ucla.edu's password: '''[PASSWORD]''' | user@hoffman2.idre.ucla.edu's password: '''[PASSWORD]''' | ||
Finally append | 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.