LWN: Comments on "OpenSSH 8.1 released" https://lwn.net/Articles/801829/ This is a special feed containing comments posted to the individual LWN article titled "OpenSSH 8.1 released". en-us Thu, 25 Sep 2025 16:19:44 +0000 Thu, 25 Sep 2025 16:19:44 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net OpenSSH 8.1 released https://lwn.net/Articles/802075/ https://lwn.net/Articles/802075/ toymachine <div class="FormattedComment"> Thanks for the heads up! Time to upgrade!<br> </div> Fri, 11 Oct 2019 14:00:23 +0000 OpenSSH 8.1 released https://lwn.net/Articles/802039/ https://lwn.net/Articles/802039/ nybble41 <pre>( socket=/tmp/stdio-$$-$RANDOM; socat -t1000 UNIX-LISTEN:$socket - &amp; exec &lt;&gt;/dev/null 1&gt;&amp;0 2&gt;&amp;0; ssh -R $socket:$socket remotehost -t -- bash -c \ "'trap \"rm -f $socket\" EXIT; GPG_TTY=\$(tty) socat -t1000 UNIX-CONNECT:$socket EXEC:\"gpg --clearsign\",nofork'" \ 0&lt;&gt;/dev/tty 1&gt;&amp;0 2&gt;&amp;0; ) &lt;file &gt;file.asc</pre> <p>OK, not the prettiest bit of shell-code ever, but it gets the job done. The remote GPG has its pseudo-terminal to prompt for the passphrase, connected to /dev/tty on the client, and the original stdin and stdout are forwarded separately via a bidirectional Unix-domain socket. Fri, 11 Oct 2019 06:35:25 +0000 OpenSSH 8.1 released https://lwn.net/Articles/802036/ https://lwn.net/Articles/802036/ wahern <div class="FormattedComment"> I'm going to go out on a limb here and guess that the issue is that GPG will want to prompt for a password to decrypt the signing key, but because stdin is the input to be signed, and there are no other input channels available, it has no way of reading the password. Normally the password would be read from /dev/tty, bypassing stdin, but on a remote ssh session those effectively reference the same SSH protocol channel. I can't figure out what any of that has to do with stderr, other than perhaps GnuPG might write the prompt to stderr instead of /dev/tty, which might be less convenient if you'd like to separate the prompt from diagnostic messages.<br> <p> </div> Fri, 11 Oct 2019 02:09:20 +0000 OpenSSH 8.1 released https://lwn.net/Articles/802035/ https://lwn.net/Articles/802035/ wahern <p> What does that have to do with TTYs and stderr? </p> <pre><code> $ echo foo | ssh somehost tee /dev/stderr &gt;/tmp/foo.stdout 2&gt;/tmp/foo.stderr $ cat /tmp/foo.stdout ~ foo $ cat /tmp/foo.stderr ~ foo </code></pre> Fri, 11 Oct 2019 01:43:45 +0000 OpenSSH 8.1 released https://lwn.net/Articles/801975/ https://lwn.net/Articles/801975/ mirabilos <div class="FormattedComment"> Perhaps this representation is more easily understandable:<br> <p> cat file | ssh remotehost gpg --clearsign | cat &gt;file.asc<br> <p> Basically, I’m taking a local file, sending it over ssh to remotehost to sign, and save the result in another local file.<br> </div> Thu, 10 Oct 2019 13:53:30 +0000 OpenSSH 8.1 released https://lwn.net/Articles/801956/ https://lwn.net/Articles/801956/ XTerminator ok what's that supposed to do in English? You're fetching a file over ssh and sign it via gpg? Thu, 10 Oct 2019 12:29:47 +0000 OpenSSH 8.1 released https://lwn.net/Articles/801950/ https://lwn.net/Articles/801950/ mirabilos <div class="FormattedComment"> &lt;file ssh remotehost gpg --clearsign &gt;file.asc<br> </div> Thu, 10 Oct 2019 11:24:14 +0000 OpenSSH 8.1 released https://lwn.net/Articles/801945/ https://lwn.net/Articles/801945/ XTerminator in what context could this be useful? Thu, 10 Oct 2019 11:03:49 +0000 OpenSSH 8.1 released https://lwn.net/Articles/801903/ https://lwn.net/Articles/801903/ mirabilos <div class="FormattedComment"> Now if ssh(1) would just consider that fd 2 could also carry a TTY reference, or even allow one to be passed on fd 3…<br> </div> Wed, 09 Oct 2019 21:07:40 +0000