ConfigureNoPasswordLoginAsRalphUser

Kevin Brightwell edited this page Aug 26, 2015 · 1 revision

First, you need to make a public / private key for the ralph user. From your machine

  ssh-keygen -t rsa

Save the file as ralph_id_rsa, for example:

  /Users/aforward/.ssh/ralph_id_rsa

The public key will look like

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuww/fGhWparkmCAbRk0NOLsQS0NXVGoU0pLB2QaCY+TZbUnN4OBc8Co7g0JXeHzc0LJGZTX5vZEUuo7kTrJneatqSMoIMo7Q1Rd8gKsLh/7G8Db0UVotukUDIuAhNnkyGC2znh5tiqcywE2BpdAwvlPXGfr7sHILTI04aH/H6hJ8DizpbyJo3Ghi2ZmdSp8l8z/qIagYCsL/6FzDVH4ujJA9GkeQ/e2ogw8HRryXIzxdE8xK5OLwQxGGLmdmNeCljyRyTMtJ16CTWFjlOSE43LwHEkqWid6BHBAL2XDfaIyoi7kFqZPZfieQ2wOt1HLIF6BoOob5yC10yjeY58ixnw== aforward@Gondor.local

Then copy the ralph_id_rsa.pub into the authorized_keys on the server

  ssh ralph@cruise.site.uottawa.ca
  vi ~/.ssh/authorized_keys  

Now you should be able to log in as ralph without providing a password.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.