Report this

What is the reason for this report?

SSH: Could not open a connection to your authentication agent

Posted on August 7, 2016

Hello

I accessed my server with ssh one time on from Ubuntu16.04

But when tried to connect next time I goy this error “Could not open a connection to your authentication agent” after executing $ eval ssh-agent -s $ ssh-add <path_to_private_key>

So I cant connect with ssh, and I don’t have login or password. How can I get at least a login and password to access the server?

Please, help :) I am new to Ubuntu



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

i have the same problem in the gitlab about the jobs can someone help me please!

Instead of eval ssh-agent -s you may need to use:

exec ssh-agent bash

How this step is performed will vary depending on the OS you are on. This page has some other options and more information.

I am having the same problem. I have tried exec ssh-agent -s. It does not work. I am using Putty on a Windows machine.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.