Skip to content

ssh-add -t does not work #1510

Closed
Closed

Description

@dcow

"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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions