SCP without Password help
Im trying to send a file in a script from one Solaris box to another. I used the following commands to set up the ssh but I am still being prompted for a password.
Code:
ssh-keygen -t rsa The user on the origin server is root and the user on the remote server is oracle. Do they have to be the same user on both machines? |
I think the permissions on your authorized_keys file should be 600. You will have to set this at the remote end after copying the file. I usually copy the key file only, then perform the copy-append at the remote end, so that any prior keys are not overwritten.
I've never used both rsa & dsa encryption, only one or the other. Not sure if that is a problem. The authorized_keys file must be owned by the uid that will be using it, oracle, in your case. --- rod. |
thanks for the reply. so on the remote machine, the authorized_keys file should be in the folder "export/home/oracle/.ssh" correct?
|
You generated your keys in a rather bad way. The way you did it could have overwritten the local user's authorized_keys file, depending on what directory you're in. The correct way to do it is like:
Code:
host1 ~# ssh-keygen -t rsa |
All times are GMT -5. The time now is 01:47 AM. |