When attempting to transfer files from a vCenter Server Appliance using the scp command or automated scripts (e.g., via sshpass), the operation fails.
sshpass -p 'vCenter_Server_root_password' scp root@<vCenter_IP_OR_FQDN>:/var/log/audit/sso-events/audit_events.log /local_destination/
Unknown Command: scp
echo $SHELL" within the vCenter Server SSH session returns /bin/appliancesh.VMware vCenter Server 8.0.x
The default shell on the vCenter Server Appliance is the Appliance Shell (/bin/appliancesh). It does not support standard Linux scp file transfer commands.
To resolve this, switch to the Bash shell (/bin/bash) either temporarily or permanently. For details, see the "Switching the vCenter Server Appliance to BASH Shell" section in Toggling the vCenter Server Appliance default shell.