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

Status update, November 2024

Hi all! This month I’ve spent a lot of time triaging Sway and wlroots issues following the Sway 1.10 release. There are a few regressions, some of which are already fixed (thanks to all contributors for sending patches!). Kenny has added support for softwa…

via emersionNovember 21, 2024

Key Transparency and the Right to be Forgotten

This post is the first in a new series covering some of the reasoning behind decisions made in my project to build end-to-end encryption for direct messages on the Fediverse. (Collectively, Fedi-E2EE.) Although the reasons for specific design decisions sho…

via Dhole MomentsNovember 21, 2024

The Ethereum MEV Bots are a scam

Several months ago, I wrote this article: The Fascinating Ethereum MEV Bot Scam, where I dived deep into the technical aspects of a scam that has been circulating for years on platforms like X.com and YouTube. These scams revolve around deploying smart…

via Christian Visintin BlogNovember 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

Generated by openring-rs

favicon here hometagsblogmicrobio cvtech cvgpg keys