https://bugzilla.mindrot.org/show_bug.cgi?id=2128

Justin Garrison <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Justin Garrison <[email protected]> ---
Created attachment 2317
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2317&action=edit
Alternate ssh-copy-id script

I added the following check to to ssh-copy-id script from my Linux Mint
15 (OpenSSH 6.1p1) machine.

grep -f ~/.ssh/authorized_keys > /dev/null 2>&1; ! [ -a
~/.ssh/authorized_keys ] || [ $? -ne 0 ] && 

(please view the attached file for context)

I also verified that the modified section was the same on RHEL 6.4
(OpenSSH 5.3) and Fedora 14 (OpenSSH 5.5p1) but could not verify the
file contents from the latest OpenSSH package. I am assuming the line
is the same in the latest version.

This test will check if the public key contents already exists in the
authorized_keys file or if the authorized_keys file does not exist. If
the public key is already in the file or it does not exist then the
public key contents will be appended to the file (and create it if
necessary).

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to