How to Access Port 22 if ISP has Blocked Port 22

March 26, 2018 2.4k views
Initial Server Setup Configuration Management DigitalOcean Networking System Tools

My ISP has blocked Port 22 for All the Users and they won't Open it even if I Request.So, I want to know that How can I access port 22 from my Network.Vpn Doesn't work.

Give a Link to a Video or Tutorial
I will use Ubuntu(for VPN), Discourse and ServerPilot

1 Answer

One option would be configuring the SSH server to listen on port 443. Some proxies do not actually inspect the packets that are going through and just filter traffic based on the target port. Port 443 is used for HTTPS traffic, so such proxies will definitely allow it. If you are willing to sacrifice the possibility of hosting an HTTPS website on your Droplet, you can give that a shot. To do so:

  1. Log in to your Droplet using the Remote Console in the control panel
  2. Open /etc/ssh/sshd_config in a text editor
  3. Uncomment the line # Port 22 by deleting the # and replace 22 with 443.
  4. Save the file and restart OpenSSH: sudo systemctl restart ssh

That's not the best option but it's the quickest and easiest to set up. Another route would be setting up a VPN, but again, that also depends on how your proxy works. If it actually inspects packets and blocks VPNs, there's not much you could do:

The university I go to blocks OpenVPN, but not IKEv2 which Also uses. So, I'd recommend spinning up a new Droplet to experiment with different methods and figure out what works best for you.

Keep in mind that you can access your Droplet using the Remote Console in the control panel, but it is not meant to be a permanent way to log into your Droplet—it's more for emergency access in case you are locked out.

by Justin Ellingwood
Want to access the Internet safely and securely from your smartphone or laptop when connected to an untrusted network such as the WiFi of a hotel or coffee shop? A Virtual Private Network (VPN) allows you to traverse...
  • Thanks or Your Help:)

    I followed your tutorial and it worked,i used port 229 and everything was good.

    I Use Pritunl for VPN, But now i have delete the droplet as i can't bear the cost.

    I am finding VPN for my droplet which i can personaly use and sell to other(like from website) and earn some money.Can you suggest me some? I will make a website and sell the vpn to users from there.

Have another answer? Share your knowledge.