sshd running on multiple ports and other things about ssh and nginx

There are some very simple tweeks to make ssh appear on many ports.

Method one, brute force the sshd to appear on more than one port,

Port 22
Port 443

restart sshd.

Connect to it using ssh -p 443 username@server.goes.here

Remove protocols you don’t need. Pick something strong and stick with it.

As protocols become weaker because of stronger computational advances leaving weak protocols in place lowers the attack boundary.

While that doesn’t guarantee you get around a firewall or filter it might get you to where you need to get to.

Need to run SSH and SSL on the same computer, NGINX is the way forward, nicely documented here:

https://superuser.com/questions/1135208/can-nginx-serve-ssh-and-https-at-the-same-time-on-the-same-port

NGINX as a proxy is a great way to reduce web services. Some time ago I used it to protect a badly configured web server from exposing bad protocols like sslv3.0 and rc4 when both of those were crazy to run.

This was faster than having someone tidy up the actual server.

Author: ompaul

I'm happy enough to write this stuff.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.