当您使用 WinSCP 复制文件时,部分操作发生在目标 Linux 系统上。默认的 Appliance Shell 不能是 WinSCP 的远程合作伙伴。您必须启用设备上的 Bash shell,如下所示:
- 发起与 vCenter Server Appliance 的 SSH 连接。
- 提示时,提供 root 用户的用户名和密码。
- 运行以下命令以启用 Bash shell:
shell.set --enable True
- 运行以下命令以访问 Bash shell:
shell
- 在 Bash shell 中,运行以下命令将默认 shell 更改为 Bash:
chsh -s /bin/bash root
- 使用 WinSCP 将证书文件上载到 vCenter Server Appliance。
- 要返回到 Appliance Shell,请运行以下命令:
chsh -s /bin/appliancesh root
您也可以使用 PSCP 将文件从 Linux 系统复制到 vCenter Server Appliance。在 Linux 上,将在本地运行命令并成功完成传输。