![](https://www.johnborhek.com/wp-content/uploads/2017/10/word-image-14.png)
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?
![](https://i0.wp.com/www.johnborhek.com/wp-content/uploads/2017/10/word-image-6.png)
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:
Choose the Environment/SFTP option
Specify for SFTP server: shell /usr/libexec/sftp-server
![](https://i0.wp.com/www.johnborhek.com/wp-content/uploads/2017/10/word-image-8.png)
for VCSA 6.0:
Choose the Environment/SFTP option
Specify for SFTP server: shell /usr/lib64/ssh/sftp-server
![](https://i0.wp.com/www.johnborhek.com/wp-content/uploads/2017/10/word-image-9.png)
And then save the settings (which include the SFTP server)
![](https://i0.wp.com/www.johnborhek.com/wp-content/uploads/2017/10/word-image-10.png)
Now you should be able to login:
![](https://i0.wp.com/www.johnborhek.com/wp-content/uploads/2017/10/word-image-11.png)
Accept the host key
![](https://i0.wp.com/www.johnborhek.com/wp-content/uploads/2017/10/word-image-13.png)
Click: Never show this banner again
![](https://i0.wp.com/www.johnborhek.com/wp-content/uploads/2017/10/word-image-14.png)
Enter the password for root
![](https://i0.wp.com/www.johnborhek.com/wp-content/uploads/2017/10/word-image-15.png)
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
![](https://i0.wp.com/www.johnborhek.com/wp-content/uploads/2017/10/word-image-16.png)
When you are at the root of the filesystem, you will see this:
![](https://i0.wp.com/www.johnborhek.com/wp-content/uploads/2017/10/word-image-17.png)
And you can access any other folders from there, for example: /var/log
![](https://i0.wp.com/www.johnborhek.com/wp-content/uploads/2017/10/word-image-18.png)
Connection to ESXi
Connecting to ESXi with ESXi 6.0 and ESXi 6.5 is pretty much default.
![](https://i0.wp.com/www.johnborhek.com/wp-content/uploads/2017/10/word-image-19.png)
You don’t need to change any of the default variables, it should connect right away
![](https://i0.wp.com/www.johnborhek.com/wp-content/uploads/2017/10/word-image-20.png)
![](https://i0.wp.com/www.johnborhek.com/wp-content/uploads/2017/10/word-image-21.png)
Connecting to ESXi 5.X and prior will require you specify SCP in place of SFTP in the connection dialog