cannot change ssh default port
i was looking at changing my ssh default port to 443. whenever i edit the 'Port' line in '/etc/ssh/ssh_config' and i run 'service sshd restart', it does not change the port. i can still connect via port 22 and i cannot connect via port 443.
am i editing the incorrect ssh_config? :scratch: |
You should be editing sshd_config. And in case you didn't know, port 443 is usually used for secure http.
|
You could check if sshd is started as an xinetd service. If so, the port number might be setup /etc/xinet.d/ssh instead. Also try commenting out the old 443 entries in /etc/services and replace it with the new ones.
Also check "man sshd_config". The port entry in ssh_config is for the client. |
awesome. cgjones gets the prize on this one. it's sshd_config. i misread... http://www.redhatmagazine.com/2007/0...h-server-uses/ ...chaulk this one up to being to busy to slow down and look at what your doing.
and yes, i know 443 is for secure http. i've ran into some locations that block 22 out so i change my default port to one i know will be open. :) |
Quote:
|
yea and i actually decided i would not foward this port to the internet anyways. i know the debate is out on weather it's safe to just change the port and restrict the ssh login to a secure account only, or just not allow it. i think i'm going to go with a vpn solution that will allow me more than just ssh access to my server network.
|
All times are GMT -5. The time now is 01:25 AM. |