Connecting to vCenter Server Virtual Appliance 6.0 using WinSCP fails with the error: Received too large SFTP packet
search cancel

Connecting to vCenter Server Virtual Appliance 6.0 using WinSCP fails with the error: Received too large SFTP packet

book

Article ID: 338126

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • Connecting to vCenter Server Virtual Appliance using WinSCP fails
  • You see the error:

    Received too large (1433299822 B) SFTP packet. Max supported packet size is 1024000 B


Environment

VMware vCenter Server Appliance 6.0.x

Cause

This issue occurs when the default shell used for the root account has changed from bash to appliancesh.

Resolution

This is an expected behavior when appliancesh is used with WinSCP.

To work around this issue:
  1. Use SCP through the bash shell to copy files from the appliance to another Linux machine or ESXi host.
  2. Access the required files using WinSCP.

This command changes the default shell from /bin/appliancesh to /bin/bash
chsh -s /bin/bash root

Users can connect with WINSCP without getting the too large packet error.

To return to the Appliance Shell, run this command:
chsh -s /bin/appliancesh root

 


Additional Information