You can instruct ssh to try multiple keys in succession when connecting. Here’s how:
create a config file in ssh folder:
1 2 3 4 |
$ cat ~/.ssh/config IdentityFile ~/.ssh/id_rsa IdentityFile ~/.ssh/id_rsa_old IdentityFile ~/.ssh/id_ed25519 |
If an error occurs like “Bad owner or permission problem”, do this:
1 |
chmod 600 ~/.ssh/config |
Topic Reference(Sources):
https://stackoverflow.com/questions/2419566/best-way-to-use-multiple-ssh-private-keys-on-one-clienthttps://serverfault.com/questions/253313/ssh-hostname-returns-bad-owner-or-permissions-on-ssh-config
Be First to Comment