LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-23-2011, 11:48 PM   #1
vietbk87
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
lost ssh background !!


hi all,
- I am running process ssh background to use port forwarding of openssh.
- I have command:
ssh -g -f -p 11111 -i /path/private-key user1@ip-server1 -L 22222:ip-server2:33333 -N
- I use this tunnel ssh to replication mysql from server2 to localhost.
- The problem is process tunnel ssh no longer after interval time good run, so my replication is failed. I don't know when and why process tunnel ssh no longer?
- how can I trace process id ? I am used to "strace command", it is very good , but at this time process ssh backgroup have good status. So I cannot trace anything!!!
- anyone have ideals?
Big Thanks!!!
 
Old 05-24-2011, 01:44 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

The best thing to do in my opinion is manually connect and go through all the connection steps. Might be a misconfiguration causing a time out on the SSH connection which caused it to shutdown (the KeepAlive settings?).

Might I ask if you have any particular reason why you use SSH tunneling for MySQL replication? Don't you have a direct access from one server to the other so that you can setup MySQL replication directly? You could add an iptables rule to only permit connection from one to the other and vice versa for more security.

Kind regards,

Eric
 
  


Reply


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
Run SSH in the Background ? maas187 Linux - Networking 4 09-17-2009 12:27 AM
ssh -> perl -> spawn background proces hangs ssh session rhoekstra Programming 2 04-25-2006 02:05 AM
lost desktop background and file browser merlin666 Fedora 2 04-29-2005 12:04 AM
Running a program in the background - SSH ziggo0 Linux - Newbie 4 03-05-2005 02:30 PM
lost taskbar, and apps running in background spooge Linux - General 5 04-12-2002 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:11 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