-----
以上脚本可以在scp的时候自动传入密码12345,但是有一种情况是比如我这个机器第一次连接x.x.x.x去scp东西的时候需要从对方下载RSA key(公钥)
The authenticity of host '[x.x.x.x]:端口 ([x.x.x.x]:端口)' can't be established.
RSA key fingerprint is 5e:23:13:55:0d:70:74:fe:3a:d8:5c:79:33:e7:c3:ce.
Are you sure you want to continue connecting (yes/no)?
也就是没有对方公钥的时候自动传入yes,然后再传入密码,已经有对方公钥的情况下直接传入密码作者: l08375047 时间: 2015-03-18 17:17 本帖最后由 l08375047 于 2015-03-18 17:18 编辑