hi
can i change SSH port via WHM or else any easy steps for it
thanks in advance
nilesh
hi
can i change SSH port via WHM or else any easy steps for it
thanks in advance
nilesh
You can change the ssh port in the mail configuration file.
vi /etc/ssh/sshd_config
Change
#Port 22
to
Port * (any port)
Also make sure to open your firewall.
I'd open up the port in the firewall first (so as not to forget). (restart the firewall after the change)
Then specify the port (as the previous instructions make it look like you're trying to run ssh on every port)
Then you'll have to restart the ssh service after making the change.
hi
thanks for the updates
i know the SSH way & vi is very hardly editor
you can choose friendly editor like
nano /etc/ssh/sshd_config
then restart sshd
service sshd restart
Anyways thanks for the updates
Regards,
n
before changing port for SSH need to be sure than no other application/service use it.
You can check what ports are using now, and choose different, but it will be nice surprise if you will setup some new soft and after reboot your will be without SSH due ports conflict.
So check new port for using by other services (and not installed too), see list of registered tcp ports before, and choose unused in list.
Thanks guy's
Also make sure your firewall is update accordingly, otherwise you will be locked out.
Pico is the easiest editor to use.
Thats what they start most college students with. VI is advanced. More advance and unfriendly than it needs to be.
pico /etc/ssh/sshd_config