I've defined a custom port for SSH within /etc/ssh/ssh_config on my ubuntu-server installation and it is still accepting SSH on port 22 after rebooting the server.

Is there something else I need to do other than....

Host *

PermitRootLogin no

   Port 6685
   Protocol 2,1
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials no
link|improve this question

1  
As Zoredache said, that is the file you need to edit but dont forget to restart the ssh service aswell – Prix Aug 18 '10 at 1:01
Thought he had said he rebooted the server? – Bart Silverstrim Aug 18 '10 at 12:24
feedback

1 Answer

up vote 12 down vote accepted

The configuration you are looking for is /etc/ssh/sshd_config. The ssh_config file is for the ssh client.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.