SSH is a tool that is very popular among network administrators to perform remote computer to run (actually created admin seee cuman ga) of this tool by default goes through port 22 with this tool administrator can take care of the server machine / routernya with without having to come physically ( visit) engine (that can be remotely so ...).
But unfortunately for the Linux operating system, SSH by default allow anyone to access using root privileges directly. This is of course very dangerous if the network is managed by more than one administrator for the system log diremote machine we do not know who is responsible if a problem occurs when the user caused by the illegal action (as we understand together that the majority of network security threats come of the network itself). For this reason it is advisable to login via SSH normal user, and if required can only login via the Super User (su -) on a machine that diremote. How To disable root login is as follows
A. login as root / super user
2. open the file sshd_config with your favorite editor (eg using vi) in the / etc / ssh / sshd_config -> # vi / etc / ssh / sshd_config
3. 2.1 find replace line # Protocol with Protocol 2 (line 14) (sometimes written protocol has been directly 2)
4. then find # PermitRootLogin yes to PermitRootLogin no change (line 37)
5. save by using the command: wq (to the VI editor)
6. restart the SSH service with the command service sshd restart
Hope it helps good luck
But unfortunately for the Linux operating system, SSH by default allow anyone to access using root privileges directly. This is of course very dangerous if the network is managed by more than one administrator for the system log diremote machine we do not know who is responsible if a problem occurs when the user caused by the illegal action (as we understand together that the majority of network security threats come of the network itself). For this reason it is advisable to login via SSH normal user, and if required can only login via the Super User (su -) on a machine that diremote. How To disable root login is as follows
A. login as root / super user
2. open the file sshd_config with your favorite editor (eg using vi) in the / etc / ssh / sshd_config -> # vi / etc / ssh / sshd_config
3. 2.1 find replace line # Protocol with Protocol 2 (line 14) (sometimes written protocol has been directly 2)
4. then find # PermitRootLogin yes to PermitRootLogin no change (line 37)
5. save by using the command: wq (to the VI editor)
6. restart the SSH service with the command service sshd restart
Hope it helps good luck
Labels:
Network
Thanks for reading disable root login to SSH. Please share...!
0 Komentar untuk "disable root login to SSH"