Update the how it works section

This commit is contained in:
Kovid Goyal 2022-03-17 09:31:03 +05:30
parent 2d772d7243
commit dea79f16d0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -107,16 +107,18 @@ editor, respectively:
How it works How it works
---------------- ----------------
The ssh kitten works by having SSH transmit and execute a POSIX sh (or optionally The ssh kitten works by having SSH transmit and execute a POSIX sh (or
Python) bootstrap script on the remote server using an :opt:`interpreter optionally Python) bootstrap script on the remote server using an
<kitten-ssh.interpreter>`. This script asks kitty for the setup data over :opt:`interpreter <kitten-ssh.interpreter>`. This script reads setup data over
the tty device, which kitty sends as a tarball. The script extracts it and the tty device, which kitty sends as a base64 encoded tarball. The script
places the :opt:`files <kitten-ssh.copy>` and sets the :opt:`environment extracts it and places the :opt:`files <kitten-ssh.copy>` and sets the
variables <kitten-ssh.env>` before finally launching the :opt:`login shell :opt:`environment variables <kitten-ssh.env>` before finally launching the
<kitten-ssh.login_shell>` with shell integration enabled. The data is requested :opt:`login shell <kitten-ssh.login_shell>` with shell integration enabled. The
with a one-time random password that is generated when the script is transmitted, so data is requested by the kitten over the TTY with a random one time password.
that on the remote server, only the script can request data transmission over kitty reads the request and if the password matches a password pre-stored in
the TTY, any other requests are responded to by errors. shared memory on the localhost by the kitten, the transmission is allowed. If
your OpenSSH version is >= 8.4 then the data is transmitted instantly without
any roundtrip delay.
.. note:: .. note::