Differences between version 77 and predecessor to the previous major change of SSHNotes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 77 | Last edited on Sunday, June 25, 2006 8:45:10 am | by AristotlePagaltzis | 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 <tt>ssh_config</tt>) might default to <tt>CheckHostIP</tt> 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.