Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
pandoc:introduction-to-vsc:02_connecting_to_vsc:connecting_to_vsc [2020/10/20 08:09] – Pandoc Auto-commit pandoc | pandoc:introduction-to-vsc:02_connecting_to_vsc:connecting_to_vsc [2023/03/27 08:22] (current) – [Connecting to VSC] goldenberg | ||
---|---|---|---|
Line 7: | Line 7: | ||
====== Project and User Account ====== | ====== Project and User Account ====== | ||
- | {{..: | + | {{.: |
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | In order to be able to login VSC you need * a user account ➠ project leader (re-)sets * username * [[https:// | + | In order to be able to login VSC you need |
+ | | ||
+ | * ➠ project leader (re-)sets | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | * physically | ||
+ | | ||
+ | | ||
- | |||
- | ---- | ||
====== Project and User Account ====== | ====== Project and User Account ====== | ||
- | {{..: | + | {{.: |
Let us have a look at the first part, in the figure above denoted by a green box: connecting from the local machine to the remote VSC login nodes. | Let us have a look at the first part, in the figure above denoted by a green box: connecting from the local machine to the remote VSC login nodes. | ||
Line 33: | Line 40: | ||
===== Terminals: ===== | ===== Terminals: ===== | ||
- | linux: xterm, mac: terminal ## alternative terminal connection < | + | linux: xterm, mac: terminal ## alternative terminal connection < |
As stated before, putty was originally designed for the Windows platform, however, can also be used on other platforms, you can download it from: https: | As stated before, putty was originally designed for the Windows platform, however, can also be used on other platforms, you can download it from: https: | ||
Line 43: | Line 50: | ||
====== Connecting to VSC ====== | ====== Connecting to VSC ====== | ||
- | {{..: | + | {{.: |
- | + | ||
- | VSC-3 has 5 login servers named l31, …, l35. | + | |
VSC-4 has 10 named l40, …, l49. | VSC-4 has 10 named l40, …, l49. | ||
+ | |||
+ | VSC-5 has 10 named l50, …, l56. (57 to 59 are currently unavailable) | ||
Login via | Login via | ||
<code bash> | <code bash> | ||
- | # VSC-3 | ||
- | [...]$ ssh < | ||
# VSC-4 | # VSC-4 | ||
- | [...]$ ssh < | + | [...]$ ssh <me>@vsc4.vsc.ac.at |
+ | # VSC-5 | ||
+ | [...]$ ssh < | ||
</ | </ | ||
- | assigns you to a VSC-3 oder VSC-4 login node per round robin manner. | + | assigns you to a VSC-4 oder VSC-5 login node per round robin manner. |
+ | |||
+ | In PuTTY you first configure the connection like in the image at the top, and when connecting, you only need to type the username and not the server address too. | ||
**Note:** In the following we use “me” as representative username, please replace that by your own username and omit the “smaller/ | **Note:** In the following we use “me” as representative username, please replace that by your own username and omit the “smaller/ | ||
Line 67: | Line 76: | ||
====== Connecting to VSC ====== | ====== Connecting to VSC ====== | ||
- | {{..: | + | {{.: |
You may have reason to login to a specific login server: | You may have reason to login to a specific login server: | ||
<code bash> | <code bash> | ||
- | # VSC-3 | ||
- | [...]$ ssh < | ||
- | .. | ||
- | [...]$ ssh < | ||
# VSC-4 | # VSC-4 | ||
[...]$ ssh < | [...]$ ssh < | ||
.. | .. | ||
[...]$ ssh < | [...]$ ssh < | ||
+ | # VSC-5 | ||
+ | [...]$ ssh < | ||
+ | .. | ||
+ | [...]$ ssh < | ||
</ | </ | ||
This may be necessary for trouble shooting. | This may be necessary for trouble shooting. | ||
Line 138: | Line 147: | ||
====== again and again ====== | ====== again and again ====== | ||
- | {{..: | + | {{.: |
The OTP-key holds for 12h and for the IP you login. However, each time you want to have a new shell on the cluster you will be asked to type the password. Is there a way out? | The OTP-key holds for 12h and for the IP you login. However, each time you want to have a new shell on the cluster you will be asked to type the password. Is there a way out? | ||
Line 148: | Line 157: | ||
====== ssh-keys ====== | ====== ssh-keys ====== | ||
- | {{..: | + | {{.: |
Using ssh-keys is a possible which enables to open several shells on the cluster by using a passphrase only once. | Using ssh-keys is a possible which enables to open several shells on the cluster by using a passphrase only once. | ||
Line 160: | Line 169: | ||
====== ssh-keys ====== | ====== ssh-keys ====== | ||
- | {{..: | + | {{.: |
[[https:// | [[https:// | ||
Line 169: | Line 178: | ||
====== ssh-keys — tunneling ====== | ====== ssh-keys — tunneling ====== | ||
- | {{..: | + | {{.: |
You may want to jump (tunnel) over a host which is between your local machine and VSC. Then you need to copy your key to both machines, the jump host and VSC. | You may want to jump (tunnel) over a host which is between your local machine and VSC. Then you need to copy your key to both machines, the jump host and VSC. | ||
Line 179: | Line 188: | ||
====== ssh-keys — tunneling ====== | ====== ssh-keys — tunneling ====== | ||
- | {{..: | + | {{.: |
<code bash> | <code bash> | ||
Line 202: | Line 211: | ||
====== Backup Policy ====== | ====== Backup Policy ====== | ||
- | {{..: | + | {{.: |
for details see [[https:// | for details see [[https:// | ||
Line 212: | Line 221: | ||
====== Sync and Copy ====== | ====== Sync and Copy ====== | ||
- | {{..: | + | {{.: |
If you copy with scp you always copy everything. On one hand, it may take ages until everything is copied, on the other hand, you may waste storage if there had only been minor modifications in your data. For that reason you may use rsync which first compares source and destination directory/ | If you copy with scp you always copy everything. On one hand, it may take ages until everything is copied, on the other hand, you may waste storage if there had only been minor modifications in your data. For that reason you may use rsync which first compares source and destination directory/ | ||
Line 224: | Line 233: | ||
<code bash> | <code bash> | ||
scp < | scp < | ||
- | scp <me>@vsc3.vsc.ac.at: | + | scp <me>@vsc4.vsc.ac.at: |
scp myfile.c < | scp myfile.c < | ||
</ | </ | ||
Line 238: | Line 247: | ||
====== Copy — alternative via FileZilla ====== | ====== Copy — alternative via FileZilla ====== | ||
- | {{..: | + | {{.: |
For using FileZilla, make sure that you choose “interactive login”. This is necessary to be able to login via two factor authentication. If you are already logged into the cluster via, e.g., PuTTY or another terminal program, you can also login via a normal session because the OTP is only asked once in 12h per cluster (VSC-3 or VSC-4) and IP address. | For using FileZilla, make sure that you choose “interactive login”. This is necessary to be able to login via two factor authentication. If you are already logged into the cluster via, e.g., PuTTY or another terminal program, you can also login via a normal session because the OTP is only asked once in 12h per cluster (VSC-3 or VSC-4) and IP address. | ||
Line 248: | Line 257: | ||
====== Copy — alternative via winscp ====== | ====== Copy — alternative via winscp ====== | ||
- | {{..: | + | {{.: |