version 1.4.2.1, 2001/03/12 15:44:16 |
version 1.4.2.2, 2001/03/21 18:53:10 |
|
|
.\" $OpenBSD$ |
.\" $OpenBSD$ |
.\" |
.\" |
|
.\" Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>. |
|
.\" |
|
.\" Modification and redistribution in source and binary forms is |
|
.\" permitted provided that due credit is given to the author and the |
|
.\" OpenBSD project (for instance by leaving this copyright notice |
|
.\" intact). |
|
.\" |
.Dd January 1, 1996 |
.Dd January 1, 1996 |
.Dt ssh-keyscan 1 |
.Dt SSH-KEYSCAN 1 |
.Os |
.Os |
.Sh NAME |
.Sh NAME |
.Nm ssh-keyscan |
.Nm ssh-keyscan |
|
|
which have new or different keys from those in the sorted file |
which have new or different keys from those in the sorted file |
.Pa ssh_known_hosts : |
.Pa ssh_known_hosts : |
.Bd -literal |
.Bd -literal |
ssh-keyscan -f ssh_hosts | sort -u - ssh_known_hosts | \e\ |
$ ssh-keyscan -f ssh_hosts | sort -u - ssh_known_hosts | \e\ |
diff ssh_known_hosts - |
diff ssh_known_hosts - |
.Ed |
.Ed |
.Pp |
.Pp |
|
|
This is because it opens a connection to the ssh port, reads the public |
This is because it opens a connection to the ssh port, reads the public |
key, and drops the connection as soon as it gets the key. |
key, and drops the connection as soon as it gets the key. |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr ssh 1 |
.Xr ssh 1 , |
.Xr sshd 8 |
.Xr sshd 8 |
.Sh AUTHOR |
.Sh AUTHOR |
David Mazieres <dm@lcs.mit.edu> |
David Mazieres <dm@lcs.mit.edu> |