<?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>HowToBSD &#187; ssh</title>
	<atom:link href="http://howtobsd.com/tag/ssh/feed" rel="self" type="application/rss+xml" />
	<link>http://howtobsd.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 11 Feb 2014 11:21:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>subsystem request for sftp</title>
		<link>http://howtobsd.com/solutions/sftp_reques.html</link>
		<comments>http://howtobsd.com/solutions/sftp_reques.html#comments</comments>
		<pubDate>Wed, 28 Nov 2012 14:41:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[problems & solutions]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=537</guid>
		<description><![CDATA[When I try to connect by FileZilla to server I get error: Nov 28 08:25:51 server01 sshd[19577]: Accepted password for root from 77.120.137.175 port 55070 ssh2 Nov 28 08:25:51 server01 sshd[19577]: subsystem request for sftp Nov 28 08:25:51 server01 sshd[19577]: error: subsystem: cannot stat /usr/libexec/sftp-server: No such file or directory Nov 28 08:25:51 server01 sshd[19577]: [...]]]></description>
				<content:encoded><![CDATA[<p>When I try to connect by FileZilla to server I get error:<br />
<code>Nov 28 08:25:51 server01 sshd[19577]: Accepted password for root from 77.120.137.175 port 55070 ssh2<br />
Nov 28 08:25:51 server01 sshd[19577]: subsystem request for sftp<br />
Nov 28 08:25:51 server01 sshd[19577]: error: subsystem: cannot stat /usr/libexec/sftp-server: No such file or directory<br />
Nov 28 08:25:51 server01 sshd[19577]: subsystem request for sftp failed, subsystem not found</code><br />
But it is fine to connect via usual ssh connection.</p>
<p>This is easy to fix by creating symbolic link to correct place.<br />
Please find this by locate command :<br />
<code><br />
root@server01 ~]# locate sftp-server<br />
/usr/libexec/openssh/sftp-server<br />
</code></p>
<p>and them make link:<br />
<code><br />
ln -s /usr/libexec/openssh/sftp-server /usr/libexec/sftp-server<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/solutions/sftp_reques.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH key authentication freebsd</title>
		<link>http://howtobsd.com/software/ssh-key-authentication-freebsd.html</link>
		<comments>http://howtobsd.com/software/ssh-key-authentication-freebsd.html#comments</comments>
		<pubDate>Sat, 26 Mar 2011 17:31:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[System Configuration]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=341</guid>
		<description><![CDATA[Too difficult to imagine Unix OS&#8217;s administrator which does not use ssh protocol (Secure SHell). In this how-to I would like to show how easy to use SSH Public Key Based Authentication. The most useful benefits for me in key authentication: ssh authentication without password ssh login from shell scripts security There are just two [...]]]></description>
				<content:encoded><![CDATA[<p>Too difficult to imagine Unix OS&#8217;s administrator which does not use ssh protocol (Secure SHell).<br />
In this how-to I would like to show how easy to use <strong>SSH Public Key Based Authentication</strong>.<br />
The most useful benefits for me in key authentication:</p>
<ul>
<li>ssh authentication without password</li>
<li>ssh login  from shell scripts</li>
<li>security</li>
</ul>
<p>There are just two steps to use ssh key authentication:<br />
1. Generate SSH Keys on client.<br />
2. Add public key to server.</p>
<h4>1.Generating keys.</h4>
<p>From user (which will run script or login on server) do command:</p>
<p><code>#<strong>ssh-keygen -t rsa</strong><br />
Generating public/private rsa key pair.<br />
Enter file in which to save the key (/home/slim/.ssh/id_rsa):<br />
Enter passphrase (empty for no passphrase):<br />
Enter same passphrase again:<br />
Your identification has been saved in /home/slim/.ssh/id_rsa.<br />
Your public key has been saved in /home/slim/.ssh/id_rsa.pub.<br />
The key fingerprint is:<br />
6c:62:f7:11:93:2d:47:90:66:80:88:43:c4:e3:95:7e slim@slim<br />
The key's randomart image is:<br />
+--[ RSA 2048]----+<br />
| +o. o ....o.    |<br />
|  = + .   ++     |<br />
| . =     o= o    |<br />
|  . . E.   =     |<br />
|     .o S .      |<br />
|     . + . .     |<br />
|          .      |<br />
|                 |<br />
|                 |<br />
+-----------------+</code></p>
<p>As result &#8211; 2 files in a ~/.ssh directory:<br />
id_rsa  &#8211; private key<br />
id_rsa.pub &#8211; public key</p>
<h4>2. Add public key on server.</h4>
<p>By default public keys located in /home/user/.ssh/authorized_keys file.<br />
So, you need to load id_rsa.pub file on server and concatenate(on server) it to authorized_keys file:</p>
<p><code>#cat id_rsa.pub >> /home/user/.ssh/authorized_keys</code></p>
<p>This will create authorized_keys if it does not exist.</p>
<p>That is all! Now you can try from client:</p>
<p><code>#ssh username@servername</code></p>
<p>How to use several keys for different servers read in next post.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/software/ssh-key-authentication-freebsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
