Displaying a message when connecting via SSH

This is how you can display a message or warning in Linux when connecting via SSH.

You start off by editing the message you want to display,

Then specify the location in the ssh server config

 

SSH asking if you trust the host your connecting to.

When executing a SSH connection on the network to perform a task on your system you will be requested to answer “YES” to sharing a new certificate with that host, this can be painful when doing it for the first time. Especially if your connecting to numerous system  with a for statement. So you can ignore the error by setting StrictHostKeyChecking to “no”, ie

 

 

Adding Splunk to chkconfig for Centos and RHEL

Adding the splunk client service to chkconfig