<?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>Sys-Admin Information&#039;s &#187; SSH</title>
	<atom:link href="http://sysinfo.bascomp.org/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysinfo.bascomp.org</link>
	<description></description>
	<lastBuildDate>Fri, 23 Apr 2010 09:43:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ssh in Solaris</title>
		<link>http://sysinfo.bascomp.org/2008/01/ssh-in-solaris/</link>
		<comments>http://sysinfo.bascomp.org/2008/01/ssh-in-solaris/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 04:42:03 +0000</pubDate>
		<dc:creator>Gun nee</dc:creator>
				<category><![CDATA[SMF]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2008/01/28/ssh-in-solaris/</guid>
		<description><![CDATA[This post is about service ssh in solaris 9 or 10
Solaris 9
Disable service ssh ?

bash&#62;  /etc/init.d/sshd stop
bash&#62; /etc/rc3.d/S89sshd stop

Enable service ssh ?

bash&#62; /etc/init.d/sshd start
bash&#62; /etc/rc3.d/S89sshd start

Refresh service ssh ?

bash&#62; kill -HUP `cat /var/run/sshd.pid`

Solaris 10
First you can check service ssh with command

bash&#62; svcs &#124; grep ssh
online         Jan_21 [...]]]></description>
			<content:encoded><![CDATA[<p>This post is about service ssh in solaris 9 or 10</p>
<p><strong>Solaris 9</strong><br />
Disable service ssh ?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span>  <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>sshd stop
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc3.d<span style="color: #000000; font-weight: bold;">/</span>S89sshd stop</pre></div></div>

<p>Enable service ssh ?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>sshd start
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc3.d<span style="color: #000000; font-weight: bold;">/</span>S89sshd start</pre></div></div>

<p>Refresh service ssh ?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-HUP</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>sshd.pid<span style="color: #000000; font-weight: bold;">`</span></pre></div></div>

<p><strong>Solaris 10</strong><br />
First you can check service ssh with command</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcs <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span>
online         Jan_21   svc:<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span>:default</pre></div></div>

<p>If status ssh offline, you can make online with command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm <span style="color: #7a0874; font-weight: bold;">enable</span> <span style="color: #660033;">-t</span> network<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span>:default
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>svc<span style="color: #000000; font-weight: bold;">/</span>method<span style="color: #000000; font-weight: bold;">/</span>sshd start</pre></div></div>

<p>Disable service ssh ?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm disable <span style="color: #660033;">-t</span> network<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span>:default</pre></div></div>

<p>Restart service ssh ?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm restart network<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span>:default
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>svc<span style="color: #000000; font-weight: bold;">/</span>method<span style="color: #000000; font-weight: bold;">/</span>sshd restart</pre></div></div>

<p>Refresh service ssh ?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm refresh network<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ssh</span>:default</pre></div></div>

<p>For a root enable connect to host via ssh service</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssh<span style="color: #000000; font-weight: bold;">/</span>sshd_config</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[....]
# Valid options are yes, without-password, no.
PermitRootLogin no
[....]</pre></div></div>

<p>Replace <strong>no</strong> with <strong>yes</strong>, after that save the edited configuration.<br />
Don't forget for the restart service ssh, after edit configuration.</p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/01/ssh-in-solaris/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
