我正在尝试在 MAC 上使用 JProfiler 远程连接到位于防火墙后面且只能通过 Linux 计算机访问的计算机。
我已经设置了直接 SSH 隧道,如下所示:
ssh -L 8849:remote:8849 forwardingmachine
并启动 Jprofiler
java -agentpath:/path/jprofiler8/bin/linux-x64/libjprofilerti.so=port=8849 ..."
我系统地收到错误:
Connection error
Either an old version of the native library is used or another application is listening on port 8849. Please check your DYLD_LIBRARY_PATH environment variable and your port configuration
网上有使用 2 跳 SSH 隧道的解决方案,但我无法这样做,因为第二台机器只能由转发机器访问。
有什么办法可以解决这个问题吗?
(远程计算机使用 Java 1.7,而我的 Mac 使用 Java 1.8)。两台机器都使用jprofiler8
最佳答案
使用命令设置到远程
的直接隧道
ssh -t user@remote -L [localPort]:localhost:[remotePort] -N
关于java - JProfiler,连接到防火墙后面的计算机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28546152/