On Fri, 13 Sep 2024 20:24:51 +0800
Marcus Park <m...@privatembox.com> 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 private key? Usually one transfers the public key from
one's own computer to another, and one keeps the private key, well,
private.

> 
> 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 to
> peer.

Don't tell us what you did, show us. Copy exactly the line(s) from your
crontab file and paste it into your email.

Did you get an email from cron? If so, show us that.

> 
> Can you help?

Not without better information.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/

Reply via email to