<?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>ソメログ &#187; ssh</title>
	<atom:link href="http://s.arw.cc/tag/ssh/feed" rel="self" type="application/rss+xml" />
	<link>http://s.arw.cc</link>
	<description>昔のあだ名はマイコンだった。</description>
	<lastBuildDate>Sat, 04 Feb 2012 22:04:44 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Coreserverのssh登録を自動化する</title>
		<link>http://s.arw.cc/2009/03/10/log:63/coreserver%e3%81%aessh%e7%99%bb%e9%8c%b2%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b</link>
		<comments>http://s.arw.cc/2009/03/10/log:63/coreserver%e3%81%aessh%e7%99%bb%e9%8c%b2%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b#comments</comments>
		<pubDate>Mon, 09 Mar 2009 15:34:17 +0000</pubDate>
		<dc:creator>some</dc:creator>
				<category><![CDATA[記事]]></category>
		<category><![CDATA[coreserver]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://s.arw.cc/2009/03/10/log:63/coreserver%e3%81%aessh%e7%99%bb%e9%8c%b2%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b-2/</guid>
		<description><![CDATA[Coreserverでsshを利用するには、その都度ホスト登録が必要なんだけど、これって結構面倒なんだよね・・・。なのでスクリプトで更新できればな～と思いググってみたら希望通りのものがありました！ [From Coreserver(XREAも?)のssh登録が面倒なので - WebProgを極めて居酒屋を開発する] ↑こちらで公開されているPHPスクリプトをCoreserverUtil.phpという名前で保存する。そして以下の３行を自分の環境に合わせて変更する。 Rhaco::constant('USERNAME', 'userid'); Rhaco::constant('PASSWORD', 'pass'); Rhaco::constant('SERVER', 's13.coreserver.jp'); また、このスクリプトではRhacoというフレームワークが使用されているのでそれもダウンロードしておく。ディレクトリ構成はこんな感じにしてみた。 /Users/[ユーザID]/Util/ ├─CoreserverUtil.php └─rhaco └─Rhaco.php（およびその他のファイル） あとはターミナルから php ~/Util/CoreserverUtil.php とすれば何分か後にはsshが利用できるようになる。 素敵なスクリプトを公開してくださってありがとうございます！！ 後はcronと公開鍵の設定をすればもっと便利になるはず。それはまた次回・・・。 [2009.3.11追記] Coreserverのssh登録を自動化する -その２-に続きます。<div class="addthis_toolbox addthis_default_style " addthis:url='http://s.arw.cc/2009/03/10/log:63/coreserver%e3%81%aessh%e7%99%bb%e9%8c%b2%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b' addthis:title='Coreserverのssh登録を自動化する '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Coreserverでsshを利用するには、その都度ホスト登録が必要なんだけど、これって結構面倒なんだよね・・・。なのでスクリプトで更新できればな～と思いググってみたら希望通りのものがありました！</p>
<blockquote cite="http://d.hatena.ne.jp/riaf/20080901/1220251618"><p>
  [From <a href="http://d.hatena.ne.jp/riaf/20080901/1220251618"><cite>Coreserver(XREAも?)のssh登録が面倒なので - WebProgを極めて居酒屋を開発する</cite></a>]
</p></blockquote>
<p>↑こちらで公開されているPHPスクリプトをCoreserverUtil.phpという名前で保存する。そして以下の３行を自分の環境に合わせて変更する。</p>
<pre lang='php'>
Rhaco::constant('USERNAME', 'userid');
Rhaco::constant('PASSWORD', 'pass');
Rhaco::constant('SERVER', 's13.coreserver.jp');
</pre>
<p>また、このスクリプトでは<a href="http://rhaco.org/">Rhaco</a>というフレームワークが使用されているのでそれもダウンロードしておく。ディレクトリ構成はこんな感じにしてみた。</p>
<p>/Users/[ユーザID]/Util/<br />
├─CoreserverUtil.php<br />
└─rhaco<br />
    └─Rhaco.php（およびその他のファイル）</p>
<p>あとはターミナルから</p>
<pre lang='bash'>php ~/Util/CoreserverUtil.php</pre>
<p>とすれば何分か後にはsshが利用できるようになる。</p>
<p>素敵なスクリプトを公開してくださってありがとうございます！！</p>
<p>後はcronと公開鍵の設定をすればもっと便利になるはず。それはまた次回・・・。</p>
<p>[2009.3.11追記]<br />
<a href="http://s.arw.cc/2009/03/11/log:66/coreserver%e3%81%aessh%e7%99%bb%e9%8c%b2%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b-%e3%81%9d%e3%81%ae%ef%bc%92">Coreserverのssh登録を自動化する -その２-</a>に続きます。</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://s.arw.cc/2009/03/10/log:63/coreserver%e3%81%aessh%e7%99%bb%e9%8c%b2%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b' addthis:title='Coreserverのssh登録を自動化する '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://s.arw.cc/2009/03/10/log:63/coreserver%e3%81%aessh%e7%99%bb%e9%8c%b2%e3%82%92%e8%87%aa%e5%8b%95%e5%8c%96%e3%81%99%e3%82%8b/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using disk: enhanced
Database Caching 1/10 queries in 0.154 seconds using disk: basic
Object Caching 281/294 objects using disk: basic

Served from: s.arw.cc @ 2012-02-06 19:54:47 -->
