Urgent.News

What's breaking now, across thousands of outlets.

Tech

ssh-keygen -N Puts Your Passphrase in ps

I'm writing a small GUI that walks a person through creating an SSH key. The core of it is one call to ssh-keygen , and on paper that call is trivial: ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N 'correct horse battery staple' The user types a passphrase into a nice field, the program puts it after -N , the key appears. Most scripts and wrappers I've looked at do exactly this. It's also the one…

The article discusses the security implications of using ssh-keygen with a passphrase passed as a command-line argument (-N) in a desktop application. The source material explains that this approach is insecure because the passphrase can be easily accessed through various sources such as /proc, shell history, auditd logs, and process-monitoring agents. The three main ways to handle passphrases are discussed:

1. Passing the passphrase via command-line arguments (-N), which is insecure as it lives in /proc and can be accessed through various means.

2. Using a pseudo-terminal (pty) to interact with the ssh-keygen process, but this approach is dependent on the exact prompt text, which changes over time.

3. Using the SSH_ASKPASS mechanism provided by OpenSSH to securely retrieve the passphrase. This involves setting the SSH_ASKPASS environment variable to a helper program that asks the user for the passphrase and reads the answer from the helper's stdout.

The article also highlights the importance of not storing the passphrase in argv after using SSH_ASKPASS, as this would still expose the secret. The preferred solution is to use the dialog provided by the SSH_ASKPASS helper program, which directly asks the user for the passphrase and prints it without passing it through the parent process.

The article emphasizes the need for developers to consider alternative channels for handling sensitive information, such as config files, environment variables, prompts, or dedicated helper programs.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

A Media Asset Is a Stateful Object

A phone can upload a sharp photo and still leave the product with nothing usable. The bytes are there. A thumbnail may exist. A background cutout may even look clean.

  • Media asset is stateful object, not just bytes
  • Vehicle listings rely heavily on media preservation
  • Four lanes - storage, database, worker, product - must agree for listing readiness

Govt Wheat Policy Has Failed Again

On 11th July 2026, the Federal Minister of National Food Security, Rana Tanveer Hussain, chaired the 9th Wheat Board meeting … Read More The post Govt Wheat Policy Has Failed Again appeared first on…

Modelling Swedish intestate succession in TypeScript

When someone in Sweden dies without a will, the Inheritance Code ( ärvdabalken , SFS 1958:637) decides who gets what. The rules fit on two printed pages.

  • Sweden's intestate succession law is outlined in the Inheritance Code (ärvdabalken)
  • TypeScript calculator adapts this algorithm for Swedish users
  • Pure function vemArver(input) determines inheritance without DOM or I/O

I Built a Free Tool to Turn Any YouTube Video Into Text — Here's How It Workst

I watch a lot of YouTube for learning: conference talks, tutorials, long podcast episodes. And I kept running into the same problem. I wanted to search, quote, or skim a video, but video isn’t text.

  • TranscriptX converts YouTube videos into text using AI for free.
  • Users paste YouTube video links to receive clean transcripts with timestamps.
  • The tool supports multiple media types and integrates with AI assistants.

More from Monday 12 October →