Seeking to use the SCP command without needing to enter the remote password to copy a file. I was trying to do it with the "root" user.
I have searched these forums and Google. I have tried a few different "How To" guides, but I am still failing to use the
I have tried the following with no success:
www.freebsd.org
My understanding is all I need to do is:
Then I did not enter a passphrase. Just left it blank when prompted.
Copied the newly created /root/.ssh/id_rsa.pub on the server (#1) to /root/.ssh/authorized_keys on the client (#2).
Restarted SSH
But when attempting on the client (#2)
I am also unable to connect via
This is my first post in the FreeBSD forums. I have been able to accomplish everything we have ever needed with FreeBSD by reading the forums and Google, but this is the first time I have been unable to accomplish something. Thank you in advance for your help.
I have searched these forums and Google. I have tried a few different "How To" guides, but I am still failing to use the
scp
command without needing a password. Can anyone recommend a method, guidance, or a "How To" guide?I have tried the following with no success:

Chapter 14. Security
Hundreds of standard practices have been authored about how to secure systems and networks, and as a user of FreeBSD, understanding how to protect against attacks and intruders is a must
My understanding is all I need to do is:
ssh-keygen -t rsa
on the server (#1)Then I did not enter a passphrase. Just left it blank when prompted.
Copied the newly created /root/.ssh/id_rsa.pub on the server (#1) to /root/.ssh/authorized_keys on the client (#2).
Restarted SSH
service sshd restart
on both server (#1) and client (#2).But when attempting on the client (#2)
scp /root/test-file root@server:/root/
I am still prompted for a password.I am also unable to connect via
ssh root@server
on the client machine without being prompted for a password.This is my first post in the FreeBSD forums. I have been able to accomplish everything we have ever needed with FreeBSD by reading the forums and Google, but this is the first time I have been unable to accomplish something. Thank you in advance for your help.
