Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
4 years agoSSH - 'Agent Refused Operation'
I was able to enable the ssh agent in the 1 password app.
I now have a problem with accessing an EC2 instance using a private key stored in my private vault.
Steps:
- Update ~/.ssh/config with a host i.e.
Host random-host
HostName random-host.com
User ec2-user
IdentityAgent "~/Library/Group Containers/2BUA8GG42C.com.1password/t/agent.sock"
- Try to ssh to random-host
1password app prompts to 'Allow Access'
- This results in:
sign_and_send_pubkey: signing failed for RSA "random-host" from agent: agent refused operation
ec2-user@random-host.com: Permission denied (publickey)
- When I list all of the keys available to the agent:
ssh-add -l
The agent has no identities.
Can you help? Not sure which steps I have missed?
Also, I have tried to contact support via email and the response is poor at best. The one response I did get had a link to a support ticket. When I try to view it I'm prompted for my 1pwd credentials. Try to login and it fails. Not sure if I need another 1pwd account to access your support platform? Frustrating.
Thanks, Matt
1Password Version: 8.6.0 BETA
Extension Version: Not Provided
OS Version: macOS 12.0.1
41 Replies
- floris_1P
1Password Team
@regis13 I can't make any promises on timelines, but for this feature we're looking more at a range of weeks than of months.
- Former Member
floris_1P Could you advise please, if there is at least an approximate ETA set for ssh-rsa keysig algorithm support?
As I have to manage a bunch of legacy servers, the lack of this algo is really a showstopper for using this great 1Passowrd's feature. - Former Member
Waiting for
ssh-rsa
support to go full-in with 1password SSH keys! - billwuNew Contributor
I agree with dacodev. Please add a disclaimer. I'm scratching my hair off this morning until I found this post.
- Former Member
Can a disclaimer/troubleshooting info or section be added to the SSH Agent page? https://developer.1password.com/docs/ssh/agent/
I spent a few hours trying to figure out why I wasn't able to auth to a host using an RSA key. It's not explicitly stated that the agent wont work with RSA keys, and on the key management page, RSA is shown as a supported key type for import/storage, which sort of implies that you can use RSA keys with the agent, since they can be stored by 1Pass properly
- XIIISuper Contributor
we have plans to also support ssh-rsa in the near future
Nice! Then I can start using the 1Password SSH agent for all my keys (currently can't for 1 Azure DevOps key at work).
- floris_1P
1Password Team
Yes, for that exact reason we have plans to also support
ssh-rsa
in the near future. - Former Member
OK I tested out with some relatively new Amazon Linux EC2's and it works well.
floris_1P are you likely to include supporting old ciphers in the 1password SSH agent? To update SSH on all of our older/legacy instances would be a considerable amount of work. Long term we will be of course sunsetting/upgrading/replacing instances for security purposes but short term we can't commit to using the 1password agent without 'old' cipher support.
- Former Member
I see the following error:
ERROR 2022-03-21T16:51:32.966 tokio-runtime-worker(ThreadId(3)) [1P:/Users/builder/builds/BhfSvM9x/0/dev/core/core/ssh/op-ssh-agent/src/lib.rs:377] Error handling sign request: Key(signing with ssh-rsa is unsupported; SHA-1 may be insecure)
To be fair I tested with a legacy EC2 instance so I'll try out a few more recent EC2's.
- floris_1P
1Password Team
Do you see anything appear in the logs when you invoke the SSH command? On macOS:
~/Library/Group Containers/2BUA8C4S2C.com.1password/Library/Application Support/1Password/Data/logs/1Password_rCURRENT.log
It could be that the EC2 instance only supports SHA1 signatures for RSA keys. This is something that the SSH agent doesn't support at the moment. If that's the case, you can consider switching to Ed25519 keys, or upgrading OpenSSH on your server so that it supports more modern algorithms.
For Azure DevOps, that's not an option unfortunately. So be on the lookout for updates! (Either from our side or from Azure's side)
@jamie_shaw About the Private vault requirement, see this thread.