Monday, 17 January 2022

SSH keys and variables

Leaving this here to remind my future self ...

I wanted to generate a variable containing my SSH public key ..

I tried to simply copy the key to my clipboard and paste it into the variable: -


which is somewhat unwieldy.

However, given that my public key is in a file: -

why didn't I simply do this ?

export MY_PUB_KEY=$(cat ~/.ssh/

Now isn't that simpler ?

No comments:

macOS to macOS File Sharing - Don't work, try The IT Crowd

 I use File Sharing between two Macs on the same network, both running the latest macOS 13.4 Ventura. For some strange reason I wasn't a...