top of page

HOW TO CHANGE SSH PORT AND ENHANCE SECURITY...


First check ssh configuratio file by sudo cat /etc/ssh/sshd_config

Then edit by vim or vi /etc/ssh/sshd_config

Edit the following lines

then u can change..LoginGraceTime 1m

PermitRootLogin no

###This Line add by Santanu

AllowUsers admin

MaxAuthTries 3Max

Sessions 6

finally allow ssh from firewall and as wall as SElinux

semanage port -a -t ssh_port_t -p tcp 9091

firewall-cmd –permanent –zone=public –add-port=9091/tcp


MY FEATURED POSTS

Check back soon
Once posts are published, you’ll see them here.

FOLLOW US

  • Facebook Long Shadow
  • Google+ Long Shadow
  • LinkedIn Long Shadow
  • Twitter Long Shadow

I’M ALWAYS HAPPY

TO GET TO KNOW MY READERS AND SHARE INSIGHTS AND IDEAS. 

 

DROP ME A LINE 

Success! Message received.

bottom of page