Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
en:services:application_services:high_performance_computing:connect_with_ssh [2020/05/20 13:41] – mboden | en: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 ====== | ||
+ | |||
+ | <WRAP center round info 70%> | ||
+ | \\\\ | ||
+ | A more detailed and up to date version is available [[https:// | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | To access the Scientific Compute Cluster, you need | ||
+ | - an [[en: | ||
+ | - an SSH client | ||
+ | |||
+ | Please note, that you can only connect to our frontends from inside the [[en: | ||
+ | |||
+ | |||
+ | ==== Graphical Applications ==== | ||
+ | |||
+ | This documentation shows how to generate SSH keys and connect with the ssh client on the command line in Linux, MacOS and Windows 10. If you want to use a graphical application to connect, please refer to [[en: | ||
+ | |||
+ | ==== Troubleshooting ==== | ||
+ | |||
+ | If you have followed these steps and still have trouble to connect to our servers, have a look at [[en: | ||
+ | |||
+ | |||
+ | ===== 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 '' | ||
+ | < | ||
+ | PS C: | ||
+ | Generating public/ | ||
+ | Enter file in which to save the key (C: | ||
+ | Created directory ' | ||
+ | Enter passphrase (empty for no passphrase): | ||
+ | Enter same passphrase again: ****************** | ||
+ | Your identification has been saved in C: | ||
+ | Your public key has been saved in C: | ||
+ | The key fingerprint is: | ||
+ | SHA256: | ||
+ | The key's randomart image is: | ||
+ | +---[RSA 4096]----+ | ||
+ | | | ||
+ | | . o ooo= o | | ||
+ | | . +.++ B | | ||
+ | | o o+ = | | ||
+ | | . o+ S . | | ||
+ | | oo*.o . | | ||
+ | | o.O+*. | ||
+ | | + =o*o. | | ||
+ | |+...+Eo | ||
+ | +----[SHA256]-----+ | ||
+ | </ | ||
+ | This creates both the private key file < | ||
+ | |||
+ | ===== Creating SSH Keys with puttygen ===== | ||
+ | [[https:// | ||
+ | ===== Upload SSH Public Key ===== | ||
+ | To upload a key, please log into your account on the [[https:// | ||
+ | **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> | ||
+ | ===== Connecting to the System inside GÖNET ===== | ||
+ | Just open a terminal and connect with | ||
+ | '' | ||
+ | |||
+ | ===== Connecting to the System outside GÖNET ===== | ||
+ | If you are outside the [[en: | ||
+ | < | ||
+ | $ ssh login-mdc.hpc.gwdg.de -l < | ||
+ | Last login: Mon Apr 20 13:54:52 2020 from i080.vpnclients.gwdg.de | ||
+ | gwdu103:22 14:51:56 ~ > | ||
+ | </ | ||
+ | If that does not work on your system, you may have an older version of SSH, which means you need to use: | ||
+ | < | ||
+ | $ ssh login-mdc.hpc.gwdg.de -l < | ||
+ | Last login: Mon Apr 20 13:54:52 2020 from i080.vpnclients.gwdg.de | ||
+ | gwdu103:22 14:51:56 ~ > | ||
+ | </ | ||
+ | |||
+ | If you are using the **Windows** OpenSSH client, you need to add .exe to the ProxyCommand: | ||
+ | < | ||
+ | $ ssh login-mdc.hpc.gwdg.de -l < | ||
+ | Last login: Mon Apr 20 13:54:52 2020 from i080.vpnclients.gwdg.de | ||
+ | gwdu103:22 14:51:56 ~ > | ||
+ | </ | ||
+ | |||
+ | ===== Saving the SSH configuration ===== | ||
+ | You can't be bothered to type all that everytime you want to connect to our frontends? Understandable. The good news is, you can use an SSH config to make your life easier. | ||
+ | |||
+ | The SSH config is a simple text file, which stores per-server-configuration or even global configurations for all SSH connections and is located at: | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | <code Example ~/ | ||
+ | host gwdg-login #can be any name you want | ||
+ | hostname login.gwdg.de | ||
+ | user mboden | ||
+ | IdentityFile ~/ | ||
+ | | ||
+ | host hpc-gwdg | ||
+ | hostname gwdu101 | ||
+ | user < | ||
+ | IdentityFile ~/ | ||
+ | ProxyJump gwdg-login | ||
+ | # Older SSH Versions: | ||
+ | # ProxyCommand ssh -i .ssh/id-rsa -W %h:%p gwdg-login | ||
+ | # Windows 10 | ||
+ | # ProxyCommand ssh.exe -i .ssh/id-rsa -W %h:%p gwdg-login</ | ||
+ | | ||
+ | ===== SSH Fingerprints of our Frontends ===== | ||
+ | |||
+ | login-mdc.hpc.gwdg.de (gwdu101 and gwdu102): | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||