Quantcast
Channel: VMware Communities : Discussion List - ESXi
Viewing all articles
Browse latest Browse all 8132

Unable to setup passwordless ssh to esx node

$
0
0

May I know why I can not do a passwordless ssh to an ESXI node?

 

[mahmood@hpc ~]$ ssh-keygen

Generating public/private rsa key pair.

Enter file in which to save the key (/home/mahmood/.ssh/id_rsa):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/mahmood/.ssh/id_rsa.

Your public key has been saved in /home/mahmood/.ssh/id_rsa.pub.

The key fingerprint is:

SHA256:WlIY5cI9vrxfN3Wh0jyyyl9YM73Y+IwlVQkYD/AzPuA mahmood@hpc.scu.ac.ir

The key's randomart image is:

+---[RSA 2048]----+

|      .....oo.   |

|     . =  ..o . .|

|      + =. + . o.|

|       +..o = o o|

|      . SE = O oo|

|       = .  B O.o|

|      . o  o.=o+ |

|        ......*. |

|        .+o. . o |

+----[SHA256]-----+

[mahmood@hpc ~]$ ssh-copy-id root@10.1.1.101

/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/mahmood/.ssh/id_rsa.pub"

/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed

/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys

Password:

Warning: untrusted X11 forwarding setup failed: xauth key data not generated

 

Number of key(s) added: 1

 

Now try logging into the machine, with:   "ssh 'root@10.1.1.101'"

and check to make sure that only the key(s) you wanted were added.

 

[mahmood@hpc ~]$ ssh root@10.1.1.101

Password:

Warning: untrusted X11 forwarding setup failed: xauth key data not generated

The time and date of this login have been sent to the system logs.

 

WARNING:

   All commands run on the ESXi shell are logged and may be included in

   support bundles. Do not provide passwords directly on the command line.

   Most tools can prompt for secrets or accept them from standard input.

 

VMware offers supported, powerful system administration tools.  Please

see www.vmware.com/go/sysadmintools for details.

 

The ESXi Shell can be disabled by an administrative user. See the

vSphere Security documentation for more information.

[root@localhost:~]

[root@localhost:~] ls -l .ssh/

total 4

-rw-------    1 root     root           403 May 23 15:25 authorized_keys

 

 

Any idea about that?


Viewing all articles
Browse latest Browse all 8132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>