So long!. I know, 2020 has been such a strange year. For me, it also was the first time (yes, in my life) I switched to another company. Coming from being self-employed on my own company, it was a great challenge but I’m really happy about it. Even I had to be forced to keep my mind fully in focus for work.
Anyway: I want to talk about my new security setup for internet applications.
I recently got a pair of cheap HyperFido keys. Some of them are as cheap as 5,5€ on Amazon but you can get others which maybe have better quality. Also, there are another keys which have support for bluethooh, NFC, and other features that can be very useful.
Anyway. That keys don’t work out of the box in Linux as they are not recognized as the proper hardware type by linux kernel, but the solution is very easy to implement.
It’s a common task: “Please, add my public ssh key to that host”.
And I usually get the key, copied it to buffer, ssh to the remote host, cd .ssh and finally I do a cat - >> authorized_keys and paste the key.
But you can do it in just one single line:
cat new_key.pub | ssh myRemoteHost "cat >> ~/.ssh/authorized_keys" That’s all!