Re: using "at" and ssh



>>>>> "RR" == RR <Please_do_not_send_email@xxxxxxxxxxx> writes:

RR> I have a script that uses ssh. I'd like to schedule it to run
RR> when I'm not logged on, like in the middle of the night.

RR> When I log on, I do my "ssh-agent bash" then "ssh-add" followed by
RR> my passphrase. I can then run my script under "at" with no
RR> problem -- as long as I remain logged on my putty window.

RR> But when I set the command to run under at after I've logged off,
RR> it wants my passphrase again and I get:

RR> Bad passphrase. Permission denied.

RR> Does anybody know how to make this work, perhaps some other way?

http://www.snailbook.com/faq/no-passphrase.auto.html

--
Richard Silverman
res@xxxxxxxx

.



Relevant Pages

  • Re: scp and scripts?
    ... The following is basically what I want the script to do, ... >> but I heard scp will not work with authentication. ... > an SSH key of the appropriate type. ... > want a passphrase; press enter to use a blank passphrase. ...
    (Debian-User)
  • Re: Passphraseless SSH login and cron
    ... order to do SSH logins without having to type a passphrase. ... henceforth in this session I can do passphraseless SSH logins. ... so that the script to be run by cron can execute SSH ... Notice that I understand how the script is to have access to the SSH ...
    (comp.security.ssh)
  • Re: Passphraseless SSH login and cron
    ... order to do SSH logins without having to type a passphrase. ... henceforth in this session I can do passphraseless SSH logins. ... Notice that I understand how the script is to have access to the SSH ...
    (comp.security.ssh)
  • Passphraseless SSH login and cron
    ... order to do SSH logins without having to type a passphrase. ... henceforth in this session I can do passphraseless SSH logins. ... Notice that I understand how the script is to have access to the SSH ...
    (comp.security.ssh)
  • Re: using expect with ssh
    ... only once and ssh-agent will keep it in memory. ... The whole thing can be wrapped in a shell script. ... when ssh logs off due to inactivities. ... ssh.sh and enter the passphrase again; the passphrase can be put into ...
    (comp.os.linux.misc)