<?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>Phat Site Blog &#187; ssh</title>
	<atom:link href="http://blog.phatsite.com/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.phatsite.com</link>
	<description>Web Stuff is Easy</description>
	<lastBuildDate>Sun, 29 Jan 2012 20:00:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting up SSH for New Users</title>
		<link>http://blog.phatsite.com/server-maintenance/setting-up-ssh-for-new-users/</link>
		<comments>http://blog.phatsite.com/server-maintenance/setting-up-ssh-for-new-users/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 05:09:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server Maintenance]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.phatsite.com/?p=18</guid>
		<description><![CDATA[Make sure you are root, let&#8217;s get cracking!
/usr/sbin/useradd username &#8211; create the user
su username
passwd username &#8211; set the password
When you log into your new created user, you will create hidden directory called &#8220;.ssh&#8221;.  In this directory, you will also create a  file called &#8220;authorized_keys&#8221;.

mkdir .ssh
cd .ssh
touch authorized_keys
You will need to generate a key from your [...]]]></description>
			<content:encoded><![CDATA[<p>Make sure you are root, let&#8217;s get cracking!</p>
<p><em>/usr/sbin/useradd username</em> &#8211; create the user<em><br />
su username<br />
</em><em>passwd username</em> &#8211; set the password</p>
<p>When you log into your new created user, you will create hidden directory called &#8220;.ssh&#8221;.  In this directory, you will also create a  file called &#8220;authorized_keys&#8221;.<br />
<em><br />
mkdir .ssh<br />
cd .ssh<br />
touch authorized_keys</em></p>
<p>You will need to generate a key from your local machine to use to authenticate when you login.  On your local machine, let&#8217;s get generating! Use command &#8220;ssh-keygen -t rsa&#8221;.  You will be prompted for a password.  This is optional.  Once completed, a public and private key will be saved in the &#8220;~/.ssh&#8221; folder.</p>
<p>On your remote server, you need to copy the public key information.</p>
<p><em>scp ~/.ssh/id_rsa.pub myremoteuser@11.22.33.44:~/<br />
cat id_rsa.pub &gt;&gt; ~/.ssh/authorized_keys<br />
rm id_rsa.pub<br />
chmod 700 ~/.ssh<br />
chmod 600 ~/.ssh/authorized_keys </em></p>
<p>Once, you add this in, make sure the user is setup in the &#8216;AllowUsers&#8217; of SS for SSH Access.  This is set in the <em>/etc/ssh/sshd_config</em> file.  Since you are using SSH keys, you don&#8217;t need a password anymore, so set &#8220;PasswordAuthentication yes&#8221; to &#8220;PasswordAuthentication no&#8221;.</p>
<p><em>/usr/sbin/visudo</em> &#8211; If you want to give some sudo permissions for this user.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phatsite.com/server-maintenance/setting-up-ssh-for-new-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a New User in CentOS 5</title>
		<link>http://blog.phatsite.com/server-maintenance/creating-a-new-user-in-centos-5/</link>
		<comments>http://blog.phatsite.com/server-maintenance/creating-a-new-user-in-centos-5/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 23:12:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server Maintenance]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[users]]></category>

		<guid isPermaLink="false">http://blog.phatsite.com/?p=5</guid>
		<description><![CDATA[Creating a New User in CentOS 5
1. SSH to your server as root
2. Create a user:  /usr/sbin/useradd newuser
3. Expire ther user immediately: /usr/bin/chage -d 0 newuser
4. Set blank password: /usr/sbin/usermod -p &#8220;&#8221; newuser
5. If you want to set the user&#8217;s password:
* su newuser
* passwd
Changing password for user newuser
New UNIX password: &#60;enter your password&#62;
Retype new UNIX [...]]]></description>
			<content:encoded><![CDATA[<p>Creating a New User in CentOS 5</p>
<p>1. SSH to your server as root<br />
2. Create a user:  /usr/sbin/useradd newuser<br />
3. Expire ther user immediately: /usr/bin/chage -d 0 newuser<br />
4. Set blank password: /usr/sbin/usermod -p &#8220;&#8221; newuser<br />
5. If you want to set the user&#8217;s password:<br />
* su newuser<br />
* passwd<br />
Changing password for user newuser<br />
New UNIX password: &lt;enter your password&gt;<br />
Retype new UNIX password: &lt;enter your password&gt;<br />
passwd: all authentication tokens updated successfully.</p>
<p>That&#8217;s it!  From there on, you have a user that can be used to host your website or blog!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phatsite.com/server-maintenance/creating-a-new-user-in-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

