ilovelinux2006
Programmer
Hey everyone,
I got my server to run ssh with an rsa key, so I don't need to use a password when ssh'ing between servers. Anways, i created a bash script:
#!/bin/bash
scp file username@theserver.com:/home/user
Ok, when I bash this in the shell, It works fine 100% and exports to the other server. But when I run it with crontab to run everyone minute, it doesn't work. Does anyone know why?
I got my server to run ssh with an rsa key, so I don't need to use a password when ssh'ing between servers. Anways, i created a bash script:
#!/bin/bash
scp file username@theserver.com:/home/user
Ok, when I bash this in the shell, It works fine 100% and exports to the other server. But when I run it with crontab to run everyone minute, it doesn't work. Does anyone know why?