【发布时间】:2014-06-05 17:36:28
【问题描述】:
我正在尝试使用 pem 密钥将一些文件 scp 到不同的计算机,所以我不需要我的密码。但是,每次我尝试连接到一个新盒子时,它都会问我“说真的,你想连接吗?你想保存密钥吗?......”这太烦人了,scp 中是否有一些标志如“ yum -y" 回答所有这些问题。
[user@commander tmp]$ scp -i mykey.pem target.txt ubuntu@xxx.xx.xx.xx:/commander
The authenticity of host 'xxx.xx.xx.xx (xxx.xx.xx.xx)' can't be established.
RSA key fingerprint is junk:junk:junk... many junks... goes here
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'xxx.xx.xx.xx' (RSA) to the list of known hosts.
谢谢!
【问题讨论】: