Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


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

Rep: Reputation: 0
putty or ssh auto launcher


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,
Old 05-29-2012, 12:35 PM   #2
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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, 12:57 PM   #3
Senior Member
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,945

Rep: Reputation: 291Reputation: 291Reputation: 291

I found these if they help
ssh -MNf <user>@<host>
Create a persistent connection to a machine
autossh -M50000 -t 'screen -raAd mysession'
Open a ssh session opened forever, great on laptops losing Internet connectivity when switching WIFI spots.
ssh -t remotebox "tail -f /var/log/remote.log"
tail a log over ssh


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

All times are GMT -5. The time now is 05:25 AM.

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