mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 23:28:02 +00:00
Add SSH With A Specific Key as a unix til.
This commit is contained in:
9
unix/ssh-with-a-specific-key.md
Normal file
9
unix/ssh-with-a-specific-key.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# SSH With A Specific Key
|
||||
|
||||
When you SSH into another machine using public key authentication, the
|
||||
key pair from either `~/.ssh/id_dsa`, `~/.ssh/id_ecdsa`, or `~/.ssh/id_rsa`
|
||||
is used by default. This is generally what you want. But what if the target
|
||||
server is expecting to identify you with a different SSH key pair?
|
||||
|
||||
The `-i` option can be used with `ssh` to specify a different _identity
|
||||
file_ when the default isn't what you want.
|
||||
Reference in New Issue
Block a user