<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Tailing a remote logfile without opening an SSH connection?</title>
	<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection/</link>
	<description>Comments on Ask MetaFilter post Tailing a remote logfile without opening an SSH connection?</description>
	<pubDate>Tue, 27 Dec 2005 12:10:31 -0800</pubDate>
	<lastBuildDate>Tue, 27 Dec 2005 12:10:31 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Tailing a remote logfile without opening an SSH connection?</title>
		<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection</link>	
		<description>How can I tail a remote logfile without actually opening up an SSH connection each time? &lt;br /&gt;&lt;br /&gt; I&apos;d like to be able to use geektool (i&apos;ll settle for iterm) to monitor the alert.log on a production database server without having to manually SSH into the box.  Is it possible to create a symlink (or whatever) that will let me do this?  I do have scp and ssh access to the box.&lt;br&gt;
&lt;br&gt;
I suppose I could SCP the file to my local box every n seconds but I&apos;m sure that a better way exists.   Is it possible to mount a remote volume over SSH?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2005:site.29702</guid>
		<pubDate>Tue, 27 Dec 2005 12:06:18 -0800</pubDate>
		<dc:creator>neilkod</dc:creator>
		
			<category>ssh</category>
		
			<category>scripting</category>
		
	</item> <item>
		<title>By: maschnitz</title>
		<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection#468564</link>	
		<description>ssh takes in an optional execution argument.  It allows you to log in and execute that one command.&lt;br&gt;
&lt;br&gt;
So something like:&lt;br&gt;
ssh neilkod@neilkodsserver.com &quot;tail -f /path/to/log/file&quot;&lt;br&gt;
&lt;br&gt;
You could then stick that command in a script, then run that script or double-click on it.&lt;br&gt;
&lt;br&gt;
The only real trick here is getting it to log in automatically.  Google ssh-keys for more.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29702-468564</guid>
		<pubDate>Tue, 27 Dec 2005 12:10:31 -0800</pubDate>
		<dc:creator>maschnitz</dc:creator>
	</item><item>
		<title>By: cmonkey</title>
		<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection#468565</link>	
		<description>You can run an &lt;a href=&quot;http://www.samag.com/documents/s=4072/sam0203d/sam0203d.htm&quot;&gt;NFS mount over SSH&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29702-468565</guid>
		<pubDate>Tue, 27 Dec 2005 12:10:43 -0800</pubDate>
		<dc:creator>cmonkey</dc:creator>
	</item><item>
		<title>By: delmoi</title>
		<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection#468575</link>	
		<description>maschntiz&apos;s idea is pretty good.  You could also write a script to automaticaly &apos;tail&apos; the file every n seconds, pipe the output into some other file and then SCP &lt;i&gt;that&lt;/i&gt; file whenver you felt like it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29702-468575</guid>
		<pubDate>Tue, 27 Dec 2005 12:22:09 -0800</pubDate>
		<dc:creator>delmoi</dc:creator>
	</item><item>
		<title>By: jellicle</title>
		<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection#468593</link>	
		<description>Your problem is not uncommon.  You want to lookup &lt;a href=&quot;http://www.google.com/search?num=50&amp;hl=en&amp;safe=off&amp;q=syslog+remote+logging&amp;btnG=Search&quot;&gt;remote logging with syslog&lt;/a&gt;.  You can set syslog to send its log via UDP to wherever you specify (your box...).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29702-468593</guid>
		<pubDate>Tue, 27 Dec 2005 12:32:56 -0800</pubDate>
		<dc:creator>jellicle</dc:creator>
	</item><item>
		<title>By: Caviar</title>
		<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection#468640</link>	
		<description>&lt;a href=&quot;http://lufs.sourceforge.net/lufs/intro.html&quot;&gt;LUFS&lt;/a&gt; claims to let you do this, although I&apos;ve never used it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29702-468640</guid>
		<pubDate>Tue, 27 Dec 2005 13:07:14 -0800</pubDate>
		<dc:creator>Caviar</dc:creator>
	</item><item>
		<title>By: mkultra</title>
		<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection#468653</link>	
		<description>Why not just stay logged in? Is it that you can only run one command?&lt;br&gt;
&lt;br&gt;
How about creating a specific user to do this, with a login script in .login that runs your &quot;tail -f /path/to/file&quot; command?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29702-468653</guid>
		<pubDate>Tue, 27 Dec 2005 13:16:39 -0800</pubDate>
		<dc:creator>mkultra</dc:creator>
	</item><item>
		<title>By: Caviar</title>
		<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection#468666</link>	
		<description>Upon futher research, &lt;a href=&quot;http://fuse.sourceforge.net/&quot;&gt;FUSE&lt;/a&gt; seems to be in more active development than LUFS.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29702-468666</guid>
		<pubDate>Tue, 27 Dec 2005 13:28:21 -0800</pubDate>
		<dc:creator>Caviar</dc:creator>
	</item><item>
		<title>By: Nelson</title>
		<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection#468685</link>	
		<description>One possibility is to run your ssh/tail inside a &lt;a href=&quot;http://www.gnu.org/software/screen/&quot;&gt;screen&lt;/a&gt; session on your Mac. Then you can detach from screen while leaving the tty process running. A simple &lt;tt&gt;screen -r&lt;/tt&gt; will resume. I don&apos;t know if screen comes with the Mac or not. A quick search turned up a &lt;a href=&quot;http://screen.darwinports.com/&quot;&gt;Darwin Ports&lt;/a&gt; version for MacOS: there are probably other versions, too.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29702-468685</guid>
		<pubDate>Tue, 27 Dec 2005 13:48:15 -0800</pubDate>
		<dc:creator>Nelson</dc:creator>
	</item><item>
		<title>By: kcm</title>
		<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection#468686</link>	
		<description>For fun you can use &lt;a href=&quot;http://fuse.sourceforge.net/&quot;&gt;FUSE&lt;/a&gt;/&lt;a href=&quot;http://avf.sourceforge.net/&quot;&gt;AVFS&lt;/a&gt; to mount a filesystem from an SSH server.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29702-468686</guid>
		<pubDate>Tue, 27 Dec 2005 13:49:00 -0800</pubDate>
		<dc:creator>kcm</dc:creator>
	</item><item>
		<title>By: neilkod</title>
		<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection#468720</link>	
		<description>Nelson, that&apos;s what I was hoping for, but BOFH literally said &quot;uhh what the hell is screen&quot; when I asked him if he would install it on our Solaris 9 boxes.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29702-468720</guid>
		<pubDate>Tue, 27 Dec 2005 14:13:34 -0800</pubDate>
		<dc:creator>neilkod</dc:creator>
	</item><item>
		<title>By: Rhomboid</title>
		<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection#468779</link>	
		<description>It sounds to me like you have the belief that ssh requires a manual login process.  It most certainly does not, and if you are not using public-key authentication (sometimes called &quot;passwordless&quot;) you are missing out on a killer feature of ssh.&lt;br&gt;
&lt;br&gt;
You create a keypair on your local system by running ssh-keygen.  Then you add the public half of that key to the remote system&apos;s ~/.ssh/authorized_keys file.  Combine this with setting your username for the remote system in ~/.ssh/config and you can now just &quot;ssh hostname&quot; without entering so much as a username or password.  Or you can &quot;ssh hostname tail -f /path/to/file&quot; and to tail the file.  This is in fact way more secure than typing a password.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29702-468779</guid>
		<pubDate>Tue, 27 Dec 2005 15:28:35 -0800</pubDate>
		<dc:creator>Rhomboid</dc:creator>
	</item><item>
		<title>By: Caviar</title>
		<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection#468792</link>	
		<description>If you&apos;re going to do that, I &lt;b&gt;strongly&lt;/b&gt; suggest that you also look into ssh-agent. Among other things, it lets you use passphrases with your keys, but also not have to type in the passphrase every time.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29702-468792</guid>
		<pubDate>Tue, 27 Dec 2005 16:03:17 -0800</pubDate>
		<dc:creator>Caviar</dc:creator>
	</item><item>
		<title>By: polyglot</title>
		<link>http://ask.metafilter.com/29702/Tailing-a-remote-logfile-without-opening-an-SSH-connection#468982</link>	
		<description>DSA keys for ssh and keychain are your friends.  And even if BOFH hasn&apos;t heard of screen, surely they can go look it up and install it for you despite their cluelessness?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.29702-468982</guid>
		<pubDate>Tue, 27 Dec 2005 20:38:47 -0800</pubDate>
		<dc:creator>polyglot</dc:creator>
	</item>
	</channel>
</rss>
