how to change the linux login banner

How to change the ssh banner for the linux system.

Adding customized  Linux login banner on the Linux system adds protection on the legal front & also it acts as the warning information to the user. This banner is shown to the user before the user logged into the system/OS. Since by default system does not show any kind of messages to user we need to change this as per the legal policy of the organization.

So here the way we can change it.

1. Add the following line of directive in the file sshd config file “/etc/sshd/sshd_config”

banner /etc/issue.net

The above line defines the customized pre-login banner file “/etc/issue.net”.

2. Now the next step is create the customized banner in the “/etc/issue.net” file as per your organization policy. As an example I have taken below one:

[[email protected] etc]# cat /etc/issue.net ################################################################ # # # Hello , This is UXtechno's Property.

read more

How to secure ftp port.

secure ftp port:

Making the secure ftp port is more important as you already know that vsftpd use default port 21 for making the connection with the server. So anybody (hacker) can try with the same port for connecting to server. But what if he/she doesn’t know the port for vsftpd for connection, yes off course then he/she has to do lot off effort for identifying the port number for connection. Yes there is way to make secure ftp port.

So here we go for practical way to secure ftp port from hacker.

Step 1: Edit the /etc/vsftpd/ vsftpd.conf file using vi editor to change the  secure ftp port using “listen_port” entry.

vi /etc/vsftpd/vsftpd.conf
 Add/modify below entry:
 listen_port=201

Step 2. Once you changed the secure ftp port restart the service.

[[email protected] vsftpd]# service vsftpd restart Shutting down vsftpd:                                      [  OK  ] Starting vsftpd for

read more