• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

SCP Auto Log On

calhoun

Gawd
Joined
Jan 20, 2003
Messages
608
Hi.

I am putting together a script to backup a shared folder and scp it to an off-site location (just in case :) )

I was wondering, is it possible to pass to scp the password of the remote host, that way I dont need to nessesarily be at the system / ssh'ed in whilst the back up is processed?

I had tried passing it in via -p password (i know thats how other programs that do accept it would ask but it just said that the password didnt exist doh) Also tried redirecting it in from a file at run time, just totally ignored it and prompted for password anyway.

regards
 
Probably the best thing to do in that case would be to use ssh keys with an empty passphrase. Be warned that if the private key gets compromized then its possible to ssh in as that user without any further authentication.
 
Back
Top