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

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

Received too large SFTP packet. Max supported packet size is 1024000 B, when connecting to a VMware Platform Services Controller (PSC) with WinSCP. This is an error you get due to the way the user specified is connecting via SSH. In fact, by default, you are connected with the “appliancesh”, so WinSCP isn’t able to connect correctly.

winscp_received-too-large-sftp-packet_Max-supported-packet-size-is-1024000-B

Here’s what to do (it can be rolled back to restore the previous settings) to access the Platform Services Controller via WinSCP:

  • SSH onto the Platform Services Controller and login
  • Run the following two commands to enable the shell on the current connection
    • Shell.set --enabled True
    • Shell
    • vmware_platform-services-controller_psc_shell-enabled
  • Now run the following command. This will enable bash at login for the user you specify. In my case, I’m happy to do it for root.
    • Chsh -s "/bin/bash" root
      • vmware_platform-services-controller_psc_bash-enabled-for-root
  • You are now able to connect with WinSCP.

 

In order to roll back, run the following against the user you enabled bash for:

chsh -s /bin/appliancesh root

vmware_platform-services-controller_psc_appliancesh-enabled-for-root

IT Droplets

IT Droplets