Skip to content

Commit

Permalink
update ssh key note
Browse files Browse the repository at this point in the history
- example how to access to server after ssh key created
  • Loading branch information
adibnoh committed May 19, 2018
1 parent 206699a commit 580f085
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion SSH Key/Mac/cheat_sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,31 @@ Host work.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/work
# home server
Host home.example.com
HostName example.com
User root
PreferredAuthentications publickey
IdentityFile ~/.ssh/home
```

### Terminal Access

`ssh <username>@<alias_host>`

example:

`ssh [email protected]`

### Github / Bitbucket Access

* In any of your project edit their remote url, example:

`[email protected]:my-project/api.git`

use `work.github.com` alias instead of original url `github.com`
use `work.github.com` alias instead of original url `github.com`

## Reference

* [https://confluence.atlassian.com/bitbucket/set-up-additional-ssh-keys-271943168.html#SetupadditionalSSHkeys-ssh2](https://confluence.atlassian.com/bitbucket/set-up-additional-ssh-keys-271943168.html#SetupadditionalSSHkeys-ssh2)

0 comments on commit 580f085

Please sign in to comment.