Guest User

Untitled

a guest
Nov 22nd, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. ## Getting easy ssh
  2.  
  3. Take the below configuration, edit in your username for both entries, and copy it into `~/.ssh/config` on your local machine.
  4.  
  5. When you want to access sibu, try:
  6.  
  7. ```bash
  8. ssh sibu
  9. ```
  10.  
  11. And when you want to access sand, try:
  12.  
  13. ```bash
  14. ssh sand
  15. ```
  16.  
  17. That's you! SSHing into sand no longer requires hacking around with sibu manually. Easy.
  18.  
  19.  
  20.  
  21. ## Making it easier
  22.  
  23. It can get easier yet: you can get slippery delicious passwordless access, too.
  24.  
  25. ### Make sure you have ssh keys
  26.  
  27. Enter `cat ~/.ssh/id_rsa.pub` — if nothing gets printed, run `ssh_keygen`, and hit enter at any prompts.
  28.  
  29. ### Copy the key over
  30.  
  31. Run `cat ~/.ssh/id_rsa.pub` and copy it.
  32.  
  33. Run `ssh sibu` and then `nano ~/.ssh/authorized_keys` (or whatever your editor of choice is). Paste onto a new line. Save.
  34.  
  35. You should now have passwordless access to both sibu and sand!
Add Comment
Please, Sign In to add comment