Differences between version 73 and previous revision of SSHNotes.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 73 | Last edited on Thursday, March 9, 2006 12:55:04 pm | by SamCook | Revert |
Older page: | version 72 | Last edited on Wednesday, March 8, 2006 10:53:54 pm | by LawrenceDoliveiro | Revert |
@@ -56,17 +56,17 @@
Better technique: set up aliases for the different host/port combinations in your ssh_config file, e.g.
Host machine89
- Hostkeyalias
machine89
- Host
example.com
+ !HostKeyAlias
machine89
+ !HostName
example.com
Port 8922
Host machine90
- Hostkeyalias
machine90
- Host
example.com
+ !HostKeyAlias
machine90
+ !HostName
example.com
Port 9022
-The "Hostkeyalias
" keyword specifies an alternative name (rather than the host name) to use for finding the host key in your known-hosts file, whereas the "Host" keyword is what you type on the command line instead of the host name. This means you can type "ssh machine89" instead of "ssh -p 8922 example.com" and "ssh machine90" instead of "ssh -p 9022 example.com". See the ssh_config(5) man page for other options you can put in your "Host" stanzas, including different usernames etc.
+The "!HostKeyAlias
" keyword specifies an alternative name (rather than the host name) to use for finding the host key in your known-hosts file, whereas the "Host" keyword is what you type on the command line instead of the host name. This means you can type "ssh machine89" instead of "ssh -p 8922 example.com" and "ssh machine90" instead of "ssh -p 9022 example.com". See the ssh_config(5) man page for other options you can put in your "Host" stanzas, including different usernames etc.
!!!Port Forwarding
[SSH] can forward ports across its encrypted tunnel. Using the following command,