Hoffman2:Password-less Logins: Difference between revisions

From Center for Cognitive Neuroscience
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:
The steps below will show you how to login without typing your password every time!
[[Hoffman2|Back to all things Hoffman2]]


On your local computer:
Log in to Hoffman2 without typing your password every time.
  a@A:-> '''ssh-keygen -t rsa'''
: [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 a's new public key to b@B:.ssh/authorized_keys and enter b's password one last time:
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 login to hoffman from local computer without a password!
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

Back to all things Hoffman2

Log in to Hoffman2 without typing your password every time.

Password-less ssh