当第一次用sftp username@ftpip的时候:
root@T207N1V1:/home/ap/opsware/agent/scripts/SOFTINSTALL#r@128.192.140.161 <
Connecting to 128.192.140.161...
The authenticity of host '128.192.140.161 (128.192.140.161)' can't be establish
d.
RSA key fingerprint is 5b:2e:32:08:06:1f:b6:59:fa:58:29:85:6a:d1:1c:35.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '128.192.140.161' (RSA) to the list of known hosts.
oouser@128.192.140.161's password:
sftp>
会弹出yes确认。
解决办法:
sftp -o StrictHostKeyChecking=no oouser@128.192.140.161
加入-o StrictHostKeyChecking=no, 强制把RSA密钥写入