TELIN now suggests to work with ssh-keys: here’s how you can setup a ssh key pair from within our TELIN department.
First check if you have the following open source programs installed: Git Bash, PuTTY, PuTTYgen and WinSCP (and any text editor like Notepad++).
ssh-keygen -b 4096 -t rsa -N '' -f ~/.ssh/id_rsa
in the Git Bash Here window.ssh-copy-id -p 8822 {your_username}@{workgroup_fileserver}
. Replace {your_username}
with your TELIN username and {workgroup_fileserver}
with your TELIN workgroup server e.g. ddcmfs, digcomfs, gaimfs, ipifs, smacsfs or packages added by the ugent.be domain.Your PC should now recognized by your workgroup server. You can try with ssh -p 8822 {your_username}@{workgroup_fileserver}.ugent.be
and after accepting the connection with yes you should be logged in. Exit with the exit
command.
PuTTY and WinSCP use some different version of the key, they call is PPK.
your_username
-> .sshyour_username
-> .ssh.You should be able to login with the Login button now. The left panel is showing your local disk and the right panel is showing your home directory. You can copy by selecting any file or directory and select the F5 Copy button on the bottom menus.
The save session will then also be available in PuTTY under WinSCP temporary session, which you can Load, rename to {workgroup_fileserver}.ugent.be and Save it again.
If you want to do it manually, type the hostname {workgroup_fileserver}.ugent.be, select the telin.ppk file you used as private key in Private key file for authentication: with Browse and save the session for later by not logging in yet, but select Session and giving it a name {workgroup_fileserver}.ugent.be first. Make sure to specify port 8822.
The telin.ppk file is a plain text file. You can open and change it in notepad++.
The key on the server is stored in .ssh/authorized_keys, it’s again a text file and you can add or delete keys manually.