Redirecting SSH port

RTKS

Verified User
Joined
Nov 25, 2003
Messages
47
I'm using DA on a dedicated box. I have SSH setup to accept requests on one IP address that doesn't have any websites hosted on it.

I also have KISS firewall which allows incoming connections on port 22 for that IP.

I've run into some networks that don't allow an outbound connection on port 22.

What I'd like to do is have port 80 on this particular IP become the SSH port. Is this possible to do without breaking port 80 on the other IPs?

I imagine I'll need to edit an SSH config file, KISS and probably some Apache config file but I'm not sure where to begin.

Any help is appreciated.
 
As long as apache isn't using port 80 on that IP address you can simply edit the sshd configuration and change it to port 80 I would think.
But remember, by default sshd binds to port 22 on all IP addresses unless otherwise told.
Not forgetting to update your firewall to the change.
 
So I guess my next question is...how can I get Apache to stop listening on port 80?

I editted the httpd.conf file in /etc/httpd/conf and restarted apache but it seems to still be listening.

Thanks again for the help.
 
Back
Top