=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/ssh-keygen.1,v retrieving revision 1.142 retrieving revision 1.143 diff -u -r1.142 -r1.143 --- src/usr.bin/ssh/ssh-keygen.1 2017/06/28 01:09:22 1.142 +++ src/usr.bin/ssh/ssh-keygen.1 2017/07/07 03:53:12 1.143 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ssh-keygen.1,v 1.142 2017/06/28 01:09:22 djm Exp $ +.\" $OpenBSD: ssh-keygen.1,v 1.143 2017/07/07 03:53:12 djm Exp $ .\" .\" Author: Tatu Ylonen .\" Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -35,7 +35,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: June 28 2017 $ +.Dd $Mdocdate: July 7 2017 $ .Dt SSH-KEYGEN 1 .Os .Sh NAME @@ -126,6 +126,7 @@ .Op Fl f Ar input_keyfile .Nm ssh-keygen .Fl A +.Op Fl f Ar prefix_path .Nm ssh-keygen .Fl k .Fl f Ar krl_file @@ -224,6 +225,10 @@ for which host keys do not exist, generate the host keys with the default key file path, an empty passphrase, default bits for the key type, and default comment. +If a +.Fl f +option has been specified, then its argument is used as a prefix to the +default path for the resulting host key files. This is used by .Pa /etc/rc to generate new host keys.