Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
doku:vpn_ssh_access [2017/03/31 09:06] – [Connecting to **VSC-2** or **VSC-3** via ssh-key:] ir | doku:vpn_ssh_access [2024/02/16 11:23] – Jump host (-J) instead of agent forwarding (-A) mpfister | ||
---|---|---|---|
Line 8: | Line 8: | ||
Common ways of connecting are either the use of a VPN or a SSH gateway provided by the university. | Common ways of connecting are either the use of a VPN or a SSH gateway provided by the university. | ||
- | See also [[doku:vsc3quickstart|Login]], and [[doku: | + | See also [[pandoc:introduction-to-vsc: |
=== VPN services === | === VPN services === | ||
- | * University of Vienna: [[http:// | + | * University of Vienna: [[http:// |
- | * TU Vienna: [[http://www.zid.tuwien.ac.at/ | + | * TU Vienna: [[https://www.it.tuwien.ac.at/ |
* University of Innsbruck: [[http:// | * University of Innsbruck: [[http:// | ||
- | * University of Graz: [[http:// | + | * University of Graz: [[https:// |
- | * TU Graz: [[https://sso.tugraz.at/idp/Authn/GenericAuthn| Web Single Sign-On]] | + | * TU Graz: [[http://portal.tugraz.at/portal/page/portal/ |
=== SSH Gateway === | === SSH Gateway === | ||
- | Users can connect first to any linux machine within a university and then connect further to VSC. Some universities provide a dedicated SSH gateway (contact your local IT services if you don't know how to connect): | + | Users can connect first to any linux machine within a university and then connect further to VSC. Some universities provide a dedicated SSH gateway (contact your local IT services if you don't know how to connect). |
- | * TU Graz: [[https:// | + | |
====== Using SSH keys and SSH agent to connect to VSC ====== | ====== Using SSH keys and SSH agent to connect to VSC ====== | ||
Line 40: | Line 39: | ||
-rw-r--r-- 1 user user 394 Dec 6 09:15 / | -rw-r--r-- 1 user user 394 Dec 6 09:15 / | ||
</ | </ | ||
+ | See also [[doku: | ||
==== remote machine ==== | ==== remote machine ==== | ||
* Preparing the remote machine for logging in with your key: On the remote machine the contents of your ' | * Preparing the remote machine for logging in with your key: On the remote machine the contents of your ' | ||
Line 47: | Line 46: | ||
</ | </ | ||
- | * Logging in with ssh-keys: For using the ssh-keys, they must be added to the so-called ssh-agent. Most window managers have a ssh-agent running by default and if a connection with an applicable key is opened you are asked to enter the passphrase. The ssh-agent will then store the passphrase and reuse it for further connection attempts with this private/ | + | * Logging in with ssh-keys: For using the ssh-keys, |
+ | * they may be added to the so-called ssh-agent. Most window managers have a ssh-agent running by default and if a connection with an applicable key is opened you are asked to enter the passphrase. The ssh-agent will then store the passphrase and reuse it for further connection attempts with this private/ | ||
+ | * Alternatively, | ||
+ | * written to '' | ||
- | ==== Connecting to VSC-2 or VSC-3 via ssh-key: ==== | + | ==== Connecting to VSC-4 or VSC-5 via ssh-key: ==== |
< | < | ||
- | ssh -p 27 < | + | ssh -p 27 < |
- | ssh -p 27 < | + | ssh -p 27 < |
</ | </ | ||
- | === Forwarding the ssh-agent over multiple servers | + | === Using a jump host === |
- | If the machine to which one wants to login is reachable only over one or several hops in between, the ssh-agent of the local machine can be forwarded to the machines in between using the '-A' | + | It is also possible to use SSH keys if the machine to which one wants to login is reachable only over one or several hops in between. To do this, use the command ''-J'' |
- | user@host: | + | < |
- | </ | + | user@host: |
- | Host vsc3.vsc.ac.at | + | </ |
- | ForwardAgent yes | + | |
+ | ==== Parameters in .ssh/config ==== | ||
+ | |||
+ | Parameters may be written, e.g. on a per-host basis, to '' | ||
+ | |||
+ | < | ||
+ | Host vsc4.vsc.ac.at | ||
+ | Port 27 | ||
+ | # | ||
+ | IdentityFile id_rsa | ||
+ | IdentitiesOnly yes | ||
+ | # ForwardX11 | ||
</ | </ | ||