Access to the cluster Padobran
Access to the cluster Padobran is possible only through the SSH protocol using keys.
Generate keys
Note | ||
---|---|---|
| ||
When generating keys, choose a good passphrase to protect the private key. You NEVER deliver the private key to other persons or institutions. It is recommended to keep the private key exclusively on your own computer. In case of compromise, notify us immediately. |
Linux
Generate SSH keys from the command line using the command:
Code Block |
---|
ssh-keygen |
Load the file ~/.ssh/id_rsa.pub using the web application at www.computing.srce.hr, public keys menu.
MS Windows
Install the PuTTYgen application. After starting the application, press the Generate button, enter the Key passphrase and save the public and private keys. Public key for pasting into OpenSSH authorized_keys file, visible in the picture below, must be uploaded using the web application at computing.srce.hr, public keys menu.
Connecting to the Padobran
The access domain of the Podobran cluster node is podobran.srce.hr. The prerequisite for connecting to the cluster is creating SSH keys (the previous step) and uploading the keys via the web application computing.srce.hr. After uploading the key through the web application, you need to wait for a notification that will contain the user name and confirmation of the placement of the public key on the cluster.
Linux
The prerequisite for connection is that the private key that you generated in the previous step is installed on the computer. The connection is made using the command (the username in the example is korisnik):
Code Block |
---|
ssh korisnik@padobran.srce.hr
|
If you get an error similar to:
Code Block |
---|
Permission denied (publickey,gssapi-keyex,gssapi-with-mic) |
It is necessary to explicitly state the location of the ssh private key, for example:
Code Block |
---|
ssh -i ~/.ssh/id_rsa korisnik@padobran.srce.hr |
MS Windows
To connect, the Putty tool is used and the path to the private key is entered.
Copying files
Linux
Warning |
---|
You run the scp command from your local computer in both cases! |
Local Computer → Padobran
Copying a file from a local computer to Padobran is performed using the command:
Code Block |
---|
scp <local-path>/<file> <korisnik>@padobran.srce.hr:<remote-path> |
Padobran → Local Computer
Copying a file from Padobran to the local computer is performed using the command:
Code Block |
---|
scp <korisnik>@padobran.srce.hr:<remote-path> <local-path>/<file> |
MS Windows
To copy files between the local computer and the Padobran cluster, we can use the WinSCP application.
- in the Host name field you need to enter padobran.srce.hr
- in the User name field, you must enter your username
- You leave the password blank
- in Advanced settings it is necessary to set the path to the private SSH key (Figure 2)