【发布时间】:2014-03-01 09:32:03
【问题描述】:
我计划自动化 aws-rackspace 服务器迁移。我正在关注使用 rsync 进行迁移的官方 rackspace 文档(https://github.com/cloudnull/InstanceSync/blob/master/rsrsyncLive.sh)。我已修改代码以使用 sshpass 在与远程服务器建立 SSH 连接时动态提供登录密码。
sshpass -p "YOUR_PASSWORD" ssh -o StrictHostKeyChecking=no username@IPAddress
但是我在安装 sshpass 包时遇到了麻烦。
Debian based Distros - Installed Successfully
CentOS - Installed Successfully
Redhat - Package not found (yum list available | grep sshpass)
Amazon Linux - Package not found (yum list available | grep sshpass)
我什至尝试了“yum update”,然后尝试了“yum -y install sshpass”,但没有成功。
谢谢,
【问题讨论】:
标签: linux amazon-web-services ssh yum rackspace-cloud