Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| habrok:connecting_to_the_system:ssh_key_login [2022/12/14 15:35] – fokke | habrok:connecting_to_the_system:ssh_key_login [2023/03/20 11:55] (current) – admin | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| | | ||
| </ | </ | ||
| - | This command can be run from a Linux terminal, OS X terminal or within MobaXterm and has to be run **on your local machine**, not after logging in if you want to use the ssh key from your desktop. | + | This command can be run from a Linux terminal, |
| - | After you started | + | After you have executed |
| < | < | ||
| Line 31: | Line 31: | ||
| Your public key has been saved in ~/ | Your public key has been saved in ~/ | ||
| The key fingerprint is: | The key fingerprint is: | ||
| - | SHA256: | + | SHA256: |
| The key's randomart image is: | The key's randomart image is: | ||
| +--[ED25519 256]--+ | +--[ED25519 256]--+ | ||
| Line 53: | Line 53: | ||
| <code bash> | <code bash> | ||
| - | scp .ssh/ | + | scp .ssh/ |
| </ | </ | ||
| Line 64: | Line 64: | ||
| </ | </ | ||
| - | The contents of this file have to be added to a file called authorized_keys in the directory .ssh. You have to create the directory .ssh if it is not there. **On Hábrók** the following actions have to be taken. | + | The contents of this file has to be added to a file called |
| - Create the directory if it is not there: | - Create the directory if it is not there: | ||
| Line 74: | Line 74: | ||
| chmod go-rwx .ssh | chmod go-rwx .ssh | ||
| </ | </ | ||
| - | - Copy the contents of the public ssh key (copied to desktop_key.pub) to the file authorized_keys | + | - Copy the contents of the public ssh key (copied to '' |
| <code bash> | <code bash> | ||
| cat desktop_key.pub >> .ssh/ | cat desktop_key.pub >> .ssh/ | ||
| </ | </ | ||
| - | - Set correct permissions on the file authorized_keys | + | - Set correct permissions on the file '' |
| <code bash> | <code bash> | ||
| chmod go-w .ssh/ | chmod go-w .ssh/ | ||
| </ | </ | ||
| - | After setting this up in the way described you should be able to login without having to enter a password multiple times. The key manager should ask for your key password only once. | + | After setting this up in the way described you should be able to log in without having to enter a password multiple times. The key manager should ask for your key password only once. |
| For this to work correctly in MobaXterm the '' | For this to work correctly in MobaXterm the '' | ||