mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 04:24:52 +02:00
ssh kitten: match hostnames against both remote hostname and hostname used on the command line to connect to it
This commit is contained in:
@@ -24,6 +24,8 @@ Comments can be added to the config file as lines starting with the ``#``
|
||||
character. This works only if the ``#`` character is the first character
|
||||
in the line.
|
||||
|
||||
.. _include:
|
||||
|
||||
You can include secondary config files via the :code:`include` directive. If
|
||||
you use a relative path for :code:`include`, it is resolved with respect to the
|
||||
location of the current config file. Note that environment variables are
|
||||
|
||||
@@ -56,19 +56,18 @@ Additionally, you can pass config options on the command line:
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
kitty +kitten ssh --kitten hostname=somehost --kitten interpreter=python ...
|
||||
kitty +kitten ssh --kitten interpreter=python servername
|
||||
|
||||
The :code:`--kitten` argument can be specified multiple times, with directives
|
||||
from :file:`ssh.conf`. These are merged with :file:`ssh.conf` as if they were
|
||||
appended to the end of that file. It is important to specify the :opt:`hostname <kitten-ssh.hostname>` as
|
||||
the first setting, otherwise the last :opt:`hostname <kitten-ssh.hostname>` from :file:`ssh.conf` will be
|
||||
used.
|
||||
appended to the end of that file. They apply only to the host being SSHed to
|
||||
by this invocation.
|
||||
|
||||
.. note::
|
||||
|
||||
Because of the poor design of SSH, any typing you do before the shell prompt
|
||||
appears may be lost. So ideally dont start typing till you see the shell
|
||||
prompt :)
|
||||
Because of limitations of the design of SSH, any typing you do before the
|
||||
shell prompt appears may be lost. So ideally dont start typing till you see
|
||||
the shell prompt 😇.
|
||||
|
||||
|
||||
A real world example
|
||||
|
||||
Reference in New Issue
Block a user