can't change ssh port number
can't change ssh port number
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?
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
What steps have you done so far?maha22 wrote: ↑Thu Feb 06, 2020 7:35 pmhi 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
In the SSH terminal
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
nano /etc/ssh/sshd_config
(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
Best to use: service sshd restart
As init.d is only for centos 6.
As init.d is only for centos 6.