If you want to transfer data from or to the vCSA with a client like WinSCP or e.g. you get the error message “The remote Server sends no data” or similar.

How to enable/disable BASH on vCSA to transfer files via SCP_第1张图片How to enable/disable BASH on vCSA to transfer files via SCP_第2张图片

Go to vSphere Web Client > Administration > System Configuration > Nodes > your vCSA > Manage > Access

How to enable/disable BASH on vCSA to transfer files via SCP_第3张图片

You will see that Bash shell is set to disabled, but you can’t change it via Edit… To change the BASH access you have to go SHELL via SSH.

  • Connect vCSA via putty

  • enable SHELL > shell.set –enabled True
    How to enable/disable BASH on vCSA to transfer files via SCP_第4张图片

  • start SHELL > shell
    How to enable/disable BASH on vCSA to transfer files via SCP_第5张图片

  • activate BASH > chsh -s “/bin/bash” root
    enableBASH000007

Now you can connect vCSA via WinSCP or e.g.

To disable the BASH use the command

  • chsh -s /bin/appliancesh
    enableBASH000008

 

原文地址:http://blog.ganser.com/how-to-enabledisable-bash-on-vcsa-to-transfer-files-via-scp/