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