diff options
author | djm <djm> | 2010-07-16 03:56:43 +0000 |
---|---|---|
committer | djm <djm> | 2010-07-16 03:56:43 +0000 |
commit | 8b4f801e659af1ed676c8cc9202e1ea50385be5d (patch) | |
tree | 8be6e1b8d566b26dd2040b97da3bc9a06d2ca18c /ssh_config.5 | |
parent | e9871aed99b1c712e4f75fbf9aef14a8d19add7a (diff) | |
download | openssh-8b4f801e659af1ed676c8cc9202e1ea50385be5d.tar.gz |
- 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 531a60b5..e7bb21eb 100644 --- a/ssh_config.5 +++ b/ssh_config.5 @@ -34,8 +34,8 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $OpenBSD: ssh_config.5,v 1.135 2010/06/26 00:57:07 jmc Exp $ -.Dd $Mdocdate: June 26 2010 $ +.\" $OpenBSD: ssh_config.5,v 1.136 2010/07/12 22:41:13 djm Exp $ +.Dd $Mdocdate: July 12 2010 $ .Dt SSH_CONFIG 5 .Os .Sh NAME @@ -537,6 +537,10 @@ or for multiple servers running on a single host. .It Cm HostName Specifies the real host name to log into. This can be used to specify nicknames or abbreviations for hosts. +If the hostname contains the character sequence +.Ql %h , +then this will be replaced with the host name specified on the commandline +(this is useful for manipulating unqualified names). The default is the name given on the command line. Numeric IP addresses are also permitted (both on the command line and in .Cm HostName |