Mac OSXでSubversion + SSH公開鍵認証の設定
ちなみにCentOSでSubversionをインストールするには
#yum install subversion
だけで簡単にインストールできます。
1.クライアント(MacOSX)にsubversionのインストール
http://www.collab.net/downloads/community/
2.クライアント(MacOSX)にSCPlugin-0.7.1のインストール
http://scplugin.tigris.org/servlets/ProjectDocumentList
SCPluginをインストールした後、一度Macを再起動します。
3.SSH公開鍵認証の設定
[クライアント(MacOSX)]
$cd /Users/hogehoge/.ssh
$ssh-keygen -t dsa
Enter file in which to save the key (/Users/yuji/.ssh/id_dsa):identity
Enter passphrase (empty for no passphrase): 空のまま
Enter same passphrase again: 空のまま
$scp ./identity.pub hogehoge@xxx.xxx.xxx.xxx:/home/hogehoge/.ssh/id_dsa.pub
[サーバ(CentOS5.1)]
$cd /home/hogehoge/.ssh
$su root
#vi /etc/ssh/sshd_config
PermitRootLogin no
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
#RhostsRSAAuthentication no
#PasswordAuthentication yes
$chmod 755 ../.ssh
$touch authorized_keys
$chmod 600 authorized_keys
$cat id_dsa.pub >> authorized_keys
$su root
#/sbin/service sshd restart
$ssh hogehoge@xxx.xxx.xxx.xxx
4.最後はチェックアウトできるか確認します。
クライアント(MacOSX)で任意のフォルダに移動して、右クリック
[その他] > [Subversion] > [Checkout]
を選択して下記のように設定して「Checkout」すれば完了!!
レポジトリURL:svn+ssh://hogehoge@xxx.xxx.xxx.xxx/home/hogehoge/svn/repos/trunk
ユーザ:Anonymous
続きを読む >
Categories
latest entries
Copyright © 2008 hidamari.biz All Rights Reserved.
