SSH client and bracketed paste mode
Demi M. Obenour
demiobenour at gmail.com
Sun Nov 1 02:02:56 AEDT 2020
On 10/30/20 5:22 PM, Thorsten Glaser wrote:
> Hi,
>
> lemme correct that for you:
>
>> Using a terminal with bracketed paste mode (see [0], [1]), I
>> am not able to paste text while being in the "~C" command line
>> mode.
>>
>> The reason for that is, that while being in that special mode,
> the terminal sends the bracketed paste control characters to
> OpenSSH, which does not expect it.
>
>> I tried to figure out, which of the three involved components
>> might be at fault. The component stack is:
>>
>> * terminal
>> * local shell
>> * ssh
>> * remote shell
>
> This works as follows:
>
> • terminal sets up normal operation
> • local shell starts ssh
> • ssh starts remote shell on the terminal
> • remote shell instructs the terminal to switch to bracketed paste mode
>
> Now when you use an SSH escape, ssh temporarily accesses the
> terminal, but bracketed paste mode is still active, which
> leads to confusion.
It would still be nice if SSH implemented support for it. Bracketed
paste mode is a useful security feature, when combined with terminals
that refuse to paste control characters.
Sincerely,
Demi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xB288B55FFF9C22C1.asc
Type: application/pgp-keys
Size: 3099 bytes
Desc: not available
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20201031/8abb284b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20201031/8abb284b/attachment.asc>
More information about the openssh-unix-dev
mailing list