Thursday, March 8, 2018

vCenter Server Appliance 6.x t WinSCP Appliance shell BASH




When you copy files using WinSCP, part of the operation happens on the target Linux system. The default Appliance Shell cannot be the remote partner of WinSCP. You must enable the Bash shell on the appliance, as follows: 
  1. Initiate an SSH connection to the vCenter Server Appliance.
  2. Provide the root user user name and password when prompted.
  3. Run this command to enable the Bash shell:

    shell.set --enable True
  4. Run this command to access the Bash shell:

    shell
  5. In the Bash shell, run this command to change the default shell to Bash:

    chsh -s /bin/bash root
  6. Use WinSCP to upload the certificate files to the vCenter Server Appliance.
  7. To return to the Appliance Shell, run this command:

    chsh -s /bin/appliancesh root

Switching the vCenter Server Appliance 6.x to BASH Shell
  1. Log in to the vCenter Server Appliance through SSH.
  2. Run this command to enable access the Bash shell:

    shell.set --enabled true
  3. Type shell and press Enter.
  4. In the temporary BASH shell, run this command to permanently configure the default Shell to BASH for Root:

    chsh -s /bin/bash root
  5. Log out from the BASH Shell.
  6. Log in again for the changes to take effect.

Switching the vCenter Server Appliance 6.x to Appliance Shell
  1. Log in to the vCenter Server Appliance through SSH. 
  2. Run this command to change from using the BASH Shell to the Appliance Shell:

    chsh -s /bin/appliancesh root
  3. Log out from the Appliance Shell.
  4. Log in again for the changes to take effect.
https://kb.vmware.com/s/article/2100508
https://kb.vmware.com/s/article/2107727