Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Getting easy ssh
- Take the below configuration, edit in your username for both entries, and copy it into `~/.ssh/config` on your local machine.
- When you want to access sibu, try:
- ```bash
- ssh sibu
- ```
- And when you want to access sand, try:
- ```bash
- ssh sand
- ```
- That's you! SSHing into sand no longer requires hacking around with sibu manually. Easy.
- ## Making it easier
- It can get easier yet: you can get slippery delicious passwordless access, too.
- ### Make sure you have ssh keys
- Enter `cat ~/.ssh/id_rsa.pub` — if nothing gets printed, run `ssh_keygen`, and hit enter at any prompts.
- ### Copy the key over
- Run `cat ~/.ssh/id_rsa.pub` and copy it.
- Run `ssh sibu` and then `nano ~/.ssh/authorized_keys` (or whatever your editor of choice is). Paste onto a new line. Save.
- You should now have passwordless access to both sibu and sand!
Add Comment
Please, Sign In to add comment