This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [WARNING] Some of this commands may require root privileges | |
cd /home/root/.ssh/ | |
chmod a+w authorized_keys | |
# One can just use copy/paste here. Replace key.public with your public key filename | |
xclip -i key.public && xclip -o > authorized_keys | |
chmod a-w authorized_keys |