non-interactive ssh connections (was Re: RSYNC ISSUE)

Kar, Gouri X. -ND Gouri.X.Kar.-ND at disney.com
Wed Jul 24 14:21:01 EST 2002


Hi,

 After creating and distributing the private key with "ssh-keygen -P", I am
till getting the following error message while I schedule from cron. Only
exception is right now , I have only one message which says 

"You have no controlling tty and no DISPLAY.  Cannot read passphrase".

Any help is appreciated. Gs

You have no controlling tty and no DISPLAY.  Cannot read passphrase.
warning: Authentication failed.
Disconnected; authentication cancelled by user (Authentication cancelled by
user.).
unexpected EOF in read_timeout
Sorry something wrong with the script


*****************************************************************
        cron: The previous message is the standard output
        and standard error of one of the cron commands.

-----Original Message-----
From: Kar, Gouri X. -ND 
Sent: Wednesday, July 24, 2002 10:42 AM
To: 'Martin Pool'; rsync at lists.samba.org
Subject: RE: non-interactive ssh connections (was Re: RSYNC ISSUE)


Hi, I have tried to genertae the key with ssh-keygen -P ( remove the
passphrase) And copied it to the traget system. However, it doesn't work.
Any insite with the way I am distributing the script. Gs

-----Original Message-----
From: Martin Pool [mailto:mbp at samba.org] 
Sent: Tuesday, July 23, 2002 6:53 PM
To: Kar, Gouri X. -ND
Cc: rsync at lists.samba.org; Johnson, Gary X. -ND; Minyard, Mark X. -ND
Subject: non-interactive ssh connections (was Re: RSYNC ISSUE)


(Gouri: a more descriptive subject line will help you get repsonses in
future, and please send your mail to rsync at lists.samba.org.  Read
<http://www.tuxedo.org/~esr/faqs/smart-questions.html>)

On 23 Jul 2002, "Kar, Gouri X. -ND" <Gouri.X.Kar.-ND at disney.com> wrote:
> Hi guys, I am trying to schdule a script which makes call to RSYNC
> over SSH. The same script works fine on the command prompt and 
> sucessfully transfer the file from source to destination system with 
> SSH.
> 
> However, executing the script from CRONJOB doesn't work. It comes up
> with following error message
> 
> From: daemon
> To: db2log
>  
> You have no controlling tty and no DISPLAY.  Cannot read passphrase.
> You have no controlling tty and no DISPLAY.  Cannot read passphrase.
> warning: Authentication failed.
> Disconnected; authentication cancelled by user (Authentication 
> cancelled by user.). unexpected EOF in read_timeout

The problem is that ssh, as it says, cannot read the passphrase to unlock
your ssh key.  

If you want to do ssh from a cron job, you must have a key with no
passphrase.  You can remove a passphrase from an existing key using
"ssh-keygen -p" (see the manual).  You should probably make sure that the
key is authorized only for the accounts necessary to make the backup.

-- 
Martin 




More information about the rsync mailing list