Difference between revisions of "How to access the cluster with MobaXterm"

From ScientificComputing
Jump to: navigation, search
 
(20 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
<tr valign=top>
 
<tr valign=top>
 
<td style="width: 20%;">
 
<td style="width: 20%;">
Start MobaXterm
+
Start MobaXterm and create a session
 
</td>
 
</td>
 
<td style="width: 80%; text-align: left">
 
<td style="width: 80%; text-align: left">
[[Image:start_moba.png|600px]]
+
[[Image:moba_start.png|600px]]
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 15: Line 15:
 
<tr valign=top>
 
<tr valign=top>
 
<td style="width: 20%;">
 
<td style="width: 20%;">
Enter Euler hostname (euler.ethz.ch)
+
Select an SSH session and enter the Euler hostname (euler.ethz.ch)
 +
 
 +
This session is saved automatically under the hostname.
 
</td>
 
</td>
 
<td style="width: 80%;">
 
<td style="width: 80%;">
[[Image:start_ssh_session.png|600px]]
+
[[Image:moba_start_ssh_session.png|600px]]
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 27: Line 29:
 
</td>
 
</td>
 
<td style="width: 80%;">
 
<td style="width: 80%;">
[[Image:login_with_password.png|600px]]
+
[[Image:moba_login_with_password.png|600px]]
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 37: Line 39:
 
<td style="width: 80%;">
 
<td style="width: 80%;">
 
[[Image:moba_logged_in_with_password.png|600px]]
 
[[Image:moba_logged_in_with_password.png|600px]]
 +
</td>
 +
</tr>
 +
</table>
 +
 +
== Session settings ==
 +
 +
<table style="width: 100%;">
 +
<tr valign=top>
 +
<td style="width: 20%;">
 +
Edit session
 +
</td>
 +
<td style="width: 80%;">
 +
[[Image:moba_edit_session.png|300px]]
 +
</td>
 +
</tr>
 +
 +
<tr valign=top>
 +
<td style="width: 20%;">
 +
You can specify username and session name
 +
</td>
 +
<td style="width: 80%;">
 +
[[Image:moba_edit_session2.png|600px]]
 +
</td>
 +
</tr>
 +
</table>
 +
 +
== SSH keys ==
 +
=== Create SSH keys ===
 +
<table style="width: 100%;">
 +
<tr valign=top>
 +
<td style="width: 20%;">
 +
Start MobaKeyGen
 +
</td>
 +
<td style="width: 80%;">
 +
[[Image:moba_ssh_keys_create0.png|600px]]
 +
</td>
 +
</tr>
 +
 +
<tr valign=top>
 +
<td style="width: 20%;">
 +
Select ed25519 algorithm and generate SSH keys
 +
</td>
 +
<td style="width: 80%;">
 +
[[Image:moba_ssh_keys_create1.png|600px]]
 +
</td>
 +
</tr>
 +
 +
<tr valign=top>
 +
<td style="width: 20%;">
 +
Enter a passphrase, and save the public key (optional) and the public key (compulsory)
 +
</td>
 +
<td style="width: 80%;">
 +
[[Image:moba_ssh_keys_create2.png|600px]]
 +
</td>
 +
</tr>
 +
</table>
 +
 +
=== Add the private key to a session ===
 +
<table style="width: 100%;">
 +
<tr valign=top>
 +
<td style="width: 20%;">
 +
Edit session
 +
</td>
 +
<td style="width: 80%;">
 +
[[Image:moba_edit_session1.png|300px]]
 +
</td>
 +
</tr>
 +
 +
<tr valign=top>
 +
<td style="width: 20%;">
 +
Enable using private key and select the private key file
 +
</td>
 +
<td style="width: 80%;">
 +
[[Image:moba_ssh_keys_add_private_key.png|600px]]
 +
</td>
 +
</tr>
 +
</table>
 +
 +
=== Copy the public key to the cluster ===
 +
<table style="width: 100%;">
 +
<tr valign=top>
 +
<td style="width: 20%;">
 +
Log in to the cluster and open the file $HOME/.ssh/authorized_keys with a text editor
 +
 +
This file should have the reading and writing permission only for you, the owner of the file (-rw-------). Otherwise, you can change the permission with the command
 +
chmod 600 $HOME/.ssh/authorized_keys
 +
</td>
 +
<td style="width: 80%;">
 +
[[Image:moba_ssh_keys_copy0.png|600px]]
 +
</td>
 +
</tr>
 +
 +
<tr valign=top>
 +
<td style="width: 20%;">
 +
Copy the public key to the file $HOME/.ssh/authorized_keys on the cluster
 +
 +
The next time you start the session, enter the passphrase to log in to the cluster
 +
</td>
 +
<td style="width: 80%;">
 +
[[Image:moba_ssh_keys_copy1.png|900px]]
 +
</td>
 +
</tr>
 +
</table>
 +
 +
== Add SSH key to MobAgent for auto login ==
 +
<table style="width: 100%;">
 +
<tr valign=top>
 +
<td style="width: 20%;">
 +
Go to Configuration
 +
</td>
 +
<td style="width: 80%;">
 +
[[Image:moba_ssh_agent_setup0.png|600px]]
 +
</td>
 +
</tr>
 +
 +
<tr valign=top>
 +
<td style="width: 20%;">
 +
Enable '''Use internal SSH agent "MobAgent"''' and '''Forward SSH agents'''
 +
 +
Click the plus sign to select the private key
 +
</td>
 +
<td style="width: 80%;">
 +
[[Image:moba_ssh_agent_setup1.png|600px]]
 +
</td>
 +
</tr>
 +
 +
<tr valign=top>
 +
<td style="width: 20%;">
 +
Restart MobaXterm to apply the modifications.
 +
</td>
 +
<td style="width: 80%;">
 +
[[Image:Moba_dialog_box_restart_moba.png|400px]]
 +
</td>
 +
</tr>
 +
 +
<tr valign=top>
 +
<td style="width: 20%;">
 +
Enter the passphrase at the start of MobaXterm
 +
 +
Then, you can start an SSH session without entering password or passphrase
 +
</td>
 +
<td style="width: 80%;">
 +
[[Image:Moba_dialog_box_enter_passphrase.png|400px]]
 
</td>
 
</td>
 
</tr>
 
</tr>
 
</table>
 
</table>

Latest revision as of 08:02, 27 January 2022

< How to access the cluster


Basic login

Start MobaXterm and create a session

Moba start.png

Select an SSH session and enter the Euler hostname (euler.ethz.ch)

This session is saved automatically under the hostname.

Moba start ssh session.png

Enter your ETH account username and password

Moba login with password.png

Upon a successful login, you can see the welcome banner and links to this Wiki, Smartdesk and cluster support

Moba logged in with password.png

Session settings

Edit session

Moba edit session.png

You can specify username and session name

Moba edit session2.png

SSH keys

Create SSH keys

Start MobaKeyGen

Moba ssh keys create0.png

Select ed25519 algorithm and generate SSH keys

Moba ssh keys create1.png

Enter a passphrase, and save the public key (optional) and the public key (compulsory)

Moba ssh keys create2.png

Add the private key to a session

Edit session

Moba edit session1.png

Enable using private key and select the private key file

Moba ssh keys add private key.png

Copy the public key to the cluster

Log in to the cluster and open the file $HOME/.ssh/authorized_keys with a text editor

This file should have the reading and writing permission only for you, the owner of the file (-rw-------). Otherwise, you can change the permission with the command

chmod 600 $HOME/.ssh/authorized_keys

Moba ssh keys copy0.png

Copy the public key to the file $HOME/.ssh/authorized_keys on the cluster

The next time you start the session, enter the passphrase to log in to the cluster

Moba ssh keys copy1.png

Add SSH key to MobAgent for auto login

Go to Configuration

Moba ssh agent setup0.png

Enable Use internal SSH agent "MobAgent" and Forward SSH agents

Click the plus sign to select the private key

Moba ssh agent setup1.png

Restart MobaXterm to apply the modifications.

Moba dialog box restart moba.png

Enter the passphrase at the start of MobaXterm

Then, you can start an SSH session without entering password or passphrase

Moba dialog box enter passphrase.png