<?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>A Sysadmins blog &#187; ESX</title>
	<atom:link href="http://paul.messinthecorner.com/tag/esx/feed/" rel="self" type="application/rss+xml" />
	<link>http://paul.messinthecorner.com</link>
	<description>I once was 404, but now am 200.</description>
	<lastBuildDate>Fri, 23 Oct 2009 09:33:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SSH Access as root to your ESX 3.5 Server</title>
		<link>http://paul.messinthecorner.com/2008/ssh-access-as-root-to-your-esx-35-server/</link>
		<comments>http://paul.messinthecorner.com/2008/ssh-access-as-root-to-your-esx-35-server/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 09:04:01 +0000</pubDate>
		<dc:creator>pdeaudney</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[systems administration]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://paul.messinthecorner.com/?p=30</guid>
		<description><![CDATA[Lately I have been playing with ESX 3.5 and ESXi getting ready for a deployment at $work. Bellow is a tip to people want access using SSH keys to the root account.
As described in RTFM Education&#8217;s ESX guide it is possible to allow root user SSH/SCP/SFTP access to your ESX 3.5 server.
Disabling Auditing on ROOT [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I have been playing with ESX 3.5 and ESXi getting ready for a deployment at <a href="http://www.anchor.com.au" target="_blank">$work</a>. Bellow is a tip to people want access using SSH keys to the root account.</p>
<p>As described in <a href="http://www.rtfm-ed.co.uk/?p=261" target="_blank">RTFM Education&#8217;s ESX guide</a> it is possible to allow root user SSH/SCP/SFTP access to your ESX 3.5 server.</p>
<blockquote><p>Disabling Auditing on ROOT (Not Recommended)<br />
Note:<br />
• Some applications do not support levitation to a higher plain &#8211; for example<br />
WinSCP. Sure you could use WinSCP to gain access as an ordinary user,<br />
but then you might lack permission to copy the files you need. If you try<br />
to logon as root, WinSCP will give you access denied.<br />
• If you wish to disable the restriction on ROOT not being allowed direct<br />
access using SSH then carry out the following task. I wouldn’t recommend<br />
doing this as you will loose enforcement of your audit trail.<br />
1. nano –w /etc/ssh/sshd_config<br />
2. Locate: PermitRootLogin no<br />
3. Place a # in front of PermitRootLogin no like so: #PermitRootLogin no<br />
4. Exit Nano &amp; Save the file<br />
5. Restart sshd with service sshd restart</p></blockquote>
<p>You just need to modify the SSH daemon configuration. The described step will allow your root account open to logins with a password. In todays internet this is less than a great idea.</p>
<p>Personally, I like console logins as root to some servers using SSH keys. To enable root logins that allow SSH keys but disallow passwords edit your /etc/ssh/sshd_config as follows</p>
<blockquote>
<p style="text-align: left;">1. Change the line readiing &#8220;<code>PermitRootLogin no</code>&#8221; to &#8220;<code>PermitRootLogin without-password</code>&#8220;</p>
<p style="text-align: left;">2. Add the line &#8220;<code>PermitEmptyPasswords no</code>&#8221; underneath.</p>
<p style="text-align: left;">3. Save and exit</p>
<p style="text-align: left;">4. Restart SSHD &#8220;<code>service sshd restart</code>&#8220;</p>
</blockquote>
<p style="text-align: left;">Now you will need to place your ssh public key in the file system path &#8220;/root/.ssh/authorized_keys&#8221;</p>
<p style="text-align: left;">For further security you can restrict what hosts the key can login from. This is done by placing &#8220;from=hostname.domain.com&#8221; in front off the public key. It must all be on the one line.</p>
<p style="text-align: left;">Now you can use your SSH key to authenticate as the root user.</p>
<p style="text-align: left;">This guide assumes you have another user that has SSH access and can &#8220;su&#8221; to root on the ESX host. There is plenty of information in google on how to do that already. It also assumes you have a SSH keypair or can figure out how to generate them.</p>
]]></content:encoded>
			<wfw:commentRss>http://paul.messinthecorner.com/2008/ssh-access-as-root-to-your-esx-35-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
