Re: Urgent request: Where does the authorized_keys file have to go on a Windows system?

From: Darren Dunham (ddunham_at_redwood.taos.com)
Date: 06/23/04


Date: Wed, 23 Jun 2004 16:10:20 GMT

Tonij <tonij67@hotmail.com> wrote:
>> Is this under cygwin? Does the user exist in /etc/passwd? If so,
>> that's where the home directory is specified.

> This is OpenSSH_3.7.1p1, no Cygwin involved at all.

I wasn't aware that it was easily available without cygwin. Did you
compile it yourself or are binaries available from some site? I didn't
see anything on the openssh.com site when I looked.

> I have the authentication set up and can copy files from
> Unix--Windows.
> One of the tasks that needs to be done after the copy is the file
> needs to be renamed. This is to prevent any processing from happening
> on the Windows box before the file is completely copied. Now in unix,
> it would be a simple task:

> ssh <server> "cp file newfile"

> Trying this with Windows is a mess...because the copy, move, rename
> etc. commands are all part of cmd.exe and anything I have tried
> returns:

> ren: not found

> or

> move:not found

> etc.

> I even tried putting a copy of cmd.exe in the path, still no luck. I
> tried xcopy, no luck.

> So....now I need to find a way to remotly change a file name in
> Windows...either a standalone copy/move executable or some
> alternative.

> Any ideas?

Can you use cmd.exe as the actual command and pass the rename as an
argument?

Could you use 'rsync' on both sides instead? That would perform the
rename after the transfer. (I'm not sure if there's a "native" rsync
for windows).

-- 
Darren Dunham                                           ddunham@taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >


Relevant Pages

  • Re: Error Message when trying to open Word 2000
    ... "John B." ... - I am using Windows ME so I do not have Compatibility ... :>However if you want to rename the old key back then I ... :>add-ins, Normal.dot, Registry, etc. ...
    (microsoft.public.word.application.errors)
  • Re: Lost document When I Changed Its Name Please Help!
    ... those with a file extension associated with Word. ... > rename the document in Windows Explorer. ... >>to open it by double-clicking in an Exploring window. ...
    (microsoft.public.word.application.errors)
  • Re: Great SWT Program
    ... a good tutorial on Unix CLI tools? ... command there, ... then rename everything in the search scope with the CLI, ... I'd have to boot up a Windows system and try stuff, ...
    (comp.lang.java.programmer)
  • Re: Lost document When I Changed Its Name Please Help!
    ... rename the document in Windows Explorer. ... but it didn't show up in Word or in Explorer. ... >extension when you rename the file. ...
    (microsoft.public.word.application.errors)
  • Re: Home Page and cwshredder
    ... Download: CWShredder ... To rename: Right-click and select: Rename ... "Windows" and close RegLite. ... New> Folder ...
    (microsoft.public.windowsxp.general)