LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   cannot change ssh default port (https://www.linuxquestions.org/questions/fedora-35/cannot-change-ssh-default-port-547167/)

winkydo 04-18-2007 06:52 PM

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:

cgjones 04-18-2007 07:11 PM

You should be editing sshd_config. And in case you didn't know, port 443 is usually used for secure http.

jschiwal 04-18-2007 07:19 PM

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.

winkydo 04-19-2007 12:18 AM

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. :)

cgjones 04-19-2007 10:44 AM

Quote:

Originally Posted by winkydo
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. :)

Cool. I just wanted to avoid a possible problem down the road.

winkydo 04-22-2007 04:36 PM

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.