3

macOS Sierra 10.12.5. SSH keys are set up correctly. ssh -T -vvv [email protected] shows that I cannot connect to GitHub via SSH at all:

OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolving "github.com" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to github.com [192.30.253.112] port 22.
debug1: connect to address 192.30.253.112 port 22: Operation timed out
debug1: Connecting to github.com [192.30.253.113] port 22.
debug1: connect to address 192.30.253.113 port 22: Operation timed out
ssh: connect to host github.com port 22: Operation timed out

I have tried a couple of suggestions for similar problems (e.g. here) but none worked for me. I suspect it's a network issue with my new wireless router. Anyone has seen similar problems before?

4
  • I see the DNS response but then with each attempt to connect it is timing out. You don't have a single successful port 22 connection, so I believe you are correct about the networking. Does this happen with other ssh connections, like to your website service provider?
    – SDsolar
    May 21, 2017 at 4:29
  • I can SSH into my company machines, but that's through a VPN connection.
    – Chris
    May 21, 2017 at 5:32
  • OK. ssh -T -p 443 [email protected] was successful, so it looks like port 22 is blocked. But I don't know why? I have turned off the firewall in the admin page. P.S. ISP is RCN, modem/router is Ubee UBC1301.
    – Chris
    May 21, 2017 at 13:44
  • That's interesting. Sounds like a firewall issue at first, but if you unblocked the port there then we're with a head-scratcher. Hmm.
    – SDsolar
    May 21, 2017 at 17:49

1 Answer 1

3

I don't know if you solved this, but I am convinced there is buggy firmware in the Ubee UBC1301 on RCN's 1 Gig service which for whatever reason is blocking outbound port 22. I've made a post about it here (I noticed your post)

https://www.dslreports.com/forum/r31446148-Connectivity-SSH-Issues-Connection-Timeouts-with-RCN-1-Gigabit

There are several possible solutions that you may want to try if you are still having this issue.

  1. Put the Ubee into Bridge Mode, which should let it pass through all of its data, you'll need your own router, since it disables the routing functions of it. Ensure you hook up to Port 1. (I personally had issues with this, since it never resolved an IP)
  2. Change the Firewall settings on the modem. Lowering or turning the Firewall on the Ubee. (I never got this to work)
  3. See if you can request a equipment swap to get a modem only without the gateway functions, or downgrade service.

You could also just continue using the VPN, but I would think you lose the benefits of the speeds of having 1 gig.

I ended up downgrading service, and getting back an older modem, which worked perfectly, and was able to SSH normally.

2
  • Thanks for the response @kev5873. I ended up using port 443 for all my outbound SSH connections. I tried 2 and it didn't solve the problem.
    – Chris
    Jun 8, 2017 at 21:29
  • 2
    Also experienced this issue, also with an Ubee UBC1301 (UBC1301AA00), hardware version 3.37.2 software version 12.2.3101.20. The key setting turned out to be LAN>DHCPv4>LAN firewall; turning that off fixed it. (Even though I was connected via wifi.)
    – jimrandomh
    Sep 8, 2017 at 3:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .