Site icon mulcas

Unable to Access the VCSA 6.7 via WinSCP

WinSCP VCSA

One of the many and easiest ways to get the logs from the ESXi hosts and vCenter Server Appliance (VCSA), is accessing directly to the files directory using tools such as WinSCP, which helps to transfer the files between a local and a remote computer ( Ex. VCSA).

"SCP is an older protocol but almost universally supported on Unix-like platforms as part of an SSH protocol suite. It is rarely supported on other platforms. SCP is a descendant of the ancient rcp.”

Here, you can download WinSCP.

I never have had issues with the ESXi hosts and WinSCP, however, trying to access the VCSA is a different story.

Problem:

Unable to Access the VCSA via WinSCP

Trying to establish a connection to the VCSA 6.7 using WinSCP client, I was getting the following error: "Host is not communicating for more than 15 seconds. Still Waiting..."

And after a few seconds, I got this other message: "Received too large SFTP packet. Max supported packet size is 1024000 B"

Solution:

The default Appliance Shell cannot be used to access remotely via WinSCP. You must enable the Bash shell on the appliance.

There are two workarounds to solve this issue, and the first one is easier than the second. However, the first option didn’t work for me.

If you have the same issue, try first option one.

Option one

  1. Open WinSCP and open a new session.
  2. On the new session Login window, click Advanced...
  1. Select SFTP under Environment.
  2. On SFTP server input: shell /usr/lib64/ssh/sftp-server
  3. Click OK.

Update from the comments: On the SFTP server field, the input should be: shell /usr/libexec/sftp-server. I haven't tried, but it should work. This is the quickest and ideal option. If you still have an issue, try option two.

If you try the connection to VCSA again, you should be able to connect. I couldn't, so I used the below option two.

Option two

  1. Access to the (VCSA) the Appliance Management. https://vcsa_ip:5480
  2. Navigate to Access and click Edit under Access Settings.
  1. Switch on Enable SSH Login and click OK.

Note: Enabling the Bash Shell here is not going to work.

  1. Access to the VCSA via SSH.
  2. Type: Shell
  3. Change the default Shell to Bash typing: chsh -s /bin/bash root

After enabling Bash Shell, you could use WinSCP to access your files in the VCSA.

References

https://kb.vmware.com/s/article/2115983
https://kb.vmware.com/s/article/2107727
Exit mobile version