From 6051674d9e7f4a037bd7f68bafd8af25162c341d Mon Sep 17 00:00:00 2001
From: Andreas Herten <a.herten@fz-juelich.de>
Date: Mon, 6 Mar 2017 13:48:54 +0100
Subject: [PATCH] Add info about SSH alias

---
 Login.md | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/Login.md b/Login.md
index 1f2770a..4237418 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`
-- 
GitLab