This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
services:2fa:ssh:putty [2021/03/22 11:31] – created deul | services:2fa:ssh:putty [2021/03/26 15:31] (current) – deul | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Setup key based login from Putty====== | ======Setup key based login from Putty====== | ||
- | Before we can use key based login, we first need to create a private/ | + | Before we can use key based login, we first need to create a private/ |
- | {{ : | + | {{ : |
- | and hit the ' | + | and provide a passphrase before hiting |
- | {{ : | + | {{ : |
Make sure to use sensible file names for the two key files. The private key is automatically appended with the .ppk extension, while the public key does not need an extension. | Make sure to use sensible file names for the two key files. The private key is automatically appended with the .ppk extension, while the public key does not need an extension. | ||
Line 12: | Line 12: | ||
{{ : | {{ : | ||
- | Finally, we need to tell PuTTY to use a particular account name for accessing the public key (which we still need to upload). So go to tab Connection / DATA and fill in your ULCN account name in the ' | + | Finally, we need to tell PuTTY to use a particular account name for accessing the public key (which we still need to upload). So go to tab Connection / DATA and fill in your STRW account name in the ' |
{{ : | {{ : | ||
Line 20: | Line 20: | ||
{{ : | {{ : | ||
- | Open the login session to the server (you still have to provide your password), then go to the .ssh directory and edit the authorized_keys file using an editor (e.g. vi) and paste in the copied text from the public file. Make sure the pasted text is one line! Perpend that line with ssh-rsa (the default | + | Open the login session to the server (you still have to provide your password), then go to the .ssh directory and edit the authorized_keys file using an editor (e.g. vi) and paste in the copied text from the public file. Make sure the pasted text is one line! Perpend that line with ecdsa-sha2-nistp256 |
{{ : | {{ : | ||
- | Once the authorized_key file is saved, you can login without typing your password/ | + | Once the authorized_key file is saved, you can login without typing your password/ |