Uploading Files to vCenter Server Appliance using WinSCP (SFTP/SCP)

VMware 0 Comments

If you are having a problem using Winscp to upload files to the vCenter Server Appliance (VCSA), you should change some settings on the Winscp client or the VSCA appliance, it depend on what protocol you are using SFTP or SCP.

Using SFTP:

When opening a connection to VCSA, you get the following error:

Host is not communicating for more than 15 seconds. Still waiting. 
Note If the problem repeats, try turning off 'Optimize connection buffer size'.

erro winscp vmware vcsa

To fix this, go to the “Advanced” window and change the SFTP protocol setting like this:

1- winscp advanced settings

2-vmware vcsa sftp settings

Using SCP:

When opening a connection to the VCSA,using SSH/SCP, you get the following error:

Error skipping startup message, Your shell is probably incompatible with the application (BASH is recommended).

vcsa scp error

The VCSA use a proprietary shell script to lunch some python scripts to setup the environment, as shown her:

vcsa shell python

To fix this, connect to the vCenter Server Appliance using Putty/SSH and enable the shell:

Command> shell.set --enabled True
Command> shell

Then change the shell for the root user to use bash

chsh -s /bin/bash root

This will allow you to use Winscp to transfer files from the VCSA using SCP.

You can change back the shell for the root user after that:

chsh -s /bin/appliancesh root
1 Star2 Stars3 Stars4 Stars5 Stars (6 votes, average: 5.00 out of 5)

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.