Skip to content

Commit

Permalink
Merge pull request #2548 from amazeeio/justinlevi-patch-1
Browse files Browse the repository at this point in the history
Documentation: Handling Multiple SSH Keys
  • Loading branch information
Toby Bellwood authored Apr 9, 2021
2 parents 03ce35a + 0b51b71 commit fdb30f6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/using-lagoon-advanced/remote-shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,16 @@ ssh -p 32222 -t [email protected] service=nginx co

This will execute `whoami` within the `cli` container.

## Multiple SSH Keys

If you have multiple SSH keys, you can specify which key to use for a given domain by setting this in your `~/.ssh/config` file.

~/.ssh/.config
```
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/[YOUR-DEFAULT-PRIVATE-KEY]
Host ssh.lagoon.amazeeio.cloud
IdentityFile ~/.ssh/[YOUR-PRIVATE-KEY-FOR-USE-ON-LAGOON]
```

0 comments on commit fdb30f6

Please sign in to comment.