<?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>Rolling shells &#187; ssh</title>
	<atom:link href="http://shell.burgas.org/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://shell.burgas.org</link>
	<description>All the things i find useful for linux and network.</description>
	<lastBuildDate>Sat, 05 Jun 2010 07:14:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>sshd problem on debian xen guest PTY allocation request failed on channel 0</title>
		<link>http://shell.burgas.org/2009/05/sshd-problem-on-debian-xenpty-allocation-request-failed-on-channel-0-guest/</link>
		<comments>http://shell.burgas.org/2009/05/sshd-problem-on-debian-xenpty-allocation-request-failed-on-channel-0-guest/#comments</comments>
		<pubDate>Sat, 23 May 2009 10:21:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://shell.burgas.org/?p=89</guid>
		<description><![CDATA[How do you fix the issue with a SSH server which freezes after authenticating? $ ssh root@xxx.xxx.xxx.xxx The authenticity of host ‘xx.xx.xxx.xxx (xx.xx.xxx.xxx)’ can’t be established. RSA key fingerprint is replaced for security. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added ‘xx.xx.xxx.xxx’ (RSA) to the list of known hosts. Password: [...]]]></description>
			<content:encoded><![CDATA[<p>How do you fix the issue with a SSH server which freezes after authenticating?</p>
<blockquote><p>$ ssh <span class="mh-plaintext">root@xxx.xxx.xxx.xxx</span><br />
The authenticity of host ‘xx.xx.xxx.xxx (xx.xx.xxx.xxx)’ can’t be established.<br />
RSA key fingerprint is replaced for security.<br />
Are you sure you want to continue connecting (yes/no)? yes<br />
Warning: Permanently added ‘xx.xx.xxx.xxx’ (RSA) to the list of known hosts.<br />
Password:<br />
PTY allocation request failed on channel 0</p></blockquote>
<p>In the above scenario, you can see that I logged in but I’m not able to get into the console.</p>
<p>Once you’re in debug more, you will see lots of messages elaborating the SSH access steps in detail. These messages might point you to the root cause or the stage at which you’re being locked.</p>
<p>In my case, I got freezed after authenticating myself.</p>
<p>Resolution is just to make pts and restart sshd</p>
<pre>
mkdir /dev/pts
mount /dev/pts
/etc/init.d/ssh restart
</pre>
<p>and permanent solution is just instaling udev via: </p>
<pre>
apt-get install udev
</pre>
]]></content:encoded>
			<wfw:commentRss>http://shell.burgas.org/2009/05/sshd-problem-on-debian-xenpty-allocation-request-failed-on-channel-0-guest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH without password</title>
		<link>http://shell.burgas.org/2009/05/ssh-without-password/</link>
		<comments>http://shell.burgas.org/2009/05/ssh-without-password/#comments</comments>
		<pubDate>Sat, 23 May 2009 08:01:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://shell.burgas.org/?p=83</guid>
		<description><![CDATA[Your aim You want to use Linux and OpenSSH to automize your tasks. Therefore you need an automatic login from host A / user a to Host B / user b. You don&#8217;t want to enter any passwords, because you want to call ssh from a within a shell script. How to do it First [...]]]></description>
			<content:encoded><![CDATA[<h2>Your aim</h2>
<p>You want to use Linux and OpenSSH to automize your tasks. Therefore you need an <strong>automatic</strong> login from host A / user a to Host B / user b. You don&#8217;t want to enter any passwords, because you want to call <tt>ssh</tt> from a within a shell script.</p>
<h2>How to do it</h2>
<p>First log in on A as user a and generate a pair of authentication keys.  Do not enter a passphrase:</p>
<pre class="shell">a@A:~&gt; ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A</pre>
<p>Now use <tt>ssh</tt> to create a directory <tt>~/.ssh</tt> as user b on B. (The directory may already exist, which is fine):</p>
<pre class="shell">a@A:~&gt; ssh b@B mkdir -p .ssh
b@B's password:</pre>
<p>Finally append a&#8217;s new public key to <tt>b@B:.ssh/authorized_keys</tt> and enter b&#8217;s password one last time:</p>
<pre class="shell">a@A:~&gt; cat .ssh/id_rsa.pub | ssh b@B 'cat &gt;&gt; .ssh/authorized_keys'
b@B's password:</pre>
<p>From now on you can log into B as b from A as a without password:</p>
<pre class="shell">a@A:~&gt; ssh b@B hostname
B</pre>
<p><strong>A note</strong> from one of our readers:  Depending on your version of SSH you might also have to do the following changes:</p>
<ul>
<li>Put the public key in <tt>.ssh/authorized_keys2</tt></li>
<li>Change the permissions of <tt>.ssh</tt> to <tt>700</tt></li>
<li>Change the permissions of <tt>.ssh/authorized_keys2</tt> to <tt>640</tt></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://shell.burgas.org/2009/05/ssh-without-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
