自动scp(ssh信任外的另一种方法)

2014-11-23 0 861
自动scp(ssh信任外的另一种方法)
#!/usr/bin/expect
set password yanfa
set host 10.8.210.5
spawn scp index.html yanfa@$host:/home/yanfa/
expect "*password:"
send "$password\r"
expect eof.

遇见资源网 shell 自动scp(ssh信任外的另一种方法) http://www.ox520.com/16742.html

上一篇: expect简单示例
常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务