On 31 July 2014 06:27, Kris Springer <user-c2caa0a7a8d5@xymon.invalid> wrote:
I can enter ' *ssh -i ~/.ssh/xymon-rclient root at freenas.*mydomainname*.com
uname -n' from a command line on the xymon server and it displays the
hostname of the cli*ent
Good
Here's what I have in my hosts.cfg file.
1.2.3.4 FreeNAS *# trace ssh https://freenas.mydomainname.com
<https://freenas.mydomainname.com> "RCLIENT:cmd(ssh -T root@*
freenas.mydomainname.com*),ostype(freebsd)"*
I wonder if this is the problem. By default, ssh will try to use a key
file called "identity", then it will try "id_rsa" and finally "id_dsa" (all
in the .ssh directory). So to use a different key file, you use "-i
<dirname/filename>" on the command-line. If you need to do this when you
do the "uname -n" test, then you probably also need to specify it in the
cmd() specification in hosts.cfg.
J