💬 SSH keys improve security and ease of use.
☝🏻 This tutorial assumes you’ve already logged in and have the prerequisites covered.
💬 On Windows 10, there are multiple ssh clients available, such as PuTTY and MobaXterm.
‼️ In this tutorial, we assume you use MobaXterm. More examples can be found in Docs CSC.
💬 The MobaXterm terminal has many Linux command line tools available, e.g. the ones to set up ssh keys:
☝🏻 Some additional steps are needed to enable connecting to Puhti and using e.g. Jupyter Notebooks and R-servers from interactive batch jobs via your browser.
💬 The next steps show how to edit your local ssh config file and how to use an ssh-agent to use your key securely to access Puhti.
ssh-keygen -o -a 100 -t ed25519
cscusername
with your CSC username):ssh-copy-id cscusername@puhti.csc.fi
ssh-keygen -o -a 100 -t ed25519
~/.ssh/config
and add the following lines into the file:Host *
UseKeychain no
AddKeysToAgent yes
~/.bash_profile
(or equivalent, see below ⬇️) and add the following line:[[ -z ${SSH_AUTH_SOCK+x} ]] && eval "$(ssh-agent -s)"
cscusername
with your CSC username):ssh-copy-id cscusername@puhti.csc.fi
☝🏻 Equivalent files for configuring profile in step 6.
~/.bashrc
~/.bash_rc
~/.bash_profile
And with zsh
-shell
~/.zshrc
~/.zsh_rc
~/.zsh_profile
💭 More in-depth step-by-step instructions in Docs CSC.
‼️ If you make changes to your environment (e.g. edit .bashrc
) in CSC supercomputers, it is possible that there will be conflicts with applications installed by CSC.
💭 If you have problems after making changes to your environment, it is possible to restore it to default state permanently or temporarily using the csc-env command.