SSH Port?

jwnetsource

Verified User
Joined
Nov 12, 2009
Messages
59
Location
Southeast Michigan
DA clean install on FreeBSD 7.2

My server has been suffering an unsuccessful attack on Port 21. I intended to edit the /etc/ssh/sshd_config file to change the default ssh port. The line

Code:
Port 21

is commented out.

During the install does DA configure the SSH port somewhere other than /etc/ssh/sshd_config?

Thanks
 
I meant Port 22.

None the less, the question remains the same; during the install does DA configure the SSH port somewhere other than /etc/ssh/sshd_config?
 
If you restart the ssh daemon after you change /etc/ssh/sshd_config, then it should use the new port. On our systems it does.

But though you say you commented out Port 22, you don't say what you added. If you just commented it out, it will still use it, because that's the default.

Jeff
 
Hi Jeff,

I thought port 22 was the default, because it was configured that way in sshd_config. When I found port 22 commented out I thought something was afoot.

I changed my port to something else, restarted ssh and all is well.

Sorry to be a pain.
 
Back
Top