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.
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
- 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.
- 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