FAQs: Difference between revisions
David.oneill (talk | contribs) No edit summary |
David.oneill (talk | contribs) No edit summary |
||
Line 21: | Line 21: | ||
User username | User username | ||
HostName astro06.hpc.ku.dk | HostName astro06.hpc.ku.dk | ||
</pre> | |||
Do not use the ssh option -Y, which "enables trusted X11 forwarding". This means, basically, that you turn off some essential X security features and say "I trust the remote host completely". Forwarding of X should work without any extra options. | |||
Passwordless ssh login: | |||
You can avoid to type in your password each time for the authenticating of SSH sessions, by using an SSH key with the RSA or DSA encryption, in combination with ssh-add and ssh-agent. Therefore, you generate with ssh-keygen on your local laptop/computer a pair of a personal (id_rsa) and public key (id_rsa.pub). | |||
<pre> | |||
ssh-keygen -t rsa | |||
</pre> | </pre> |
Revision as of 15:31, 15 November 2023
How do I access the HPC Cluster?
You can remotely access the frontend machines astro01-09 via SSH to submit jobs or to analyze data (see Hardware for an up to date list of available frontends). For example, you can login to the astro06 machine entering the following in the command line
ssh username@astro06.hpc.ku.dk
From which you will be prompted to enter your password (Note: If the connection times out, it's likely that your IP address is not recognised). By entering the correct password, you will arrive at your home directory /groups/astro/username. It may be a good idea to check the load factor after logging in, using "top", and choose a different frontend if the CPU or memory use is already high (use "<" or ">" in top to temporarily change from sorting on CPU to memory / virtual memory).
You can cut this down to
ssh astro06
by adding these lines to the file ~/.ssh/config:
Host astro06 User username HostName astro06.hpc.ku.dk
Do not use the ssh option -Y, which "enables trusted X11 forwarding". This means, basically, that you turn off some essential X security features and say "I trust the remote host completely". Forwarding of X should work without any extra options.
Passwordless ssh login:
You can avoid to type in your password each time for the authenticating of SSH sessions, by using an SSH key with the RSA or DSA encryption, in combination with ssh-add and ssh-agent. Therefore, you generate with ssh-keygen on your local laptop/computer a pair of a personal (id_rsa) and public key (id_rsa.pub).
ssh-keygen -t rsa