delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/04/09:30:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 4 Dec 2001 09:29:45 -0500 (EST)
From: Birl <sbirl AT astro DOT ocis DOT temple DOT edu>
To: Bob Bradford <Bob DOT Bradford AT kntc DOT ca>
cc: <cygwin AT cygwin DOT com>
Subject: Re: SCP under SYSTEM
In-Reply-To: <3C0CC002.7090005@kntc.ca>
Message-ID: <Pine.OSF.4.32.0112040925550.5309-100000@typhoon.ocis.temple.edu>
MIME-Version: 1.0

BB> Date: Tue, 04 Dec 2001 07:22:26 -0500
BB> From: Bob Bradford <Bob DOT Bradford AT kntc DOT ca>
BB> To: cygwin AT cygwin DOT com
BB> Subject: SCP under SYSTEM
BB>
BB>
BB> Hi,
BB>
BB> I am trying to run an SCP operation as a scheduled operation. It is
BB> convenient to fit this in with existing scheduled batch files using AT,
BB> and it all seems to run except that scp is complaining about keys (key
BB> verification failed message) and does not copy the file. If I run the
BB> bat file by hand as administrator it works fine.
BB>
BB> I think the cause is that there are no keys for SYSTEM. The AT command
BB> runs things as SYSTEM. I generated keys for Administrator, but I don't
BB> think those will get used by SYSTEM (true?). So how do I get this script
BB> to work? Can I generate keys for SYSTEM? Can I get it to use the
BB> Administrator keys (note the script must be able to be run by any user,
BB> so I can't force it to just one identity file)?
BB>
BB> I can run the thing from cron if cron switches user context, if that is
BB> the only solution. It will just be very inconvenient to have this one
BB> thing scheduled by cron when the rest are scheduled by AT.
BB>
BB> Bob


You created the AT job for the SYSTEM account; if you open up the
properties of the AT job, you could change the "Run as" to the
Administrator account.

Also, have you try to setup a one-time-only AT job to run ssh-keygen for
the SYSTEM account?
	at <time> /interactive ssh-keygen


 Hope this helps

 Scott Birl      Scott DOT Birl AT temple DOT edu
 UNIX Consultant/Systems Administrator   Computer  Services   Temple University
 1805 North Broad Street  Philadelphia   Pennsylvania 19122   United States
====*====*====*====*====*====*====*====+====*====*====*====*====*====*====*====*


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019