summaryrefslogtreecommitdiff
path: root/ssh_config.5
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2020-05-29 04:25:40 +0000
committerDamien Miller <djm@mindrot.org>2020-05-29 15:46:47 +1000
commit4a1b46e6d032608b7ec00ae51c4e25b82f460b05 (patch)
tree7f345cd0424c5b6f7eff6e5d0f1b52747a960f9e /ssh_config.5
parentc9bab1d3a9e183cef3a3412f57880a0374cc8cb2 (diff)
upstream: Allow some keywords to expand shell-style ${ENV}
environment variables on the client side. The supported keywords are CertificateFile, ControlPath, IdentityAgent and IdentityFile, plus LocalForward and RemoteForward when used for Unix domain socket paths. This would for example allow forwarding of Unix domain socket paths that change at runtime. bz#3140, ok djm@ OpenBSD-Commit-ID: a4a2e801fc2d4df2fe0e58f50d9c81b03822dffa
Diffstat (limited to 'ssh_config.5')
-rw-r--r--ssh_config.553
1 files changed, 43 insertions, 10 deletions
diff --git a/ssh_config.5 b/ssh_config.5
index dc010ccbd..001544dd3 100644
--- a/ssh_config.5
+++ b/ssh_config.5
@@ -33,8 +33,8 @@
33.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 33.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35.\" 35.\"
36.\" $OpenBSD: ssh_config.5,v 1.325 2020/04/11 20:20:09 jmc Exp $ 36.\" $OpenBSD: ssh_config.5,v 1.326 2020/05/29 04:25:40 dtucker Exp $
37.Dd $Mdocdate: April 11 2020 $ 37.Dd $Mdocdate: May 29 2020 $
38.Dt SSH_CONFIG 5 38.Dt SSH_CONFIG 5
39.Os 39.Os
40.Sh NAME 40.Sh NAME
@@ -389,9 +389,11 @@ or
389.Pp 389.Pp
390Arguments to 390Arguments to
391.Cm CertificateFile 391.Cm CertificateFile
392may use the tilde syntax to refer to a user's home directory 392may use the tilde syntax to refer to a user's home directory,
393or the tokens described in the 393the tokens described in the
394.Sx TOKENS 394.Sx TOKENS
395section and environment variables as described in the
396.Sx ENVIRONMENT VARIABLES
395section. 397section.
396.Pp 398.Pp
397It is possible to have multiple certificate files specified in 399It is possible to have multiple certificate files specified in
@@ -551,9 +553,11 @@ section above or the string
551to disable connection sharing. 553to disable connection sharing.
552Arguments to 554Arguments to
553.Cm ControlPath 555.Cm ControlPath
554may use the tilde syntax to refer to a user's home directory 556may use the tilde syntax to refer to a user's home directory,
555or the tokens described in the 557the tokens described in the
556.Sx TOKENS 558.Sx TOKENS
559section and environment variables as described in the
560.Sx ENVIRONMENT VARIABLES
557section. 561section.
558It is recommended that any 562It is recommended that any
559.Cm ControlPath 563.Cm ControlPath
@@ -934,9 +938,11 @@ the location of the socket.
934.Pp 938.Pp
935Arguments to 939Arguments to
936.Cm IdentityAgent 940.Cm IdentityAgent
937may use the tilde syntax to refer to a user's home directory 941may use the tilde syntax to refer to a user's home directory,
938or the tokens described in the 942the tokens described in the
939.Sx TOKENS 943.Sx TOKENS
944section and environment variables as described in the
945.Sx ENVIRONMENT VARIABLES
940section. 946section.
941.It Cm IdentityFile 947.It Cm IdentityFile
942Specifies a file from which the user's DSA, ECDSA, authenticator-hosted ECDSA, 948Specifies a file from which the user's DSA, ECDSA, authenticator-hosted ECDSA,
@@ -1152,8 +1158,10 @@ indicates that the listening port be bound for local use only, while an
1152empty address or 1158empty address or
1153.Sq * 1159.Sq *
1154indicates that the port should be available from all interfaces. 1160indicates that the port should be available from all interfaces.
1155Unix domain socket paths accept the tokens described in the 1161Unix domain socket paths may use the tokens described in the
1156.Sx TOKENS 1162.Sx TOKENS
1163section and environment variables as described in the
1164.Sx ENVIRONMENT VARIABLES
1157section. 1165section.
1158.It Cm LogLevel 1166.It Cm LogLevel
1159Gives the verbosity level that is used when logging messages from 1167Gives the verbosity level that is used when logging messages from
@@ -1423,8 +1431,10 @@ Multiple forwardings may be specified, and additional
1423forwardings can be given on the command line. 1431forwardings can be given on the command line.
1424Privileged ports can be forwarded only when 1432Privileged ports can be forwarded only when
1425logging in as root on the remote machine. 1433logging in as root on the remote machine.
1426Unix domain socket paths accept the tokens described in the 1434Unix domain socket paths may use the tokens described in the
1427.Sx TOKENS 1435.Sx TOKENS
1436section and environment variables as described in the
1437.Sx ENVIRONMENT VARIABLES
1428section. 1438section.
1429.Pp 1439.Pp
1430If the 1440If the
@@ -1875,6 +1885,29 @@ accepts all tokens.
1875.Pp 1885.Pp
1876.Cm ProxyCommand 1886.Cm ProxyCommand
1877accepts the tokens %%, %h, %n, %p, and %r. 1887accepts the tokens %%, %h, %n, %p, and %r.
1888.Sh ENVIRONMENT VARIABLES
1889Arguments to some keywords can be expanded at runtime from environment
1890variables on the client by enclosing them in
1891.Ic ${} ,
1892for example
1893.Ic ${HOME}/.ssh
1894would refer to the user's .ssh directory.
1895If a specified environment variable does not exist then an error will be
1896returned and the setting for that keyword will be ignored.
1897.Pp
1898The keywords
1899.El
1900.Cm CertificateFile ,
1901.Cm ControlPath ,
1902.Cm IdentityAgent
1903and
1904.Cm IdentityFile
1905support environment variables.
1906The keywords
1907.Cm LocalForward
1908and
1909.Cm RemoteForward
1910support environment variables only for Unix domain socket paths.
1878.Sh FILES 1911.Sh FILES
1879.Bl -tag -width Ds 1912.Bl -tag -width Ds
1880.It Pa ~/.ssh/config 1913.It Pa ~/.ssh/config