LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 01-09-2012, 11:01 AM   #1
xeon123
Member
 
Registered: Sep 2006
Posts: 374

Rep: Reputation: 16
Using sh and nc to attach to a remote process


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?

---------- Post added 01-09-12 at 12:02 PM ----------

This post is to be deleted.
 
Old 01-09-2012, 11:05 AM   #2
xeon123
Member
 
Registered: Sep 2006
Posts: 374

Original Poster
Rep: Reputation: 16
DON'T ANSWER TO THIS POST. ANSWER TO THIS:

http://www.linuxquestions.org/questi...rocess-922882/

---------- Post added 01-09-12 at 12:05 PM ----------

I requested to delete this post.
 
Old 01-09-2012, 01:14 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Accidental duplicate. Closed as per request.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
failed to attach to process in root terminal threatingbehaviour Linux - Software 3 09-21-2009 08:45 PM
Why is strace stuck at rt_sigsuspend, when I attach it to named process? swati_rallapalli Linux - General 2 09-18-2008 01:54 AM
attach a process to init sagar.1986 Linux - General 1 04-24-2007 07:01 AM
attach gdb to a running process linwenyuan Linux - Desktop 1 10-15-2006 01:50 AM
How can i attach gdb to a daemon process praveengujar Linux - General 0 08-11-2004 06:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration