Up:[[Tutorial]]    Previous:[[CygwinによるSSH接続]]     Next: [[テスト実行]]  
#contents

*SSH接続 [#w22a0f9d]
ここではビューワーからサーバへSSH接続する方法を説明します。
* SSH Connection by SIGViewer [#l2a5ade9]

※SSHポートフォワーディングについてはCygwin等を用いてコマンドラインで同様の設定を行うことができます。CygwinによるSSH接続を利用する場合はこのページは飛ばしてください。データ通信速度はコマンドラインでの設定のほうが若干安定しています。詳しくは前ページ[[CygwinによるSSH接続]]を参考ください。
If you cannot use general port numbers such as 9000, you should use port forwarding.
In this tutorial, a way to establish the port forwarding using the SIGViewer, is introduced.

**RSA鍵の設定 [#z86400fc]
以下ではサーバと接続する際にRSA公開鍵を使った認証を行うことを前提として説明します。
すでにキーを作成していて、それを用いてサーバにログインできる場合は[[鍵の設置(クライアント)>#w54fc1bc]]に進んでください。新たにキーを作成する必要はありません。
***鍵の作成 [#ya5de3ae]
RSA鍵を使って認証を行うためにまず秘密鍵と公開鍵のペアを作成します。
puttygen等のツールをダウンロードしてRSA鍵を作成します。(※詳しい作成方法の説明は省略します。)このとき作成された秘密鍵は"id_rsa"、公開鍵は"id_rsa.pub"というファイル名で保存してください。
※This function is unfortunately unstable. If you can use general port forwarding method such as using Cygwin, it is recommended.

Cygwinのコマンドラインで作成する場合は以下のように入力します。
** Configuration of RSA key [#ob76a36c]

The SIGServer has authorization function based ond RSA public key to communicate with the SIGViewer.
If you already have a RSA public key, you don't need to create new key; please go to (Set of the public key)

*** Creation of RSA public key [#l524daf5]

First, create the both of public key and private key based on open-ssh.
Save the private key as "id_rsa", the public key as "id_rsa.pub".

If you use openssh on cygwin, the following command will create the keys.

 $ ssh-keygen -t rsa

*** Set of the public key on a server [#oe8e76da]

***鍵の設置(サーバ) [#t84a26af]
キーを作成したら公開鍵をサーバ側に置く必要があります。まだログインできないという方は管理者に以下の作業をお願いしてください。
You should put your public key on the server machine on which the SIGVerse is execute.
If you don't have root permission, please ask your administrator.

サーバ側の
自分のホームディレクトリの下に.sshというディレクトリを作成し、
If you don't have .ssh directory on your home directory, create it.

 $ mkdir ~/.ssh/
その中にauthorized_keysという名前に修正して保存しておきます。
 $ mv id_rsa.pub ~/.ssh/
 $ mv ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
 $ chmod 600 ~/.ssh/authorized_keys

***鍵の設置(クライアント) [#w54fc1bc]
Add your public key to the authorized_keys

次にクライアント側でも秘密鍵、公開鍵をそれぞれ所定の場所に置きます。SIGViewerのインストール先の以下のフォルダの中に置きます。
 $ cat id_rsa.pub >> ~/.ssh/authorized_keys
 $ chmod 600 ~/.ssh/authorized_keys

(SIGViewerインストール先)\SIGViewer-<version>\SIGViewer\.ssh
*** Set of the private key on a client PC [#tdf6d48f]

※(SIGViewerインストール先)はデフォルトではC:\Program Files
Put your private key at the following directory under the directory you installed the SIGViewer

これで準備は完了です。
(A install directory of SIGViewer)\SIGViewer\.ssh\

Up:[[Tutorial]]    Previous:[[CygwinによるSSH接続]]     Next: [[テスト実行]] 
If you use a 32bit Windows, the (A install directory of SIGViewer) is C:\Program Files\SIGViewer_<version>

*Old Version [#y16741d0]
If you use a 64bit Windows, the (A install directory of SIGViewer) is C:\Program Files (x86)\SIGViewer_<version>

-[[SSH接続(v120330, v1.4.8)]]
#counter

Front page   Edit Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes