How to run scp command from server on startup script
Hi,
The system - Ubuntu 9.04 updated, with added packages on Pentium 4 (2.8 Ghz).
The problem - how to run "scp" command from a server on startup script.
I have a PC, and exchanged ssh keys with the server (using commands like "ssh-keygen -t rsa " under root user.
I added a package "insserv" (from SUSE systems) to add the script to runlevel 2 3 5 .
When the PC boots, the script runs, but does not copy file from the server .
The same script runs on a "SUSE 10.3" PC, and copies the file from the server to the PC (on boot time).
I tried the commands:
/usr/bin/scp Server-
/usr/bin/scp root@Server-
The script is running, doing some commands, but does not doing this copy.
How should I make the copy run automatically on reboot?
Thanks
Ofir S
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Amarnath
- Solved:
- Last query:
- Last reply: