#SSH argument tockens

Arguments to some keywords can make use of tokens


%%
A literal ‘%’.
%C
Hash of %l%h%p%r.
%d
Local user's home directory.
%f
The fingerprint of the server's host key.
%H
The known_hosts hostname or address that is being searched for.
%h
The remote hostname.
%I
A string describing the reason for a KnownHostsCommand execution: either ADDRESS when looking up a host by address (only when CheckHostIP is enabled), HOSTNAME when searching by hostname, or ORDER when preparing the host key algorithm preference list to use for the destination host.
%i
The local user ID.
%K
The base64 encoded host key.
%k
The host key alias if specified, otherwise the orignal remote hostname given on the command line.
%L
The local hostname.
%l
The local hostname, including the domain name.
%n
The original remote hostname, as given on the command line.
%p
The remote port.
%r
The remote username.
%T
The local tun(4) or tap(4) network interface assigned if tunnel forwarding was requested, or "NONE" otherwise.
%t
The type of the server host key, e.g. ssh-ed25519
%u
The local username.

Comments