AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  DSH - Host key verification failed.

    Posted Wed March 29, 2006 09:56 AM

    Originally posted by: SystemAdmin


    I'm trying to setup dsh and am getting the following error on some of the servers I'm trying to connect to.

    root@dw1:/
    1. dsh -n pdb1 df
    pdb1.prod.netsol.com: Host key verification failed.
    dsh: 2617-009 pdb1.prod.netsol.com remote shell had exit code 255
    -The root public key on dw1 has been moved to the root:/.ssh/authorized_keys file.
    -DSH_REMOTE_CMD=/usr/bin/ssh
    -ssh to the servers works
    -dsh from pdb1 to dw1 works
    -dsh from dw1 to dw2 works

    Any ideas?

    Gary


    #AIX-Forum


  • 2.  Re: DSH - Host key verification failed.

    Posted Wed March 29, 2006 11:14 AM

    Originally posted by: SystemAdmin


    If the underlying SSH version is version 2, then you probably need to make a link from /.ssh/authorized_keys to /.ssh/authorized_keys2.

    When you say the ssh works, does that mean you are getting the connection, or that it is letting you in without a password? If the latter, forget my first suggestion. You may have a hostname resolution issue. Since you are using a FQDN in your failed command string, you probably need to add a line to the authorized_keys(2) file with the FQDN, using the same key. One line will have pdb1 and the rsa/dsa key, do a yank and paste in vi and change pdb1 of the added line to be pdb1.prod.netsol.com. It should work then.

    HTH, and let us know!

    SG
    #AIX-Forum


  • 3.  Re: DSH - Host key verification failed.

    Posted Sun February 08, 2009 03:36 AM

    Originally posted by: SystemAdmin


    Host key of foreign host has to be stored in local known_hosts file. If the key is not already cached, the dsh command returns that 255 error. To check, try to ssh to you remote host, using both short name and fully qualified name: this will cache remote host key for both.
    #AIX-Forum


  • 4.  Re: DSH - Host key verification failed.

    Posted Tue March 22, 2011 01:58 PM

    Originally posted by: MisterX


    sorry it's an old thread...but....

    It seems that DSH is doing some sort of gethostbyname which checks the order of /etc/netsvc.conf to resolve the name. While I appreciate the validation, i either have to add the servers in /etc/hosts or the FQDN to the know_hosts file. How can i change this in the dsh.pm file so that it doesnt append the FQDN.

    SSH doesnt seem to append FQDN when you ssh to node1 when it has to query DNS, why does DSH?

    Thanks,
    Ryan
    #AIX-Forum