16
How to Use ITO System 情報ネットワーク特論 Takeshi Nanri (Research Institute for Information Technology, Kyushu University) 1

How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

How to Use ITO System情報ネットワーク特論

Takeshi Nanri

(Research Institute for Information Technology, Kyushu University)

1

Page 2: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

Overview of ITO System

2

Frontend(Private Cloud part)

384GB RAMx 160 nodes

12TB RAMx 4 nodes

6.9PF 3.0PFIntel Xeon x 2 x 2000 nodes

Intel Xeon x 2NVIDIA Tesla x 4x 128 nodes

24PB

InfiniBand EDR

Backend (Batch part)

Login nodes

Page 3: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

Choices of Ways to Use ITO System

• Login node• Mainly for fundamental operations,

such as editing files, compiling programsand submitting batch-jobs

• ITO portal• Fundamental operations via

Web interface

• Frontend• Interactive use, especially via GUI,

for operating or analyzing large data

• Backend• Batch-style use for large computation

ITOポータル Frontend

Backend

3

Login node

Page 4: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

Steps of Usage

1. Preparation1.1 Change initial password

1.2 (Windows only) Install MobaXterm

1.3 Create keys

1.4 Register the public key

2. Make reservation of a host on the Frontend

3. Login to the Login node

4. Login to the reserved host

4

Page 5: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

1.1 Change initial password

1. Open ITO portal pagehttps://ito-portal.cc.kyushu-u.ac.jp/itoportal

2. Login with the user ID and the initial password distributed

3. Enter a new password (twice)• more than 8 characters

5

Page 6: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

1.2 (Windows only) Install MobaXterm

1. Download MobaXtermhttps://mobaxterm.mobatek.net/

2. Install

6

Page 7: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

1.3 Create keys

1. Execute the following command in the "Terminal"

2. Enter a new passphrase to "Enter passphrase"

3. Enter the same passphrase to "Enter same passphrase again"

4. Use ls command to check the following files are createdito_key Private Keyito_key.pub Public Key

5. Write the lines on the right in the file .ssh/ssh_config of your home directory, and save.

7Go to 1.4 Register the Public Key

MacOS X

$ ssh-keygen -t rsa -f ito_key

Host * AddKeysToAgent yes UseKeychain yes IdentityFile ~/ito_key

Page 8: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

1.3 Create keys

1. Start MobaXterm

2. Click "Tools" icon, then click "MobaKeyGen"

3. Click "Generate", then keep moving mouse in the window untilthe green bar reaches to the right end.

4. Enter a new passphrase in "Key passphrase"

5. Enter the same passphrase in "Confirm passphrase"

8

Continue

Windows

Page 9: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

1.3 Create Keys (cont.)

1. Click "Save private key", then click "Desktop" in the left window,enter "ito_key" as the file name, and click "Save".

2. Select all the characters shown in the upper box under "Public key for pasting in to OpenSSH server" by dragging mouse from "ssh-rsa" at the top to "rsa-key-????????" (substitute ???????? to today's year, month and date), then click right button of the mouse in the selected area, and click "Copy".

9

Continue

Windows

Page 10: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

1.3 Create Keys (cont.)

1. Start Wordpad, click right button of the mouse in the text area, and click "Paste".

2. Click "File" of Wordpad, click "Save with new name",click "Desktop" in the left window, choose "Plain Text" as the "File Type",enter "ito_key.pub" as the file name and click "save".

3. Close Wordpad

4. Click "X" on the top-right corner of MobaXterm SSH Key Generator to close it.

10

Continue

Windows

Page 11: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

1.3 Create Keys (cont.)

1. Click "Setting" icon of MobaXterm, then click "SSH"

2. Choose 'Use Internal SSH agent "MobAgent"' of "SSH agent"

3. Click "+" on the right of "Load following keys in MobAgent"

4. Click "Desktop" on the left window, click "ito_key.ppt",and click "Open"

5. Close MobaXterm

11

Windows

Page 12: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

1.4 Register the public key

1. Open the following page: (this page is written in Japanese only)https://www.cc.kyushu-u.ac.jp/scp/system/ITO/02_login/2.html

2. Follow the description to register your public key.• Use your new password to login to the ITO portal

• Copy-and-paste your public key you have created in 1.3• MacOS X:

cat ito_key.pub

• Windows:Double click "ito_key.pub.txt" on the desktop.

12

Page 13: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

2. Make reservation of a host on the Frontend

1. Open the following page: (this page is written in Japanese only)https://ito-portal.cc.kyushu-u.ac.jp/itofront

2. Choose 「基本(仮想)」 and check the availability.

3. Click 「利用状況」 on the left, and check your current status• You can reserve the host on the frontend for "core-times-hours"

up to the amount shown in 「総利用コア時間積(残り)」.

4. Click 「予約表」, Choose 「基本(仮想)」 at 「日表示」,click the slot in the row of 「VSSl」 that is closes to the current time.

5. Enter your mail address, enter "1" as 「台数」 (the number of hosts).

6. Set the time 4 hours or more later than 「利用開始時刻」 as 「利用終了時刻」,and click 「予約作成」

7. Logout from the reservation system.13

Page 14: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

3. Login to the Login node

1. Start "Terminal"

2. Execute the following command:

3. Enter the passphrase you have entered at the creation of the keys.

14

MacOS X

$ ssh -A -Y [email protected]

Page 15: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

3. Login to the Login node

1. Start MobaXterm

2. Enter the passphrase you have entered at the creation of the keys.

3. Click "Session" and click "SSH"

4. Enter "ito.cc.Kyushu-u.ac.jp" as the "Remote host",check the box on the left of "Specify username",enter your user ID on the right, and click "OK"

15

Windows

Page 16: How to Use ITO Systemokaweb.ec.kyushu-u.ac.jp/lectures/in-ng/2017/pdf/ito-net...ito_key Private Key ito_key.pub Public Key 5. Write the lines on the right in the file .ssh/ssh_config

4. Login to the reserved host

1. Check the IP address of the reserved host• If you got an email which tells you that the host is available,

the address is written in the mail.

• Otherwise, you can check the address by logging in to the reservation systemhttps://ito-portal.cc.kyushu-u.ac.jp/itofront

• Click the reservation you made in step 2., and see the address.

2. Execute the following command from the login-node to login to the reserved host.

3. After confirming that your login is successful,logout from the frontend, then logout from the login node.

16

ito$ ssh -A -Y IP_address_of_the_reserved_host