JConsole over ssh local port forwarding

后端 未结 4 658
被撕碎了的回忆
被撕碎了的回忆 2020-11-30 17:15

I\'d like to be able to remotely connect to a Java service that has JMX exposed, however it is blocked by a firewall. I have tried to use ssh local port forwarding, however

4条回答
  •  抹茶落季
    2020-11-30 17:48

    Continuing the SSH socks method, with newer java versions (around 8u66) you also need to set socksNonProxyHosts empty resulting in:

    jconsole -J-DsocksProxyHost=localhost -J-DsocksProxyPort=7777 -J-DsocksNonProxyHosts=
    

提交回复
热议问题