diff --git a/Login.md b/Login.md index 1f2770a135b71a40875c7fe942a8741a18fad435..4237418fab73574668919aedfe015ff38384e746 100644 --- a/Login.md +++ b/Login.md @@ -31,3 +31,26 @@ Please connect to the two systems with SSH. Using a `train0XX` account, it looks To forward the X server, use `-X` or `-Y` as an additional flag. In case of launching a GUI application on the compute backends it might be necessary to forward your SSH authentication agent (`-o ForwardAgent=yes`). If you are new to SSH, you might want to have a look at some tutorials ([example](https://www.digitalocean.com/community/tutorials/ssh-essentials-working-with-ssh-servers-clients-and-keys)). + +Use `ssh-add id_train0XX` to stop entering the passphrase of the given key. + +### Creating Alias + +It's handy to create an alias for your connection to JURECA or JURON, especially if you are using the custom private SSH key of the `train0XX` accounts. + +Add the following to your `~/.ssh/config` (create the file if it does not exist): + +``` +Host jureca + HostName jureca.fz-juelich.de + User train055 + IdentityFile ~/Downloads/id_train055 + ForwardAgent Yes +``` + +(Adapt lines 3 and 4 to match your configuration.) + +You can then use the alias `jureca` now in any statement with `ssh`, `scp`, or `rsync`, like + * `ssh jureca ls .` + * `scp jureca:~/results.csv ~/Downloads/` + * `rsync --archive --verbose jureca:~/hackathon/ ~/hackathon`