Hi,
I want to do debug remotely java code, but, to connect to the remote JVM, I've to pass 3 proxys.
Where's the architecture
MYCOMPUTER --> Proxy1 --> Proxy2 --> JAVAMACHINE --> PROCESS:50030
From MYCOMPUTER; I've to pass Proxy1 and Proxy2 to go to the machine where a java process is running. The java process called PROCESS is running in the JAVAMACHINE node.And I want to attach to the port 50030.
I know that configuring the .ssh/config file is the way to go. I've this configuration, but it's not working in the way that I want:
Code:
Host *.ra
User USER
ProxyCommand ssh USER@frontend1 "nc -q 10 \$(basename %h .ra) %p"
StrictHostKeyChecking no
ServerAliveInterval 120
If I do
[code]
ssh USER@frontend2.ra
[code]
I stop in the frontend2 machine, but I'm not attaching to the PROCESS:50030
How can I set the .ssh/config file to attach to a remote process?