[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#517641: ssh-copy-id: option to replace specified key with a newly created key

Package: openssh-client
Version: 1:5.1p1-5
Severity: wishlist

I'd like an option for ssh-copy-id that would login to a remote host and
replace key X by key Y.

ssh-copy-id --replace ~/new-ssh-key.pub -i ~/old-ssh-key.pub vps.somehost.org

It should be robust enough to not cut off access to the server in any
case at all. The old key must not be removed from the authorized_keys
file until it has been verified that the new key works as desired. The
commands used must not break the structure of the authorized_keys file
and should preserve all whitespace, comments etc.



Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: