Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Have to eval `ssh-agent` everytime I log in to remote desktop

ivanaescobar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 27, 2019

I have a repository that I work on with a team. I have set up an SSH key onto my account and it successfully worked the first time I worked through the steps provided by Bitbucket. 

 

The next day, I logged back in to keep working on the repo. When I went to push, it gave me the following error:

fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

 

I went back and followed the steps, checked that my config had the ssh address correct, and wasn't able to establish the correct access rights. I ended up running the ssh-agent and ssh-adding the key again. This, for whatever reason seemed to work. Does anyone have a suggestion on what could be the problem?

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 28, 2019

Hi Ivana, welcome to the Community!

Was there any SSH key in the agent when you run ssh-add -L?

If not, that means your OS is not saving them. There was a known issue in Mac some time ago, are you using Mac? You'll need to re-add your keys using ssh-add <path_to_key> as you did already. 

If your SSH key was already there but you're still having issues, let us know so we can help you investigate this further. 

Best regards,

Ana

ivanaescobar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 29, 2019

I am working on a Linux machine. Sorry, that's a big detail to leave out!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events