Friday, April 04, 2014

how to set SSH welcome message in centos

While logging in from command line rather than viewing the default message you can set your own welcome message some people also use it for showing false warnings messages to implement pseudo security.

To change SSH welcome message follow the steps below.
  • SSH server as root user
  •  vi /etc/motd
  • Make changes in the welcome message as per your requirements and save it.
  •  cd /etc/ssh
  • vi sshd_config 
  • change line PrintLastLog to ” no ”  then save and exit.
  • service ssh restart or service sshd restart
Now start a fresh SSH session and the new message will appear.

No comments:

Post a Comment

Do Write about the Blog and Welcome to the world where open source is every thing :-)