ilovelinux2006
Programmer
Hi Everyone,
In a bash script, I am trying to connect to another computer to transfer a file. How should I go about doing this? Through SSH? or SCP? I think the scp command is somethign like this:
scp user@server.com:/directory /directorywhereyouwantthefile -p password
What am I doing wrong? Thanks! Im going to have the bash file run in crontab, so I'd like the password to just automatically be set.
In a bash script, I am trying to connect to another computer to transfer a file. How should I go about doing this? Through SSH? or SCP? I think the scp command is somethign like this:
scp user@server.com:/directory /directorywhereyouwantthefile -p password
What am I doing wrong? Thanks! Im going to have the bash file run in crontab, so I'd like the password to just automatically be set.