Question

How to Access Port 22 if ISP has Blocked Port 22

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


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Kamal Nasser
DigitalOcean Employee
DigitalOcean Employee badge
March 26, 2018

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.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.