ESXi

 View Only
  • 1.  SSH keys - Private key location for ESXi?

    Posted May 17, 2012 09:09 PM

    After generating SSH RSA keys to allow password-less SSH from an ESXi5 host to another SSH server, where does the private key file belong? The default location is /root/.ssh, which does not exist under ESXi5.  Does it go into /.ssh?  Has anyone set this up on ESXi5 and know where the private key used for outgoing SSH sessions is stored?



  • 2.  RE: SSH keys - Private key location for ESXi?
    Best Answer

    Posted May 17, 2012 09:37 PM

    save them under here

    /etc/ssh/keys-root/authorized_keys



  • 3.  RE: SSH keys - Private key location for ESXi?

    Posted May 17, 2012 09:39 PM

    ESXi 5.x:

    scp /etc/vcl/vcl.key.pub <ESXi host>:/etc/ssh/keys-root/authorized_keys
    • Test making an SSH connection using the key:
    ssh -i /etc/vcl/vcl.key <ESXi host>



    • 4.  RE: SSH keys - Private key location for ESXi?

      Posted May 17, 2012 10:03 PM

      That did the trick, thanks!