Crontab a command with password input automatically
up vote
-1
down vote
favorite
I'd like to sync the repository with remote regularly with crontab
greedy@algorithms:~$ rsync -av root@me.com:/root/books .
root@me.com's password:
The above command need to have password input which cause it impossible to set a timely crontab
How could I input the password automatically without artificial intervening.
bash
add a comment |
up vote
-1
down vote
favorite
I'd like to sync the repository with remote regularly with crontab
greedy@algorithms:~$ rsync -av root@me.com:/root/books .
root@me.com's password:
The above command need to have password input which cause it impossible to set a timely crontab
How could I input the password automatically without artificial intervening.
bash
1
Best bet in this case is to set up ssh keys so that you can log in without entering a password.
– Doug O'Neal
Nov 29 at 23:31
great, could you please transmit the comment to answer. @DougO'Neal
– recursivleyGreedy
Nov 29 at 23:42
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I'd like to sync the repository with remote regularly with crontab
greedy@algorithms:~$ rsync -av root@me.com:/root/books .
root@me.com's password:
The above command need to have password input which cause it impossible to set a timely crontab
How could I input the password automatically without artificial intervening.
bash
I'd like to sync the repository with remote regularly with crontab
greedy@algorithms:~$ rsync -av root@me.com:/root/books .
root@me.com's password:
The above command need to have password input which cause it impossible to set a timely crontab
How could I input the password automatically without artificial intervening.
bash
bash
asked Nov 29 at 23:30
recursivleyGreedy
164
164
1
Best bet in this case is to set up ssh keys so that you can log in without entering a password.
– Doug O'Neal
Nov 29 at 23:31
great, could you please transmit the comment to answer. @DougO'Neal
– recursivleyGreedy
Nov 29 at 23:42
add a comment |
1
Best bet in this case is to set up ssh keys so that you can log in without entering a password.
– Doug O'Neal
Nov 29 at 23:31
great, could you please transmit the comment to answer. @DougO'Neal
– recursivleyGreedy
Nov 29 at 23:42
1
1
Best bet in this case is to set up ssh keys so that you can log in without entering a password.
– Doug O'Neal
Nov 29 at 23:31
Best bet in this case is to set up ssh keys so that you can log in without entering a password.
– Doug O'Neal
Nov 29 at 23:31
great, could you please transmit the comment to answer. @DougO'Neal
– recursivleyGreedy
Nov 29 at 23:42
great, could you please transmit the comment to answer. @DougO'Neal
– recursivleyGreedy
Nov 29 at 23:42
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
You should set up your account to be able to ssh to root@me.com
without a password by using ssh keys. Many, many sources on how to to this are available via a web search.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
You should set up your account to be able to ssh to root@me.com
without a password by using ssh keys. Many, many sources on how to to this are available via a web search.
add a comment |
up vote
1
down vote
accepted
You should set up your account to be able to ssh to root@me.com
without a password by using ssh keys. Many, many sources on how to to this are available via a web search.
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
You should set up your account to be able to ssh to root@me.com
without a password by using ssh keys. Many, many sources on how to to this are available via a web search.
You should set up your account to be able to ssh to root@me.com
without a password by using ssh keys. Many, many sources on how to to this are available via a web search.
answered Nov 29 at 23:45
Doug O'Neal
26115
26115
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1097293%2fcrontab-a-command-with-password-input-automatically%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Best bet in this case is to set up ssh keys so that you can log in without entering a password.
– Doug O'Neal
Nov 29 at 23:31
great, could you please transmit the comment to answer. @DougO'Neal
– recursivleyGreedy
Nov 29 at 23:42