Reputation
328
Top tag
Next privilege 500 Rep.
Access review queues
Badges
2 5 15
Impact
~40k people reached

  • 0 posts edited
  • 0 helpful flags
  • 18 votes cast
Dec
9
accepted Execute rsync command over ssh with an ssh agent via crontab
Dec
9
comment Execute rsync command over ssh with an ssh agent via crontab
all i needed was to source the SSH_AUTH_SOCK and SSH_AGENT_PID env variables (i put them in .ssh-agent instead of .ssh/agent/) so this was what i ended up with: "0 9 * * * . $HOME/.ssh-agent && rsync -av $HOME/mydir remote_machine:"
Dec
9
comment Execute rsync command over ssh with an ssh agent via crontab
so do i put all of the agent stuff in a script followed by the rsync command, or can i put that in some .profile or .bashrc file that cron loads automatically when it starts a shell for a cronjob?
Dec
9
asked Execute rsync command over ssh with an ssh agent via crontab
Dec
9
awarded  Supporter
Oct
15
asked execute switch command over ssh
Oct
9
comment execute su -c over ssh
as I specified "I cannot use sudo"
Oct
8
comment execute su -c over ssh
as I specified "I cannot use sudo"
Oct
8
awarded  Scholar
Oct
8
accepted execute su -c over ssh
Oct
8
revised execute su -c over ssh
added unix tag
Oct
8
awarded  Student
Oct
8
asked execute su -c over ssh
Jul
24
awarded  Autobiographer