favicon here hometagsblogmicrobio cvtech cvgpg keys

Local Remote Development with VSCode

#editor

Soc Virnyl Estela | 2024-09-12 | reading time: ~2min

This is just a note for someone who really is unfamiliar with how SSH works.


I have issues managing my SSH keys and using them to

  • authenticate myself to GitHub and other forges
  • signing using SSH instead of GPG

in a remote environment. Most of my stuff is now using distrobox. If you want to learn more about it, check out Luca's blog post about it --- https://fedoramagazine.org/run-distrobox-on-fedora-linux, he is the author of distrobox.

Anyway, back to the topic, the issue is I want to manage and use my SSH keys that resides in my REAL home directory but I can't because the ssh running inside my distrobox points to the distrobox's $HOME directory. The solution?

For authentication

git config set --local core.sshCommand "ssh -F /dev/null -i /home/uncomfy/.ssh/id_ed25519"

For signing keys

git config set --local user.signingKey /home/uncomfy/.ssh/id_new_ssh_key

The signing keys do not need to know where the SSH config file is. We don't even need it for the auth as well (see -F /dev/null) unless you need to use a config from somewhere else.

TPM-generated SSH Keys I think for SSH keys generated by TPM is still something I am trying to figure out first. As far as I know, the TPM library I installed in my host system relies on the hardware TPM that I have (I have yet to confirm). Hence, I can't use my TPM-generated SSH keys for the time being for remote development. You can check out my old blog on how to set up one -> https://uncomfyhalomacro.pl/blog/using-ssh-keys-with-tpm-and-git. Gentoo Wiki has a good write-up about it too (it's also where I myself decided to try and use it). See https://wiki.gentoo.org/wiki/Trusted_Platform_Module/SSH

Okay, that's all you need to know. If you have some concerns regarding remote development, just reach out to me through email (I rarely not check out after being so busy but I'm going to get back to regularly check emails) or in openSUSE Discord.

SSH Troubleshooting Also, if you experience SSHD using port 22 in your container and it fails? That's because it conflicts with port 22 of your host's SSHD. I changed mine to 69 🥴

Articles from blogs I follow around the net

Some Thoughts on the Twitter Mass Exodus

Another wave of Twitter users are jettisoning the social media website in favor of alternatives. Some are landing in the Fediverse (Mastodon and other ActivityPub-enabled software). Others are going to BlueSky. Some are just outright abandoning social medi…

via Dhole MomentsNovember 19, 2024

hyper in curl Needs a Champion

tl;dr - hyper in curl is nearly complete, but it needs a champion. Without a partner actively engaged that wants to enable and ship, it’s now on the path for being deprecated and removed. It needs a champion, a backing vendor or distro. Will that be you? …

via seanmonstarNovember 19, 2024

Swift observations from a reluctant Rustacean

Recently I've been thinking about Swift in terms of Rust, & have appreciated anew some of the choices made. In Rust. There's been a proliferation of X vs Y posts on the web, especially since the advent of LLM AI, so I try to resist the format. It's often e…

via Mike KreuzerNovember 16, 2024

Go Concurrency Patterns

Goroutines Channels Select Statement Wait Groups Mutex Conditions Atomic Operations Once Context Map Real Examples Goroutines The go keyword is used to start a goroutine. A goroutine is a lightweight, managed thread used by the Go runtime to run functions …

via Posts on integralistNovember 15, 2024

anarchism starts in the now: hope for a better future

there is still time

via maia blogNovember 14, 2024

Why I Will Always Be Angry About Software Engineering

Why do I bother getting angry about software? When I started writing, it came from a place of ennui — absolute despair at the amount of waste I was seeing in the technology sector since leaving university. I was paid spectacularly well, but nothing I produ…

via LudicityNovember 12, 2024

Generated by openring-rs

favicon here hometagsblogmicrobio cvtech cvgpg keys