cat ~/.ssh/*.pub | ssh [email protected] "mkdir -p /root/.ssh && cat >> /root/.ssh/authorized_keys2"
copy public key to server
Leave a reply
cat ~/.ssh/*.pub | ssh [email protected] "mkdir -p /root/.ssh && cat >> /root/.ssh/authorized_keys2"