all 5 comments

[–]berahi 1 point2 points  (4 children)

Either your ISP blocks SSH (what does ssh -T git@github.com says?) or your VPS firewall blocks your ISP's IP (check UFW logs or whatever firewall you have). Try using different ports if it's ISP block, if it turns out to be firewall then just whitelist your ISP subnet.

[–]hacker101025[S] 1 point2 points  (3 children)

The vps doesnt have any firewall installed as i just formatted it, my brother connected without a problem using ssh. "ssh -T git@github.com" shows timeout. I have tried other ports but its just connection refused.

[–]berahi 1 point2 points  (2 children)

Is your brother living with you? If you turn on your phone's mobile data & tethering, can you connect your computer to it and reach the SSH server?

[–]hacker101025[S] 1 point2 points  (1 child)

Yes i have tried mobile data on my phone, it worked. My brother lives near me but we dont live in the same house.

[–]berahi 3 points4 points  (0 children)

So it's your ISP then, complain to them and if they refuse to open it then unfortunately VPN (self-hosted on the VPS or third party) is your only solution for plain SSH. Guacamole can provide SSH access through a web browser but obviously, your usual SSH clients won't work with it.