Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我想访问数据库时,我需要通过一个体系结构来建立我的连接。所以,当我必须使用像 MySQL Workbench 这样的 GUI 工具时,我必须打开三个 Putty 会话。我正在尝试使用 Java 做同样的事情。所以我使用 Runtime exec 来运行 plink。这工作正常,我能够建立连接并向其发送一些 unix 命令并检索输出。我想在它上面运行 jdbc。是否可以。由于腻子会话在后台运行,端口转发规则是否适用于我将运行的 jdbc?
是的,如果您正确设置隧道,它将运行。