On Fri, 05 Dec 2025 at 21:08:24 +0100, Matthieu Meurillon wrote: > matthieu@terminator:~$ ssh -T [email protected] <<<'passphrase'
Oh my bad, here strings add a linefeed which is passed along with the
passphrase. That linefeed is trimmed when using the interactive mode,
see the “Passphrase processing for LUKS” section in cryptsetup(8).
How about
printf '%s' "$REAL_PASSPHRASE" | ssh -T [email protected]
or
printf '%s' "$REAL_PASSPHRASE" | ssh [email protected] /nonexistent
--
Guilhem.
signature.asc
Description: PGP signature

