Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • if [ -f ~/.ssh/identity.pub ] ; then
            echo 'Transferring identity.pub -> known_hosts...'
            scp ~/.ssh/identity.pub $1:~/.ssh/known_hosts
    fi

    I think you mean identity.pub -> .ssh/authorised_keys here

    if [ -f ~/.ssh/id_dsa.pub ] ; then
            echo 'Transferring id_dsa.pub -> authorized_keys2...'
            scp ~/.ssh/id_dsa.pub $1:~/.ssh/authorized_keys2
    fi

    Ow, you just blatted the ssh public key that was alrea