<?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; System Configuration</title>
	<atom:link href="http://howtobsd.com/ru/tag/system-configuration/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>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>Изменить hostname на FreeBSD</title>
		<link>http://howtobsd.com/ru/tips/how-to-change-hostname-on-freebsd.html</link>
		<comments>http://howtobsd.com/ru/tips/how-to-change-hostname-on-freebsd.html#comments</comments>
		<pubDate>Sat, 26 Mar 2011 11:29:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[rc.conf]]></category>
		<category><![CDATA[System Configuration]]></category>

		<guid isPermaLink="false">http://howtobsd.com/ru/?p=337</guid>
		<description><![CDATA[Для того чтобы изменить hostname на &#8216;howtobsd.com&#8217; Вам следует отредактировать файл /etc/rc.conf: hostname="howtobsd.com" Также можно изменить текущее имя хоста без перегрузки коммандой: #hostname howtobsd.com Но следует заметить, что после перезагрузки имя хоста вернется в прежнее значение, указанное в rc.conf проверить текущиее значение hostname: #hostname]]></description>
				<content:encoded><![CDATA[<p>Для того чтобы изменить hostname на  &#8216;howtobsd.com&#8217; Вам следует отредактировать файл /etc/rc.conf:<br />
<code>hostname="howtobsd.com"</code></p>
<p>Также можно изменить текущее имя хоста без перегрузки коммандой:</p>
<p><code>#hostname howtobsd.com</code></p>
<p>Но следует заметить, что после перезагрузки имя хоста вернется в прежнее значение, указанное в rc.conf</p>
<p>проверить текущиее значение hostname:</p>
<p><code>#hostname</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/ru/tips/how-to-change-hostname-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update freebsd ports collection with cvsup</title>
		<link>http://howtobsd.com/ru/software/update-freebsd-ports-collection-with-cvsup.html</link>
		<comments>http://howtobsd.com/ru/software/update-freebsd-ports-collection-with-cvsup.html#comments</comments>
		<pubDate>Sun, 12 Sep 2010 16:00:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[ports]]></category>
		<category><![CDATA[System Configuration]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://howtobsd.com/ru/?p=172</guid>
		<description><![CDATA[If you have just installed FreeBSD from CD\DVD, first that you need to do &#8211; update ports collection freebsd (update freebsd ports tree) and src files from repositories. With cvsup update ports collection isn&#8217;t difficult. Install cvsup: #cd /usr/ports/net/cvsup-without-gui/ #make install clean Copy and edit supfile (I describe only ports tree upfating process. Src updating [...]]]></description>
				<content:encoded><![CDATA[<p>If you have just installed FreeBSD from CD\DVD, first that you need to do &#8211; <strong>update ports collection freebsd</strong> (update freebsd ports tree) and src files from repositories.<br />
With cvsup update ports collection isn&#8217;t difficult. Install cvsup:</p>
<p><code>#cd /usr/ports/net/cvsup-without-gui/<br />
#make install clean</code></p>
<p>Copy and edit supfile (I describe only ports tree upfating process. Src updating is looks same):<br />
<code>#cp /usr/share/examples/cvsup/ports-supfile /etc/ports-supfile<br />
#vim /etc/ports-supfile</code></p>
<p>Choose nearest mirror for you:<br />
<code>*default host=cvsup3.ua.FreeBSD.org</code></p>
<p>My ports-supfile looks like:</p>
<p><code>*default host=cvsup.ua.FreeBSD.org<br />
*default base=/var/db<br />
*default prefix=/usr<br />
*default release=cvs tag=.<br />
*default delete use-rel-suffix<br />
*default compress<br />
ports-all</code></p>
<p>Save file and give command updating:<br />
<code>#cvsup -g -L 2 /etc/ports-supfile</code></p>
<p>It is can updating a long time (specially if you have slow internet connection).<br />
When process is finish &#8211; you will can calm install soft from the ports.</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/ru/software/update-freebsd-ports-collection-with-cvsup.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
