Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SCP Shell Script Authentication

Status
Not open for further replies.

dessie1981

Programmer
May 9, 2006
116
GB
Hi Guys,

I'm having a problem when i want to scp some db dump files onto another server in our network in a shell script.

I am being prompted for a password and i do not want to put the password in the shell script.

Is there a secure way of feeding the password to the prompt??

Regards
Dessie
 
Try searching the forum as this has been discussed on a number of occasions. Basically you need to set it up to use public/private key authentication. A good keyword to search for is ssh-keygen.

Annihilannic.
 
Just watch out for the permissions on the .ssh dir and the authorized_heys files as if these are not correct ssh will default back and prompt you for a password, appearing like it is not working.

Regards
Dessie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top