For some reason, I did NOT know about this ... until I found about it, and now I know :-)
I've been happily SSHing into the VMs that comprise my IBM Cloud Private (ICP) environment, and less-than-happily needing to find/copy/paste the passphrase of my SSH key pair ....
So I'd run the command: -
ssh root@dmhicp-mgmtmaster.fyre.ibm.com
and then have to go off to my password vault to find the pass phrase for my public key: -
~/.ssh/id_rsa.pub
Well, no longer, thanks to a combination of ssh-add and the native macOS Keychain.
I used this command: -
ssh-add -k ~/.ssh/id_rsa
and this command: -
ssh-add -l
to validate that it'd been added ( this returns a fingerprint ) and this command: -
ssh-add -L
to show the public key in its entirety.
The ssh-add command is documented here: -
https://www.ssh.com/ssh/add
I also ended up with a config file in my ~/.ssh directory: -
cat ~/.ssh/config
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
probably because I've also been tinkering with GitHub: -
Connecting to GitHub with SSH
but the TL;DR; is that I can now access my Ubuntu VMs without a darn password OR passphrase.
Which is nice!
Geeking in technology since 1985, with IBM Development, focused upon Docker and Kubernetes on the IBM Z LinuxONE platform In the words of Dr Cathy Ryan, "If you don't write it down, it never happened". To paraphrase one of my clients, "Every day is a school day". I do, I learn, I share. The postings on this site are my own and don’t necessarily represent IBM’s positions, strategies or opinions. Remember, YMMV https://infosec.exchange/@davehay
Subscribe to:
Post Comments (Atom)
Reminder - installing podman and skopeo on Ubuntu 22.04
This follows on from: - Lest I forget - how to install pip on Ubuntu I had reason to install podman and skopeo on an Ubuntu box: - lsb_rel...
-
Why oh why do I forget this ? Running this command : - ldapsearch -h ad2012.uk.ibm.com -p 389 -D CN=bpmbind,CN=Users,DC=uk,DC=ibm,DC=com -w...
-
Error "ldap_sasl_interactive_bind_s: Unknown authentication method (-6)" on a LDAPSearch command ...Whilst building my mega Connections / Domino / Portal / Quickr / Sametime / WCM environment recently, I was using the LDAPSearch command tha...
-
Whilst building a new "vanilla" Kubernetes 1.25.4 cluster, I'd started the kubelet service via: - systemctl start kubelet.se...
No comments:
Post a Comment