-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- example how to access to server after ssh key created
- Loading branch information
Showing
1 changed file
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) |