94
edits
No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
====Option 1==== | ====Option 1==== | ||
ssh-copy-id -i ~/.ssh/ | ssh-copy-id -i ~/.ssh/id_ed25519.pub username@login.redbrick.dcu.ie | ||
This will append your key to your authorized_keys file on redbrick. | This will append your key to your authorized_keys file on redbrick. | ||
| Line 30: | Line 30: | ||
ssh username@login.redbrick.dcu.ie | ssh username@login.redbrick.dcu.ie | ||
You will still be prompted for a password at this stage. Once you are on other machine, you need to move into the .ssh directory cd .ssh. You will have to add the line in the | You will still be prompted for a password at this stage. Once you are on other machine, you need to move into the .ssh directory cd .ssh. You will have to add the line in the id_ed25519.pub into the authorized_keys file. The easiest way to do this is to simple cat the id_ed25519.pub and put the results into the authorized_keys file i.e: | ||
cat | cat id_ed25519.pub >> authorized_keys | ||
Once all that is done, then all that remains to do is to remove the | Once all that is done, then all that remains to do is to remove the id_ed25519.pub on the machine you wish to ssh to rm ~/.ssh/id_ed25519.pub. | ||
===Changing your Passphrase=== | ===Changing your Passphrase=== | ||
From time to time you may wish to change the passprhase on your ssh-key. To do this run the following command | From time to time you may wish to change the passprhase on your ssh-key. To do this run the following command | ||
ssh-keygen -f ~/.ssh/ | ssh-keygen -f ~/.ssh/id_ed25519 -p | ||
It will prompt you for your current passphrase. Once you have typed your current passphrase it will ask you for a new passphrase. You will then be asked to re-enter it to validate it. | It will prompt you for your current passphrase. Once you have typed your current passphrase it will ask you for a new passphrase. You will then be asked to re-enter it to validate it. | ||