Post Reply 
Use SFTP or SSH without port 22 open?
06-07-2011, 10:20 PM
Post: #1
Use SFTP or SSH without port 22 open?
At my school, we have both ports 21 and 22 blocked. Is there any way I can still use SFTP and/or SSH without those ports?

User Tools
Quote this message in a reply


06-08-2011, 12:28 AM
Post: #2
RE: Use SFTP or SSH without port 22 open?
(06-07-2011 10:20 PM)supertanno Wrote:  At my school, we have both ports 21 and 22 blocked. Is there any way I can still use SFTP and/or SSH without those ports?

If you can find a way to get the services you want on port 443 you can almost always get access to it. This is because 443 is used for https:// and is end-to-end encrypted so proxies more-or-less "have to" let it pass.

-?
User Tools
Quote this message in a reply
06-08-2011, 01:55 AM
Post: #3
RE: Use SFTP or SSH without port 22 open?
Well, I found this: http://blog.bitbucket.org/2010/12/17/por...o-problem/

But I have no idea how to use it, so... Confused.

User Tools
Quote this message in a reply
06-08-2011, 03:38 AM
Post: #4
RE: Use SFTP or SSH without port 22 open?
You can change it to any port you want. Edit /etc/ssh/sshd_config to change it.
User Tools
Quote this message in a reply
06-08-2011, 04:41 AM (This post was last modified: 06-08-2011 04:42 AM by supertanno.)
Post: #5
RE: Use SFTP or SSH without port 22 open?
So if I'd set the port to, let's say, 443, would I be able to access it anywhere? Also, what part should I have to change?

User Tools
Quote this message in a reply
06-08-2011, 06:59 AM
Post: #6
RE: Use SFTP or SSH without port 22 open?
Change this line:
Port 22
and replace it with
Port 443

Finito.

[Image: logo.jpeg]
User Tools
Quote this message in a reply
06-08-2011, 11:26 AM
Post: #7
RE: Use SFTP or SSH without port 22 open?
(06-08-2011 04:41 AM)supertanno Wrote:  So if I'd set the port to, let's say, 443, would I be able to access it anywhere? Also, what part should I have to change?

If wherever you are accessing it from allows ssl sites then yes. If you want to be able to access from virtually everywhere try port 80, but you will not be able to host a web server if you do. Port 53 may be a good choice as well since that is used for DNS servers.
User Tools
Quote this message in a reply
06-08-2011, 11:40 AM
Post: #8
RE: Use SFTP or SSH without port 22 open?
i change it to 65000

post with Fedora 18 since 2013-02-06
SMS me +1 936-337-4971
User Tools
Quote this message in a reply
06-08-2011, 09:45 PM
Post: #9
RE: Use SFTP or SSH without port 22 open?
root@host:443

"I like to put random quotes, to make myself look clever."
- WiseMannnn
User Tools
Quote this message in a reply
Post Reply 


Forum Jump:



User(s) browsing this thread:
1 Guest(s)