A
A
Alexey2018-07-20 13:54:36
SSH
Alexey, 2018-07-20 13:54:36

How to ssh into a server without a password using a key?

There is a remote server that I access via ssh using a key.
Now I want to keep this key on a flash drive so that I can connect from any other machine. Usually, I used the ssh [email protected] -pNNN
command to connect to a remote server . But when I'm on another computer, how can I specify the path to the key file on the flash drive when connecting? well, like ssh [email protected] -pNNN /path/to/flash/my.ppk

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2018-07-20
@AlexMaxTM

man ssh
ssh ... -i /path/to/private_key

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question