Yes it works with both commands !
So I mean, this should be enough to close the case, but I'm really
curious why the behavior changed between the two Debian versions. I
don’t even know which package is causing the issue. All I know is that
my method worked on Debian 12 but no longer works on Debian 13.
By the way, thank you very much for debugging, it will be very important
for my work.
Matthieu
On 12/5/25 22:04, Guilhem Moulin wrote:
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