VMware Cloud Community
Bhoobhu1
Contributor
Contributor

How to make ssh without entering the password in ESXI5.0

Hi Everyone ,

Currently i am working on ESXI 5.0 for my testing.But i want to execute my automation script from third RHEL Linux machine. so i am tring to make ssh connection between RHEL to ESXI without Password.

My ultimate goal to create a ssh connection from RHEL to ESXI5.0 without password.

I have tried in google ,most of them suggested in ssh-key ,droper-key ...but i coulnt see those commands in ESXI5.0.Please guide me to create a ssh connection with out password.

Thanks,

Bhoobu

0 Kudos
8 Replies
iw123
Commander
Commander

Hi,

You might want to look into using the vMA (vmware management assistant) http://www.vmware.com/support/developer/vima/

It will allow you to run scripts against your esxi hosts without authenticating as you can set up the authentication in advance.

*Please, don't forget the awarding points for "helpful" and/or "correct" answers
0 Kudos
AWo
Immortal
Immortal

Welcome to the forums!

In general you must switch the ssh daemon from password authentication to public key authentication and use non-encrypted keys.

AWo

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
Bhoobhu1
Contributor
Contributor

Thanks .

I will gothrough vSphere Management Assistant (vMA) guide . I will try out this solution.

is it possible to generate ssh-key gen in ESXI 5.0?

0 Kudos
Bhoobhu1
Contributor
Contributor

Hi AWo,


Please guide me , how to change  the SSH dameon Password Authentication to public-key authentication.

Still i am not able to configure the ESXi5.0 to RHEL 5 without Password

Thanks,
Bhoopathy

0 Kudos
AWo
Immortal
Immortal

Enable the ssh daemon in the security configuration of your ESXi host. Attach to the console with an ssh client. You'll find ssh-keygen under "/usr/lib/vmware/openssh/bin".

AWo

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
Bhoobhu1
Contributor
Contributor

Hi Awo,

While executing Ssh sshkeygen i am getting following ouput.

/usr/lib/vmware/openssh/bin # ssh ssh-keygen
ssh: Could not resolve hostname ssh-keygen: Name or service not known

Please help me how to resolve it

0 Kudos
AWo
Immortal
Immortal

You use one "ssh" too much. "ssh" is the ssh client to connect to servers running the ssh daemon "sshd". You will later use an ssh program on some client to connect to the ESXi host.

Try this "/usr/lib/vmware/openssh/bin/ssh-keygen -t rsa". When it asks for a password just hit enter. It will create the files.

Read that manual für further handling of ssh: http://www.debian-administration.org/articles/152

AWo

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos