LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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: 364

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: 364

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
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,508

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


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 12:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration