VMware Cloud Community
JaySMX
Hot Shot
Hot Shot
Jump to solution

SSH keys - Private key location for ESXi?

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?

-Justin
Tags (3)
0 Kudos
1 Solution

Accepted Solutions
Virtualinfra
Commander
Commander
Jump to solution

save them under here

/etc/ssh/keys-root/authorized_keys

Thanks & Regards Dharshan S VCP 4.0,VTSP 5.0, VCP 5.0

View solution in original post

0 Kudos
3 Replies
Virtualinfra
Commander
Commander
Jump to solution

save them under here

/etc/ssh/keys-root/authorized_keys

Thanks & Regards Dharshan S VCP 4.0,VTSP 5.0, VCP 5.0
0 Kudos
Virtualinfra
Commander
Commander
Jump to solution

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>

    Thanks & Regards Dharshan S VCP 4.0,VTSP 5.0, VCP 5.0
    JaySMX
    Hot Shot
    Hot Shot
    Jump to solution

    That did the trick, thanks!

    -Justin
    0 Kudos