#contents

** Configuration of Tera Term [#ga29ae3a]

*** Start up Tera Term [#q3361327]
This page explains how to connect to server via port forwarding with Tera Term.

Please execute Tera Term.

#ref(tera_1.jpg)
#br
Click cancel button if the system require hostname to be connected.
Click cancel button if the system requires hostname to be connected.

Next, select SSHForwarding in the Setup field of menubar.

#ref(tera_2.jpg)
#br
***Configuration of port forwarding [#p139e24a]

Click Add button if dialog window for port forwarding. 
Click Add button of dialog window for port forwarding. 

#ref(tera_3.jpg)
#br
Input the following information
+Input port number of localhost(client) at the 'Forward local port' field
(You can choose any port number avoiding used number)
In this case, 9000 is choosen.
+to remote machineのところにサーバのホスト名(socio.iir.nii.ac.jp)を入力します。
+portのところにサーバ側で使用するポート番号を入力します。今回はテストのため80番としました。
In this case, 9000 is chosen.
+Input hostname of server (socio.iir.nii.ac.jp) at the 'to remote machine' field
+Input port number of server. In this case, 80 is chosen as a test.

#ref(tera_5.jpg)
#br
入力が終わったらokボタン(2回)を押して設定を完了します。
Click OK button twice to quit the setup after the input.

次にwebブラウザを起動してurl入力欄に
Next, input the following URL at your web browser.
http://localhost:9000
と入力します。
webページが見れたら、ポートフォワーディングは成功です。

***SIGVerseによる動作確認 [#wdd68f15]
ポートフォワーディングに成功したら、次はSIGViewerによる動作確認を行います。(SIGVerseの起動方法およびSIGViewerのインストール方法は別ページ参照)
再びSetupメニューのSSH Forwardingを選択してEditをクリックし、先ほど80番と指定したポート番号をサーバ側でSIGVerseを起動するポート番号に変更します。ここでは9001番に指定しました。(サーバ側またはクライアント側の空いているポート番号を確認するためにはnetstat -an コマンドで確認することができます。)
If you can see the top page of the server machine, configuration of the port forwarding has succeeded.

*** Confirmation on SIGVerse [#h313eea9]

Click 'Edit' button of the SSH Forwarding in Setup menu.
Change the port number 80 to destination port you will use at the SIGVerse server. In this case, 9001 is chosen. (You can check unused port number with netstat -an)
#ref(tera_6.jpg)
このとき接続するたびに設定するのが面倒なのでSetupメニューのSave setup...で設定を保存しておきます。
Save configuration with 'Save setup...' in Setup menu to avoid input of the same information in the next time.

次にTera Termでサーバにログイン(Fileメニュー→New connection)し先ほど設定したサーバ側のポート番号(9001)を指定してSIGVerseを起動します。
Next, login to the SIGVerse server with Tera Term, select File menu->New connection, input the destination port number (ex.9001), then execute SIGVerse server

    ./sigserver.sh -p 9001
#br
次にSIGViewerを起動してcommタブのconnectionの枠の中にあるserver host name にlocalhostと入力し、server port No に先ほど指定したlocalhostのポート番号を入力します。
Execute SIGViewer, input localhost at the 'server host name' field in 'connection' frame in 'comm' tab, then input the local port number which you chose before.
#ref(tera_7.jpg)

そして、Connect to SimServerをクリックしてSIGViewerからサーバに接続されていることを確認してください。
Finally, click the 'Connect to SimServer' to confirm that the SIGViewer is connected to the SIGVerse server.


Front page   New List of pages Search Recent changes   Help   RSS of recent changes