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
- Former Member
I'm seeing this too when attempting to access Azure DevOps (ssh.dev.azure.com).
With a very stripped back SSH config for debugging, I cannot seem to trace the cause. Even with a brand new key, same error.
debug1: Host 'ssh.dev.azure.com' is known and matches the RSA host key.
debug1: Found key in /Users/jamie/.ssh/known_hosts:4
debug1: rekey out after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 4294967296 blocks
debug1: Will attempt key: /Users/jamie/.ssh/azure_devops.pub RSA SHA256:explicit agent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: password,publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/jamie/.ssh/azure_devops.pub RSA SHA256:explicit agent
debug1: Server accepts key: /Users/jamie/.ssh/azure_devops.pub RSA SHA256:explicit agent
sign_and_send_pubkey: signing failed for RSA "/Users/jamie/.ssh/azure_devops.pub" from agent: agent refused operationAlso noticed that keys not secured in the "Private" vault are not provided by the agent, is that a bug or by design?