Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #273052
| From | basti <mailinglist@unix-solution.de> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: scp in crontab problem |
| Date | 2024-09-13 14:50 +0200 |
| Message-ID | <JmdUl-bZ5c-1@gated-at.bofh.it> (permalink) |
| References | <JmdKG-bZ23-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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't run as I expect, nothing was copied to peer. > > Can you help? > > Thank you. > Marcus > Cron doesn't know anything about your environment variables. You can set PATH or HOME or use absolute paths. /usr/bin/scp -i /home/userYX/.ssh/myKEY root@example.com ... Best regards,
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
scp in crontab problem Marcus Park <marp@privatembox.com> - 2024-09-13 14:40 +0200
Re: scp in crontab problem basti <mailinglist@unix-solution.de> - 2024-09-13 14:50 +0200
Re: scp in crontab problem Marcus Park <marp@privatembox.com> - 2024-09-14 00:30 +0200
Re: scp in crontab problem Greg Wooledge <greg@wooledge.org> - 2024-09-13 15:00 +0200
Re: scp in crontab problem Charles Curley <charlescurley@charlescurley.com> - 2024-09-13 15:20 +0200
csiph-web