How to check whether a hostname is present in /root/.ssh/known_hosts file...

To check whether a particular hostname or servername is present in the known_hosts file, use the following command.

#ssh-keygen -H -F hostname

thats it.

Comments

Popular posts from this blog

CDbConnection failed to open the DB connection mysql 8

/bin/sh^M: bad interpreter: No such file or directory Linux

Send mail from Oracle Solaris OS with attached files