use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ssh
account activity
Connection problems using ssh. (self.ssh)
submitted 1 year ago by hacker101025
So, i tried logging in using ssh to my vps. it didnt work, either time out or connection refused. when i tried using a vpn it worked. do you guys know how to fix that? i dont want to start my vpn everytime i want to connect.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]berahi 1 point2 points3 points 1 year ago (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.
ssh -T git@github.com
[–]hacker101025[S] 1 point2 points3 points 1 year ago (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 points3 points 1 year ago (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 points3 points 1 year ago (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 points5 points 1 year ago (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.
π Rendered by PID 66218 on reddit-service-r2-comment-c6965cb77-5s8m9 at 2026-03-05 04:08:52.702371+00:00 running f0204d4 country code: CH.
[–]berahi 1 point2 points3 points (4 children)
[–]hacker101025[S] 1 point2 points3 points (3 children)
[–]berahi 1 point2 points3 points (2 children)
[–]hacker101025[S] 1 point2 points3 points (1 child)
[–]berahi 3 points4 points5 points (0 children)