Hoffman2:Password-less Logins: Difference between revisions

From Center for Cognitive Neuroscience
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(6 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]


The steps below will show you how to login without typing your password every time!
<!--The steps below will show you how to login without typing your password every time!
 
== On your local computer ==


On your local computer:
  a@A:-> '''ssh-keygen'''
  a@A:-> '''ssh-keygen'''
  Generating public/private rsa key pair.
  Generating public/private rsa key pair.
Line 20: 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