Re: scp in crontab problem

2024-09-13 Thread Marcus Park
basti: /usr/bin/scp -i /home/userYX/.ssh/myKEY r...@example.com ... updated: it's really due to environment issue, after I add the '-i' path to scp, jobs run well now. Thanks basti.

Re: scp in crontab problem

2024-09-13 Thread Charles Curley
On Fri, 13 Sep 2024 20:24:51 +0800 Marcus Park wrote: > Hi list, > > I have put the private key into my debian VPS (in ~/.ssh/ dir). The private key of what? And to ~/.ssh/ on which computer. you are talking about transferring a file from one computer to another; which one? And why the privat

Re: scp in crontab problem

2024-09-13 Thread Greg Wooledge
On Fri, Sep 13, 2024 at 20:24:51 +0800, Marcus Park wrote: > I have put the private key into my debian VPS (in ~/.ssh/ dir). Does this private key have a passphrase? > When I scp a file from this VPS to another one by hand without password, it > works. > > But when I put this scp into crontab, i

Re: scp in crontab problem

2024-09-13 Thread basti
On 13.09.24 14:24, Marcus Park wrote: Hi list, I have put the private key into my debian VPS (in ~/.ssh/ dir). When I scp a file from this VPS to another one by hand without password, it works. But when I put this scp into crontab, it seems not work. The scp in crontab via private key didn'

scp in crontab problem

2024-09-13 Thread Marcus Park
Hi list, I have put the private key into my debian VPS (in ~/.ssh/ dir). When I scp a file from this VPS to another one by hand without password, it works. But when I put this scp into crontab, it seems not work. The scp in crontab via private key didn't run as I expect, nothing was copied t