LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 05-29-2012, 01:15 PM   #1
nand
LQ Newbie
 
Registered: Apr 2005
Location: Romania
Distribution: Debian Lenny
Posts: 4

Rep: Reputation: 0
putty or ssh auto launcher


Hello,

I have a some linux routers from which I want to collect logs for as long as I'm at work. (usually done with putty, ssh to ip and tail /var/log/messages. Putty is set to save output to file)
The problem is that they get rebooted o'lot and manually starting logs is error prone (people forget to restart the putty connection).

Do you know of any software or script that could be set up to launch putty whenever an ip is up? (ie: start putty automatically when the linux box replies to ping)

The workstations are windows, so putty is preferred, but I think installing cygwin to use ssh should not be a big problem.

Thank you,
Andrei
 
Old 05-29-2012, 01:35 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,590

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Why not just create a watchdog service that runs on startup and logs your data, then you can hop in whenever you need to check them.
 
Old 05-29-2012, 01:57 PM   #3
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,773

Rep: Reputation: 197Reputation: 197
http://www.commandlinefu.com/command.../sort-by-votes

I found these if they help
Code:
ssh -MNf <user>@<host>
Create a persistent connection to a machine
Code:
autossh -M50000 -t server.example.com 'screen -raAd mysession'
Open a ssh session opened forever, great on laptops losing Internet connectivity when switching WIFI spots.
Code:
ssh -t remotebox "tail -f /var/log/remote.log"
tail a log over ssh
http://superuser.com/questions/18729...t-interruption
http://jlarky-blog.blogspot.com/2011...reconnect.html
http://nemesis2.qx.net/pages/MyEnTunnel
 
  


Reply

Tags
putty, ssh, ssh history logging


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
Help with Ubuntu server remote ssh and local network ssh issues using putty. scottpops Linux - Server 8 05-17-2012 06:07 PM
Too many launcher bars? How to auto-select external monitor vs laptop screen JohnLocke Linux - Newbie 1 02-24-2012 01:09 PM
[SOLVED] putty ssh works but ssh from terminal does not felixtheratruns Linux - Server 6 04-29-2010 01:01 PM
Shortcut / Launcher for Auto SSH Console Window eyeprotocol Linux - General 3 07-28-2008 04:26 PM
[putty&ssh] Who is really good & expert in ssh https tunnelling and firewalling ? Xeratul Linux - General 12 12-03-2006 04:22 AM


All times are GMT -5. The time now is 10:07 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration