LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 12: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, 12:35 PM   #2
Kustom42
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
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,103
Blog Entries: 6

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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