diff options
author | Damien Miller <djm@mindrot.org> | 2010-07-16 13:56:43 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2010-07-16 13:56:43 +1000 |
commit | d0244d498ba970b9d9348429eaf7a4a0ef2b903c (patch) | |
tree | eab9c2d781ef6828fe5cac0f256cf24bff5962b8 /ssh_config.5 | |
parent | 1f25ab43f4b374f920120b93ae3ed2f8521472c5 (diff) |
- djm@cvs.openbsd.org 2010/07/12 22:41:13
[ssh.c ssh_config.5]
expand %h to the hostname in ssh_config Hostname options. While this
sounds useless, it is actually handy for working with unqualified
hostnames:
Host *.*
Hostname %h
Host *
Hostname %h.example.org
"I like it" markus@
Diffstat (limited to 'ssh_config.5')
-rw-r--r-- | ssh_config.5 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ssh_config.5 b/ssh_config.5 index 531a60b5e..e7bb21ebb 100644 --- a/ssh_config.5 +++ b/ssh_config.5 | |||
@@ -34,8 +34,8 @@ | |||
34 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 34 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
35 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 35 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
36 | .\" | 36 | .\" |
37 | .\" $OpenBSD: ssh_config.5,v 1.135 2010/06/26 00:57:07 jmc Exp $ | 37 | .\" $OpenBSD: ssh_config.5,v 1.136 2010/07/12 22:41:13 djm Exp $ |
38 | .Dd $Mdocdate: June 26 2010 $ | 38 | .Dd $Mdocdate: July 12 2010 $ |
39 | .Dt SSH_CONFIG 5 | 39 | .Dt SSH_CONFIG 5 |
40 | .Os | 40 | .Os |
41 | .Sh NAME | 41 | .Sh NAME |
@@ -537,6 +537,10 @@ or for multiple servers running on a single host. | |||
537 | .It Cm HostName | 537 | .It Cm HostName |
538 | Specifies the real host name to log into. | 538 | Specifies the real host name to log into. |
539 | This can be used to specify nicknames or abbreviations for hosts. | 539 | This can be used to specify nicknames or abbreviations for hosts. |
540 | If the hostname contains the character sequence | ||
541 | .Ql %h , | ||
542 | then this will be replaced with the host name specified on the commandline | ||
543 | (this is useful for manipulating unqualified names). | ||
540 | The default is the name given on the command line. | 544 | The default is the name given on the command line. |
541 | Numeric IP addresses are also permitted (both on the command line and in | 545 | Numeric IP addresses are also permitted (both on the command line and in |
542 | .Cm HostName | 546 | .Cm HostName |