You are not logged in.

#1 2016-10-08 06:43:00

Stencon281
Member
Registered: 2016-09-21
Posts: 40

SSH config problems

After I added my ssh keys to ssh-agent I went into a local git folder, edited a file, then attempted to commit + push the changes to the remote repos. I then got errors from git that told me my github and bitbucket repos didn't exist, that I wasn't authorized, no route to 22 was found, and that the push failed. After reading up on some of the errors I added a few lines in my ~/.ssh/config file specifying host, host name, and port.

What really confuses me is that github started working after this change. However, for bitbucket nothing I did would allow me to push to the bitbucket repo. It wasn't until I got home that I was able to use my bitbucket repo again.

I've never had this happen before, I should note I was using wifi at a starbucks. I was thinking there could be some firewall rule that was stopping me from accessing bitbucket, but I've used wifi at other starbucks before and never encountered this problem.

~/.ssh/config

/etc/ssh/ssh_config

Any thoughts on what could've done this and how I could debug it if it happens again?

Offline

#2 2016-10-08 06:51:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: SSH config problems

ssh -vvv bitbucket

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-10-08 17:25:10

Stencon281
Member
Registered: 2016-09-21
Posts: 40

Re: SSH config problems

jasonwryan wrote:
ssh -vvv bitbucket

http://sprunge.us/CWSU

Yet the git commit push to both github and bitbucket work fine...

Offline

#4 2016-10-08 18:14:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: SSH config problems

You asked how to debug a failed attempt; that is what the verbose switches are for...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB