This is what I use, always worked:
Generate key:
ssh-keygen
NOTE: when generating the key use a blank password or it will ask for it anytime you use that key.
Copying your Public Key Using SSH:
cat ~/.ssh/id_rsa.pub | ssh root@remote_host "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Recommended Posts
Posted by JorgeB,
0 reactions
Go to this post
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.