d**n 发帖数: 198 | 1 公司发神经装了个jump box, 所有access prod server 都要通过这个jump box
现在是这样的,偶要送一台dev machine 读prod server 的DB2, 用perl
在perl 里:
my $dbh = DBI->connect(DBI:DB2:db_name@localhost:66666, username, password);
perl 在机器A 上运行, jump box 是J, 装db2的机器是d
偶在机器A上: ssh -L 66666:J:66666 username_A@J
验证密码后,在J 上运行
ssh -L 66666:d:66666 username_B@d
密码通过
但是,执行那个perl ,显示无法连接, argument 错误
大侠帮忙看下吧, 偶对这个tunnell 实在很弧度。 | d**n 发帖数: 198 | 2 re
公司发神经装了个jump box, 所有access prod server 都要通过这个jump box
现在是这样的,偶要送一台dev machine 读prod server 的DB2, 用perl
在perl 里:
my $dbh = DBI->connect(DBI:DB2:db_name@localhost:66666, username, password);
perl 在机器A 上运行, jump box 是J, 装db2的机器是d
偶在机器A上: ssh -L 66666:J:66666 username_A@J
验证密码后,在J 上运行
ssh -L 66666:d:66666 username_B@d
密码通过
但是,执行那个perl ,显示无法连接, argument 错误
大侠帮忙看下吧, 偶对这个tunnell 实在很弧度。
【在 d**n 的大作中提到】 : 公司发神经装了个jump box, 所有access prod server 都要通过这个jump box : 现在是这样的,偶要送一台dev machine 读prod server 的DB2, 用perl : 在perl 里: : my $dbh = DBI->connect(DBI:DB2:db_name@localhost:66666, username, password); : perl 在机器A 上运行, jump box 是J, 装db2的机器是d : 偶在机器A上: ssh -L 66666:J:66666 username_A@J : 验证密码后,在J 上运行 : ssh -L 66666:d:66666 username_B@d : 密码通过 : 但是,执行那个perl ,显示无法连接, argument 错误
| z**r 发帖数: 17771 | 3 赞port number 66666
tcp port number cannot exceed 65535
);
【在 d**n 的大作中提到】 : re : : 公司发神经装了个jump box, 所有access prod server 都要通过这个jump box : 现在是这样的,偶要送一台dev machine 读prod server 的DB2, 用perl : 在perl 里: : my $dbh = DBI->connect(DBI:DB2:db_name@localhost:66666, username, password); : perl 在机器A 上运行, jump box 是J, 装db2的机器是d : 偶在机器A上: ssh -L 66666:J:66666 username_A@J : 验证密码后,在J 上运行 : ssh -L 66666:d:66666 username_B@d
| d**n 发帖数: 198 | 4 试了55555, 也不work.
【在 z**r 的大作中提到】 : 赞port number 66666 : tcp port number cannot exceed 65535 : : );
| z**r 发帖数: 17771 | 5 you were using local forward and it won't work in your case, try remote
forward
【在 d**n 的大作中提到】 : 试了55555, 也不work.
| b***d 发帖数: 186 | 6 没有认真看你的情况不过感觉可以用socat如果你可以在J上面安装软件的话装个socat
。如果你的DB connection用的TCP则在J上运行:
socat TCP-LISTEN:5900,fork TCP:DB'sIP:DB'sPORT
然后你在自己的计算机上访问J的5900口就可以了。
);
【在 d**n 的大作中提到】 : 公司发神经装了个jump box, 所有access prod server 都要通过这个jump box : 现在是这样的,偶要送一台dev machine 读prod server 的DB2, 用perl : 在perl 里: : my $dbh = DBI->connect(DBI:DB2:db_name@localhost:66666, username, password); : perl 在机器A 上运行, jump box 是J, 装db2的机器是d : 偶在机器A上: ssh -L 66666:J:66666 username_A@J : 验证密码后,在J 上运行 : ssh -L 66666:d:66666 username_B@d : 密码通过 : 但是,执行那个perl ,显示无法连接, argument 错误
|
|