Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh-add -t does not work #1510

Closed
dcow opened this issue Nov 26, 2019 · 1 comment
Closed

ssh-add -t does not work #1510

dcow opened this issue Nov 26, 2019 · 1 comment

Comments

@dcow
Copy link

dcow commented Nov 26, 2019

"OpenSSH for Windows" version
7.7.2.1

Client OperatingSystem
Win10 19030

What is failing
When I try to add an identity to the ssh agent with a bounded lifetime, the operation fails. I have enabled and started the ssh-agent service. Adding and removing identities without a lifetime works:

PS> ssh-add
Enter passphrase for <~>/.ssh/id_ed25519:
Identity added: <~>/.ssh/id_ed25519 (dcow@shire) 
PS> ssh-add -l
256 SHA256:+Lo4sy0njfQmmHLX7k0Ws6aUHnfdVquGvRk0zkEP3TY dcow@shire (ED25519)
PS> ssh-add -d
Identity removed: <~>/.ssh/id_ed25519 (dcow@shire) 

Expected output

PS> ssh-add -t30s <~>\.ssh\id_ed25519'
Enter passphrase for <~>/.ssh/id_ed25519:
Identity added: <~>/.ssh/id_ed25519 (dcow@shire)
Lifetime set to 30 seconds

Actual output

PS> ssh-add -t30s <~>\.ssh\id_ed25519'
Enter passphrase for <~>/.ssh/id_ed25519:
Could not add identity "<~>\.ssh\id_ed25519": communication with agent failed
@anthonyvdotbe
Copy link

@dcow this is a duplicate of #1056

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants