<?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; security</title>
	<atom:link href="http://howtobsd.com/ru/tag/security/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>ru-RU</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/ru/solutions/sftp_reques.html</link>
		<comments>http://howtobsd.com/ru/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/ru/?p=537</guid>
		<description><![CDATA[Пытаясь подключиться к серверу по sftp используя FileZilla: 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]: subsystem request for sftp [...]]]></description>
				<content:encoded><![CDATA[<p>Пытаясь подключиться к серверу по sftp используя FileZilla:<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 />
Но при этом без проблем могу подключиться по ssh.</p>
<p>Это легко решается путем создания симлинка в нужное место.<br />
Найдем где находится нужный файл :<br />
<code><br />
root@server01 ~]# locate sftp-server<br />
/usr/libexec/openssh/sftp-server<br />
</code></p>
<p>и создадим ссылку на него:<br />
<code><br />
ln -s /usr/libexec/openssh/sftp-server /usr/libexec/sftp-server<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/ru/solutions/sftp_reques.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH авторизация по ключу</title>
		<link>http://howtobsd.com/ru/software/ssh-key-authentication-freebsd.html</link>
		<comments>http://howtobsd.com/ru/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/ru/?p=341</guid>
		<description><![CDATA[Сегодня трудно представить себе администратора Unix систем который не использует ssh протокол. В этом how-to я хотел бы показать насколько просто использовать авторизацию ssh по ключам. Наиболее очевидные преимущества ssh аутентификации с использованием открытых ключей для меня это: ssh авторизация без пароля использование ssh в shell скриптах безопасность Для того, чтобы воспользоваться преимуществами авторизации по [...]]]></description>
				<content:encoded><![CDATA[<p>Сегодня трудно представить себе администратора  Unix систем который не использует ssh протокол.<br />
В этом how-to я хотел бы показать насколько просто использовать <strong>авторизацию ssh по ключам</strong>.<br />
Наиболее очевидные преимущества ssh аутентификации с использованием открытых ключей для меня это:</p>
<ul>
<li>ssh авторизация без пароля</li>
<li>использование ssh в shell скриптах</li>
<li>безопасность</li>
</ul>
<p>Для того, чтобы воспользоваться преимуществами авторизации по ключу ssh необходимо выполнить всего два шага:</p>
<ul>
<li>1. Сгенерировать ключи на клиентской машине.</li>
<li>2. Добавить публичный ключ на сервере.</li>
</ul>
<h4>1.Генерация ключей.</h4>
<p>От юзера которым будем использовать ssh на клиенте даем команду:</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>В резульате получаем 2 файла в папке ~/.ssh:<br />
id_rsa  &#8211; приватный (закрытый) ключ<br />
id_rsa.pub &#8211; публичный ключ</p>
<h4>2. Добавление публичного ключа на сервере.</h4>
<p>По умолчанию публичные ключи хранятся в файлу /home/user/.ssh/authorized_keys<br />
Нам необходимо загрузить публичный ключ (id_rsa.pub) на сервер и  при помощи конкатенации добавить его содержимое в authorized_keys:</p>
<p><code>#cat id_rsa.pub >> /home/user/.ssh/authorized_keys</code></p>
<p>Эта команда также создаст файл, если его не существует.</p>
<p>Это все! Теперь можно попробовать авторизоваться с клиента:</p>
<p><code>#ssh username@servername</code></p>
<p>Как использовать несколько ключей для разных серверов читайте в следующей статье<br />
How to use several keys for different servers read in next post.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/ru/software/ssh-key-authentication-freebsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change FreeBSD root password</title>
		<link>http://howtobsd.com/ru/tips/how-to-change-freebsd-root-password.html</link>
		<comments>http://howtobsd.com/ru/tips/how-to-change-freebsd-root-password.html#comments</comments>
		<pubDate>Sun, 12 Sep 2010 16:08:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://howtobsd.com/ru/?p=177</guid>
		<description><![CDATA[Change root password: &#8211; Boot system in single user mod (key &#8220;4&#8243;) &#8211; Remount / root in rw mode: #mount -u / #mount -a &#8211; Сhange the password: #passwd &#8211; Insert new root password &#8211; Reboot]]></description>
				<content:encoded><![CDATA[<p><strong>Change root password:</strong></p>
<p> &#8211; Boot system in single user mod (key &#8220;4&#8243;)</p>
<p> &#8211; Remount / root in rw mode:</p>
<p><code>#mount -u /<br />
#mount -a</code></p>
<p> &#8211; Сhange the password:</p>
<p><code>#passwd</code></p>
<p> &#8211; Insert new root password<br />
 &#8211; Reboot</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/ru/tips/how-to-change-freebsd-root-password.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The problem with mod_ssl: Undefined symbol &#8220;SSL_get_servername&#8221;</title>
		<link>http://howtobsd.com/ru/solutions/the-problem-with-mod_ssl-undefined-symbol-ssl_get_servername.html</link>
		<comments>http://howtobsd.com/ru/solutions/the-problem-with-mod_ssl-undefined-symbol-ssl_get_servername.html#comments</comments>
		<pubDate>Tue, 01 Jun 2010 07:18:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_ssl]]></category>
		<category><![CDATA[problems & solutions]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://howtobsd.com/ru/?p=121</guid>
		<description><![CDATA[If you have a some problem: Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration check the string in httpd.conf LoadModule ssl_module libexec/apache22/mod_ssl.so &#8211; it&#8217;s shouldn&#8217;t be comment After update openssl and apache it turns out that apache can&#8217;t start: Syntax error on line 68 of /usr/local/etc/apache22/httpd.conf: Cannot [...]]]></description>
				<content:encoded><![CDATA[<p>If you have a some problem:</p>
<p><code>Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration</code></p>
<p>check the string in httpd.conf LoadModule ssl_module libexec/apache22/mod_ssl.so &#8211; it&#8217;s shouldn&#8217;t be comment</p>
<p>After update openssl and apache it turns out that apache can&#8217;t start:</p>
<p><code>Syntax error on line 68 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_ssl.so into server: /usr/local/libexec/apache22/mod_ssl.so: Undefined symbol "SSL_get_servername"</code></p>
<p>The solution is rebuilt apache with WITH_OPENSSL_PORT:</p>
<p><code>echo 'WITH_OPENSSL_PORT=yes' >> /etc/make.conf</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/ru/solutions/the-problem-with-mod_ssl-undefined-symbol-ssl_get_servername.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
