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
Next revisionBoth sides next revision
en:services:application_services:high_performance_computing:connect_with_ssh [2023/12/13 16:06] – [Upload SSH Public Key] meulert1en:services:application_services:high_performance_computing:connect_with_ssh [2024/02/14 11:22] – [Creating SSH Keys] update key length mluetti2
Line 19: Line 19:
 ===== 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+PS C:\Users\win10-virtual> ssh-keygen -t rsa -b 4096
 Generating public/private rsa key pair. Generating public/private rsa key pair.
 Enter file in which to save the key (C:\Users\win10-virtual/.ssh/id_rsa): Enter file in which to save the key (C:\Users\win10-virtual/.ssh/id_rsa):
 Created directory 'C:\Users\win10-virtual/.ssh'. Created directory 'C:\Users\win10-virtual/.ssh'.
-Enter passphrase (empty for no passphrase): +Enter passphrase (empty for no passphrase): ****************** 
-Enter same passphrase again:+Enter same passphrase again: ******************
 Your identification has been saved in C:\Users\win10-virtual/.ssh/id_rsa. 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. Your public key has been saved in C:\Users\win10-virtual/.ssh/id_rsa.pub.
Line 32: Line 32:
 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 50: Line 50:
 ===== Upload SSH Public 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:** 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 invalid.\\+**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-60 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.