I need a user with more than one key-pair for SSH. Is that possible? Is that possible without having to specify which key to use on each command?
-
You can have multiple SSH keys (multiple identities). To use the at the command line add a
-ioption, e.g.ssh -i .ssh/id_dsa_host_1 host_1If you have a key for each server you can add the info in the .ssh/config file (see
man ssh_configfor details), e.g.Host host_1 IdentityFile ~/.ssh/id_dsa_host_1 Host host_2 IdentityFile ~/.ssh/id_dsa_host_2Warner : `ssh-agent` can also be used to add multiple keys.From Dan Andreatta
0 comments:
Post a Comment