Using WinSCP with the VMware vCenter Server Appliance VCSA 6 7 8

Connecting to VCSA with WinSCP

If you try to connect to the VCSA with WinSCP in a default configuration, you will get the following message:

Received too large …. SFTP Packet ….. Cannot initialize SFTP protocol. Is the host running an SFTP server?

This occurs because the default shell for the VCSA 6.5 is not bash.

VMware KB 2107727 recommends changing the shell that the entire VCSA uses from /bin/appliancesh to /bin/bash prior to using WInSCP, then changing it back when you are done! This is a ridiculous waste of time and unnecessary re-configuration of the VCSA.

It is much more expedient just to reconfigure WinSCP and leave the VCSA the way it is! In order to use WinSCP, you will need to change where WinSCP looks for the sftp-server binaries.

In the new connection dialog, specify the Host name, User name and then click the Advanced button

The settings for VCSA 6.5 and VCSA 6.0 differ slightly so

for VCSA 6.5 and VCSA 8.X:

Choose the Environment/SFTP option

Specify for SFTP server: shell /usr/libexec/sftp-server

for VCSA 6.0:

Choose the Environment/SFTP option

Specify for SFTP server: shell /usr/lib64/ssh/sftp-server

And then save the settings (which include the SFTP server)

Now you should be able to login:

Accept the host key

Click: Never show this banner again

Enter the password for root

As soon as you connect, you will be in the root user folder which should be empty.

Navigate up one level in the right-hand pane of the interface

When you are at the root of the filesystem, you will see this:

And you can access any other folders from there, for example: /var/log

Connection to ESXi

Connecting to ESXi with ESXi 6.0 and ESXi 6.5 is pretty much default.

You don’t need to change any of the default variables, it should connect right away

Connecting to ESXi 5.X and prior will require you specify SCP in place of SFTP in the connection dialog.

One thought on “Using WinSCP with the VMware vCenter Server Appliance VCSA 6 7 8

  1. Your blog is a breath of fresh air in the often stagnant world of online content. Your thoughtful analysis and insightful commentary never fail to leave a lasting impression. Thank you for sharing your wisdom with us.

Leave a Reply

Your email address will not be published. Required fields are marked *

RELATED POST

VCSA filesystem is out of disk space vcsa 6.5

This week while doing the normal check of the environment I came to run into a warning on the VCSA…

VMWARE VSPHERE – DEPLOY .OVF ERROR:VIM.FAULT.FILENOTFOUND

I recently upgraded my vSphere host from vSphere 5.5 to 7.0. When I tried to deploy one of my .ovf…

How to Reset Forgotten VMware ESXi Root Password

step 1: Boot your ESXi server from USB Live CD linux. website download image boot live cd boot: https://gparted.org/download.php link…

Recreating a missing VMware virtual machine disk descriptor file (.vmdk) (1002511)

Details This article provides steps to recreate a lost virtual disk descriptor file (.vmdk). You may need to recreate missing…