<?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/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>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<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>
		<item>
		<title>How to change hostname on FreeBSD</title>
		<link>http://howtobsd.com/tips/how-to-change-hostname-on-freebsd.html</link>
		<comments>http://howtobsd.com/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/?p=337</guid>
		<description><![CDATA[For change hostname to &#8216;howtobsd.com&#8217; you should edit /etc/rc.conf: hostname="howtobsd.com" You also can change hostname without reboot by command: #hostname howtobsd.com but after reboot i will return on value in rc.conf check current hostname: hostname]]></description>
				<content:encoded><![CDATA[<p>For change hostname to &#8216;howtobsd.com&#8217; you should edit /etc/rc.conf:<br />
<code>hostname="howtobsd.com"</code></p>
<p>You also can change hostname without reboot by command:</p>
<p><code>#hostname howtobsd.com</code></p>
<p>but after reboot i will return on value in rc.conf</p>
<p>check current hostname:<br />
<code><br />
hostname</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/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/software/update-freebsd-ports-collection-with-cvsup.html</link>
		<comments>http://howtobsd.com/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/?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/software/update-freebsd-ports-collection-with-cvsup.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
