mysql - 如何在SSIS中通过SSH隧道传输数据?

标签 mysql ssh ssis

我正在开发一个SSIS包。我需要编写一个数据流任务,通过SSH隧道将数据从MYSQL数据库传输到我的本地数据库。

SSIS 中没有可用的连接管理器来执行上述任务。有办法做到这一点吗?

最佳答案

也许这可以帮助你。

通过expect脚本你的问题可以解决

#!/usr/bin/expect
eval spawn ssh -oStrictHostKeyChecking=no -oCheckHostIP=no usr@$myhost.example.com
#use correct prompt
set prompt ":|#|\\\$"
interact -o -nobuffer -re $prompt return
send "my_password\r"
interact -o -nobuffer -re $prompt return
send "my_command1\r"
interact -o -nobuffer -re $prompt return
send "my_command2\r"
interact

关于mysql - 如何在SSIS中通过SSH隧道传输数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17696910/

相关文章:

php - Mysql_fetch_assoc() 使用 LIKE 对我的查询发出警告

python - SQL 用于组合字段中的数据并提供整理后的数据

git - 没有为 Heroku 排队的键?

linux - 无法使用 Apache 通过 SSH 连接服务器

linux - 通过 ssh 运行命令时遇到问题

mysql - SQL INNER join 执行时间太长

mysql - 向 ER 图中添加新表

sql-server - SSIS - 再次出现内存不足错误

c# - 循环访问 SSIS 中的表时刷新元数据

string - SSIS:从字符串变量中过滤多个 GUID 作为数据流 OLE 源中的参数