Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:services:application_services:high_performance_computing:connect_with_ssh [2023/07/13 16:10] – [Upload SSH Key] jbierma1en:services:application_services:high_performance_computing:connect_with_ssh [2024/04/12 17:21] – [Connect with SSH] meulert1
Line 1: Line 1:
 ====== Connect with SSH ====== ====== Connect with SSH ======
 +
 +<WRAP center round info 70%>
 +\\\\
 +A more detailed and up to date version is available [[https://docs.hpc.gwdg.de/getting_started/connecting/index.html|here]].
 +</WRAP>
 +
 +
 +
 To access the Scientific Compute Cluster, you need  To access the Scientific Compute Cluster, you need 
-  - an [[en:services:application_services:high_performance_computing:account_activation|activated, *non-student* account]]+  - an [[en:services:application_services:high_performance_computing:account_activation|activated account]]
   - an SSH client   - an SSH client
  
-Please note, that you can only connect to our frontends from inside the [[en:services:network_services:goenet:start|GÖNET]], our campus network. If you are not inside GÖNET, you can either use a [[en:services:network_services:vpn:start|VPN]] or use to ''login.gwdg.de'' as a jump host.+Please note, that you can only connect to our frontends from inside the [[en:services:network_services:goenet:start|GÖNET]], our campus network. If you are not inside GÖNET, you can either use a [[en:services:network_services:vpn:start|VPN]] or connect to ''login.gwdg.de'' as a jump host.
  
-Since May 15th, 2020, authenticitation by password has been deactivated for security reasons. To log on to the frontends an SSH key is required. 
  
 ==== Graphical Applications ==== ==== Graphical Applications ====
Line 19: Line 26:
 ===== Creating SSH Keys ===== ===== Creating SSH Keys =====
  
-On Linux, macOS and the latest Windows 10 Versions SSH is already built in. A key can be generated with the command ''ssh-keygen -t rsa -b 2048 -f <yourkey>''. As soon as you enter the command you will be asked to secure the key with a passphrase. Please do not use keys without a passphrase to log in to our systems.+On Linux, macOS and the latest Windows 10 Versions SSH is already built in. A key can be generated with the command ''ssh-keygen -t rsa -b 4096 -f <yourkey>''. As soon as you enter the command you will be asked to secure the key with a passphrase. Please do not use keys without a passphrase to log in to our systems.
 <code> <code>
-PS C:\Users\win10-virtual> ssh-keygen -t rsa -b 2048 -f .ssh/id-rsa+PS C:\Users\win10-virtual> ssh-keygen -t rsa -b 4096
 Generating public/private rsa key pair. Generating public/private rsa key pair.
-Enter passphrase (empty for no passphrase): +Enter file in which to save the key (C:\Users\win10-virtual/.ssh/id_rsa): 
-Enter same passphrase again: +Created directory 'C:\Users\win10-virtual/.ssh'
-Your identification has been saved in .ssh/id-rsa+Enter passphrase (empty for no passphrase): ****************** 
-Your public key has been saved in .ssh/id-rsa.pub.+Enter same passphrase again: ****************** 
 +Your identification has been saved in C:\Users\win10-virtual/.ssh/id_rsa
 +Your public key has been saved in C:\Users\win10-virtual/.ssh/id_rsa.pub.
 The key fingerprint is: The key fingerprint is:
 SHA256:JIFSfI6/QBdnUaVsjKdHIfCqw1yjZyk96KDp07MlvbM win10-virtual@DESKTOP-N8DT68R SHA256:JIFSfI6/QBdnUaVsjKdHIfCqw1yjZyk96KDp07MlvbM win10-virtual@DESKTOP-N8DT68R
 The key's randomart image is: The key's randomart image is:
-+---[RSA 2048]----+++---[RSA 4096]----+
 |   o..o.ooo..    | |   o..o.ooo..    |
 |  . o ooo= o     | |  . o ooo= o     |
Line 42: Line 51:
 +----[SHA256]-----+ +----[SHA256]-----+
 </code> </code>
-This creates both the private key file <yourkey> and a corresponding public key file <yourkey>.pub. Never give out your private key, but always upload only the public key!+This creates both the private key file <yourkey> and a corresponding public key file <yourkey>.pub (in the example: id_rsa and id_rsa.pub). Never give out your private key, but always upload only the public key!
  
 ===== Creating SSH Keys with puttygen ===== ===== Creating SSH Keys with puttygen =====
 [[https://docs.gwdg.de/doku.php?id=en:services:application_services:high_performance_computing:connect_with_ssh:putty#creating_an_ssh_key_with_puttygen| Here is a description that provides information how to create an ssh key with puttygen]]. [[https://docs.gwdg.de/doku.php?id=en:services:application_services:high_performance_computing:connect_with_ssh:putty#creating_an_ssh_key_with_puttygen| Here is a description that provides information how to create an ssh key with puttygen]].
-==== Upload SSH Key ==== +===== Upload SSH Public Key ===== 
-To upload a key, please log into your account on the [[https://id.academiccloud.de|My AcademicID]] portal and open the "Security" tab. Then scroll down to "SSH Public Keys" and click "Add SSH Public Key". You can now add a **public** key. \\ +To upload a key, please log into your account on the [[https://id.academiccloud.de|My AcademicID]] portal and open the "SECURITY" tab. Then scroll down to "SSH PUBLIC KEYS" and click "ADD SSH PUBLIC KEY". You can now add a **public** key. \\ 
-**Note 1:** If you copy your public key from a text editor or a terminal, please make sure that your editor or your terminal does not insert any linebreaks, because this will make the copy of your public key invalide.\\+**Note:** If you copy your public key from a text editor or a terminal, please make sure that your editor or terminal does not insert any linebreaks, because this will make the copy of your public key invalid.\\
 \\ \\
-**<wrap em>Important</wrap>** it can take up to 10 minutes until the key is synchronised with the systems. If the login does not work, be patient and try again later.+**<wrap em>Important</wrap>** It can take up to 10-60 minutes until the key is synchronised with the systems. If the login does not work, be patient and try again later.
 ===== Connecting to the System inside GÖNET ===== ===== Connecting to the System inside GÖNET =====
 Just open a terminal and connect with  Just open a terminal and connect with