VMware Cloud Community
AndreiDan
Contributor
Contributor

SSH Error ESXi - fatal: / must be owned by root and not group or world-writable.

Hello team,

I have a problem while I'am trying to SSH to an ESXi ver 6.5 ;

root@VM:/usr/lib# ssh -vvv root@10.X.Y.Z

OpenSSH_7.2p2 Ubuntu-4ubuntu2.7, OpenSSL 1.0.2g  1 Mar 2016

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: /etc/ssh/ssh_config line 19: Applying options for *

debug2: resolving "10.X.Y.Z" port 22

debug2: ssh_connect_direct: needpriv 0

debug1: Connecting to 10.X.Y.Z[10.X.Y.Z] port 22.

debug1: Connection established.

debug1: permanently_set_uid: 0/0

---------------------------------------------------------------------

debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.7

ssh_exchange_identification: Connection closed by remote host

When I check the logs from ESXi web page Isee the auth following logs:

2019-02-12T03:02:41Z sshd[2337994]: /etc/ssh/sshd_config line 7: Deprecated option UsePrivilegeSeparation

2019-02-12T03:02:41Z sshd[2337994]: /etc/ssh/sshd_config line 15: Unsupported option PrintLastLog

2019-02-12T03:02:41Z sshd[2337994]: fatal: / must be owned by root and not group or world-writable.

Does anyone have a clue what might've happened?

Previously I've managed to SSH into this ESXi and SCP a file but I'am not sure what happened after.

Best regards,

Andrei

0 Kudos
1 Reply
Shrikant_Gavhan
Enthusiast
Enthusiast

Login to DCUI and follow below.

1. " chwon root:root / "

2. restart ssh service from vsphere client / webclient

3. try ssh from putty.

I had resolved this issue recently for one the esxi in my infra.

Thanks and Regards, Shrikant Gavhane
0 Kudos