Differences between version 76 and predecessor to the previous major change of SSHNotes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 76 | Last edited on Saturday, June 24, 2006 12:57:00 pm | by BrianSzymanski | Revert |
Older page: | version 75 | Last edited on Thursday, June 1, 2006 12:33:02 pm | by AristotlePagaltzis | Revert |
@@ -68,13 +68,17 @@
Host foo
HostKeyAlias example_com_9622
HostName example.com
Port 9622
+ CheckHostIP no
Host bar
HostKeyAlias example_com_9623
HostName example.com
Port 9623
+ CheckHostIP no
</verbatim>
+
+Note that your system's configuration (in ssh_config) might default to CheckHostIP being off, which means you can safely omit those lines from your configuration. YMMV.
Now instead of typing <tt>ssh -p 9622 example.com</tt>, you say <tt>ssh foo</tt> and ssh(1) will figure things out correctly.
A clumsier workaround is to add <tt>~UserKnownHostsFile ~~/.ssh/known_hosts_<i>hostname</i></tt> to each ssh_config(5) stanza, so a different list of known hosts is used for each host.