<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cymen&#039;s Blog &#187; console</title>
	<atom:link href="http://blog.cymen.org/tag/console/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cymen.org</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 17:53:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Linux &#8211; Securely redirecting console to virtual terminal for logging</title>
		<link>http://blog.cymen.org/2008/10/16/linux-securely-redirecting-console-to-virtual-terminal-for-logging/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux-securely-redirecting-console-to-virtual-terminal-for-logging</link>
		<comments>http://blog.cymen.org/2008/10/16/linux-securely-redirecting-console-to-virtual-terminal-for-logging/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 22:43:53 +0000</pubDate>
		<dc:creator>Cymen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.cymen.org/?p=18</guid>
		<description><![CDATA[I want to be able to log a ssh session to a unused virtual terminal (/dev/ttyX) so that I can leave something running yet not allow any intrusion into the ssh session by unauthorized users at the keyboard. This is what I ended up doing: Give user write access to /dev/tty devices. Install screen and [...]]]></description>
			<content:encoded><![CDATA[<p>I want to be able to log a ssh session to a unused virtual terminal (/dev/ttyX) so that I can leave something running yet not allow any intrusion into the ssh session by unauthorized users at the keyboard. This is what I ended up doing:</p>
<ol>
<li>Give user write access to /dev/tty devices.</li>
<li>Install screen and script.</li>
<li>Run screen with simple &#8220;screen&#8221;.</li>
<li>Run script with output to virtual terminal and flushing option: &#8220;script -f /dev/ttyX&#8221;.</li>
<li>Do regular ssh session and begin whatever it is you want to monitor.</li>
<li>Disconnect from screen&#8217;ed session (CTRL-a d).</li>
<li>Switch to virtual terminal script is dumping to.</li>
</ol>
<div>This works out quite well in practice &#8212; I&#8217;m not noticing any issues and it is fairly simple to accomplish. On my debian etch install, I had to add my user to the root group (or I could have given all users write access to /dev/tty devices).</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.cymen.org/2008/10/16/linux-securely-redirecting-console-to-virtual-terminal-for-logging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

