summaryrefslogtreecommitdiff
path: root/ssh_config.5
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2020-07-17 03:23:10 +0000
committerDamien Miller <djm@mindrot.org>2020-07-17 13:52:46 +1000
commitc4f239944a4351810fd317edf408bdcd5c0102d9 (patch)
treeb2c83f10aad596cc6eba01f94eafe3b43a6bae42 /ssh_config.5
parentdbaaa01daedb423c38124a72c471982fb08a16fb (diff)
upstream: Add %-TOKEN, environment variable and tilde expansion to
UserKnownHostsFile, allowing the file to be automagically split up in the configuration (eg bz#1654). ok djm@, man page parts jmc@ OpenBSD-Commit-ID: 7e1b406caf147638bb51558836a72d6cc0bd1b18
Diffstat (limited to 'ssh_config.5')
-rw-r--r--ssh_config.518
1 files changed, 13 insertions, 5 deletions
diff --git a/ssh_config.5 b/ssh_config.5
index d5c561a10..fce59d13a 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.328 2020/05/29 05:48:39 jmc Exp $ 36.\" $OpenBSD: ssh_config.5,v 1.329 2020/07/17 03:23:10 dtucker Exp $
37.Dd $Mdocdate: May 29 2020 $ 37.Dd $Mdocdate: July 17 2020 $
38.Dt SSH_CONFIG 5 38.Dt SSH_CONFIG 5
39.Os 39.Os
40.Sh NAME 40.Sh NAME
@@ -1738,6 +1738,12 @@ having to remember to give the user name on the command line.
1738.It Cm UserKnownHostsFile 1738.It Cm UserKnownHostsFile
1739Specifies one or more files to use for the user 1739Specifies one or more files to use for the user
1740host key database, separated by whitespace. 1740host key database, separated by whitespace.
1741Each filename may use tilde notation to refer to the user's home directory,
1742the tokens described in the
1743.Sx TOKENS
1744section and environment variables as described in the
1745.Sx ENVIRONMENT VARIABLES
1746section.
1741The default is 1747The default is
1742.Pa ~/.ssh/known_hosts , 1748.Pa ~/.ssh/known_hosts ,
1743.Pa ~/.ssh/known_hosts2 . 1749.Pa ~/.ssh/known_hosts2 .
@@ -1874,8 +1880,9 @@ The local username.
1874.Cm LocalForward , 1880.Cm LocalForward ,
1875.Cm Match exec , 1881.Cm Match exec ,
1876.Cm RemoteCommand , 1882.Cm RemoteCommand ,
1883.Cm RemoteForward ,
1877and 1884and
1878.Cm RemoteForward 1885.Com UserKnownHostsFile
1879accept the tokens %%, %C, %d, %h, %i, %L, %l, %n, %p, %r, and %u. 1886accept the tokens %%, %C, %d, %h, %i, %L, %l, %n, %p, %r, and %u.
1880.Pp 1887.Pp
1881.Cm Hostname 1888.Cm Hostname
@@ -1899,9 +1906,10 @@ returned and the setting for that keyword will be ignored.
1899The keywords 1906The keywords
1900.Cm CertificateFile , 1907.Cm CertificateFile ,
1901.Cm ControlPath , 1908.Cm ControlPath ,
1902.Cm IdentityAgent 1909.Cm IdentityAgent ,
1903and
1904.Cm IdentityFile 1910.Cm IdentityFile
1911and
1912.Cm UserKnownHostsFile
1905support environment variables. 1913support environment variables.
1906The keywords 1914The keywords
1907.Cm LocalForward 1915.Cm LocalForward