Page 1 of 1

can't change ssh port number

Posted: Thu Feb 06, 2020 7:35 pm
by maha22
hi greetings everyone
i'm new to this panel and i like how it works so far, i have few issues and i hope someone can help me out..
my first issue is i can't change ssh port number
i did search for topic here and i followed this topic very carefully found here viewtopic.php?t=6235
but still not able to change it
any idea guys?

Re: can't change ssh port number

Posted: Fri Feb 07, 2020 2:42 am
by exclu254
maha22 wrote:
Thu Feb 06, 2020 7:35 pm
hi greetings everyone
i'm new to this panel and i like how it works so far, i have few issues and i hope someone can help me out..
my first issue is i can't change ssh port number
i did search for topic here and i followed this topic very carefully found here viewtopic.php?t=6235
but still not able to change it
any idea guys?
What steps have you done so far?

Re: can't change ssh port number

Posted: Fri Feb 21, 2020 2:30 am
by 3vw
In the SSH terminal

Code: Select all

nano /etc/ssh/sshd_config
change where you put #Port 22 by Port xxxx
(xxx = put the new port)
(without #)

To save the change: Ctrl + o + enter
("o" vowel, not number)
To close and exit nano: Ctrl + x + enter

Then

Code: Select all

/etc/init.d/ssh restart

Re: can't change ssh port number

Posted: Tue Feb 25, 2020 1:23 pm
by allenb
Best to use: service sshd restart

As init.d is only for centos 6.