Home > Hyper-V, Hyper-V R2, SCVMM, SCVMM R2, Tips&Tricks, Virtualization, Windows 2008 R2 > VMM Tricks: V2V failed with Error (protocol error : too many authentication failures for root)

VMM Tricks: V2V failed with Error (protocol error : too many authentication failures for root)

When you perform a V2V from a VMware ESX 3.5  host and I get the following error:

Error (12709)
The operation on did not complete successfully because of the error:  Server sent disconnect message: type 2 (protocol error : too many authentication failures for root)

My VMM is connected to ESX using the root account and the security certificate is valid. After some googling I found the source of the problem, SSH login for the root was disabled.

Since ESX 3.0, for increased security, SSH is disabled by default for the root account on an ESX host. That is, the actual sshd service does not allow root logins. Non-root users are able to login with SSH. This is another layer of protection in addition to the host firewall.

To enable root login for SSH and SCP clients:

  1. If you have physical access to the ESX host, login to the console of your ESX host as the root user .

If you can only connect to the ESX host over the network, connect using an SSH client (such as PuTTY) and log in as a user other than root. After you are logged in, switch to the root user with the following command:

su –

Note: If you do not have any other users on the ESX host, you can create a new user by connecting directly to the ESX host with VMware Infrastructure (VI) or vSphere Client. Go to the Users & Groups tab, right-click on the Users list and select Add to open the Add New User dialog. Ensure the Grant shell access to this user option is selected. These options are only available when connecting to the ESX host directly. They are not available if connecting to vCenter Server.

  1. Edit the configuration file for SSH with the following command:nano /etc/ssh/sshd_config
  2. Find the line that starts with PermitRootLogin and change the no to yes. You can find this line about 2 pages down from the top. Save the file by first pressing Ctrl-O and then Enter. Exit with Ctrl-X.
  3. Restart the sshd service with the command:service sshd restartNote: Alternatively, use the command:

    /etc/init.d/sshd restart


Enabling root SSH login on an ESX host

  1. ramyawad
    March 15, 2010 at 2:45 pm

    Thanks Fawzi. That was helpful.

  1. January 25, 2010 at 3:44 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: