diff options
author | Philip Hands <phil@hands.com> | 2020-09-16 16:13:30 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-10-13 11:52:47 +1100 |
commit | a9c9e91a82bc1a2cf801b4e3ef27a941dbd27717 (patch) | |
tree | 1870f40c60f27b3a4e75fdbf4a89d9d14852e4c6 /contrib/ssh-copy-id.1 | |
parent | f92424970c02b78852ff149378c7f2616ada4ccf (diff) | |
download | openssh-git-a9c9e91a82bc1a2cf801b4e3ef27a941dbd27717.tar.gz |
add -s flag: to install keys via SFTP
This is prompted by:
https://bugzilla.mindrot.org/show_bug.cgi?id=3201
Thanks go to Matthias Blümel for the idea, and the helpful patch, from
which this patch grew.
SSH-Copy-ID-Upstream: f7c76dc64427cd20287a6868f672423b62057614
Diffstat (limited to 'contrib/ssh-copy-id.1')
-rw-r--r-- | contrib/ssh-copy-id.1 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/ssh-copy-id.1 b/contrib/ssh-copy-id.1 index b75a8836..c141a296 100644 --- a/contrib/ssh-copy-id.1 +++ b/contrib/ssh-copy-id.1 @@ -1,5 +1,5 @@ .ig \" -*- nroff -*- -Copyright (c) 1999-2016 hands.com Ltd. <http://hands.com/> +Copyright (c) 1999-2020 hands.com Ltd. <http://hands.com/> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions @@ -31,6 +31,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .Nm .Op Fl f .Op Fl n +.Op Fl s .Op Fl i Op Ar identity_file .Op Fl p Ar port .Op Fl o Ar ssh_option @@ -84,6 +85,12 @@ in more than one copy of the key being installed on the remote system. .It Fl n do a dry-run. Instead of installing keys on the remote system simply prints the key(s) that would have been installed. +.It Fl s +SFTP mode: usually the public keys are installed by executing commands on the remote side. +With this option the user's +.Pa ~/.ssh/authorized_keys +file will be downloaded, modified locally and uploaded with sftp. +This option is useful if the server has restrictions on commands which can be used on the remote side. .It Fl h , Fl ? Print Usage summary .It Fl p Ar port , Fl o Ar ssh_option |