首页 > 代码库 > 自动ftp 上传

自动ftp 上传

#!/bin/shftp -n<<END_FTPopen 192.168.1.4user codfei duibuqi //用户名codfei 密码duibuqibinaryprompt off //关闭提示mput test //上传testclosebyeEND_FTP自动ssh 登陆 从A 到B 然后再到c#!/usr/bin/expect -fset timeout 30spawn ssh codfei@Bexpect "password:"send "pppppp\r"expect "]*"send "ssh codfei@C\r"expect "password:"send "pppppp\r"interact

 

自动ftp 上传