gpg-agent enforce key order with multiple ssh keys
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have two SSH keys (one GPG key with the authentication capability on a smartcard and one standard ssh key). When I try to to connect to a server that accepts both keys, gpg-agent wants to use the standard SSH key first, and only if that fails tries to use the key from the smartcard. I would however prefer to use the smartcard first if it is available.
Is there a way I can enforce the order in which gpg-agent tries to use my keys?
Note that this question was asked before 6 years ago here, though with no answer. I think after 6 years it's appropriate to open another question.
linux ssh gpg ssh-agent gpg-agent
add a comment |Â
up vote
0
down vote
favorite
I have two SSH keys (one GPG key with the authentication capability on a smartcard and one standard ssh key). When I try to to connect to a server that accepts both keys, gpg-agent wants to use the standard SSH key first, and only if that fails tries to use the key from the smartcard. I would however prefer to use the smartcard first if it is available.
Is there a way I can enforce the order in which gpg-agent tries to use my keys?
Note that this question was asked before 6 years ago here, though with no answer. I think after 6 years it's appropriate to open another question.
linux ssh gpg ssh-agent gpg-agent
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have two SSH keys (one GPG key with the authentication capability on a smartcard and one standard ssh key). When I try to to connect to a server that accepts both keys, gpg-agent wants to use the standard SSH key first, and only if that fails tries to use the key from the smartcard. I would however prefer to use the smartcard first if it is available.
Is there a way I can enforce the order in which gpg-agent tries to use my keys?
Note that this question was asked before 6 years ago here, though with no answer. I think after 6 years it's appropriate to open another question.
linux ssh gpg ssh-agent gpg-agent
I have two SSH keys (one GPG key with the authentication capability on a smartcard and one standard ssh key). When I try to to connect to a server that accepts both keys, gpg-agent wants to use the standard SSH key first, and only if that fails tries to use the key from the smartcard. I would however prefer to use the smartcard first if it is available.
Is there a way I can enforce the order in which gpg-agent tries to use my keys?
Note that this question was asked before 6 years ago here, though with no answer. I think after 6 years it's appropriate to open another question.
linux ssh gpg ssh-agent gpg-agent
linux ssh gpg ssh-agent gpg-agent
asked 9 mins ago
ionree
63
63
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478525%2fgpg-agent-enforce-key-order-with-multiple-ssh-keys%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password