Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all: I have a problem to do something new for me. I'm trying to write a script in a linux machine for conect to a windows machine, via openssh ...
  1. #1
    Just Joined! alan888's Avatar
    Join Date
    Apr 2008
    Posts
    1

    OpenSSH, Linux y windows

    Hi all:

    I have a problem to do something new for me. I'm trying to write a script in a linux machine for conect to a windows machine, via openssh (3.6.1p1), and run some programs that fills a file, gets the file (to the linux machine) and repeats the process how as possible.

    I have problem with ssh in windows, because when I run:

    ssh user@server "dir"

    as example, the response is dir: not found. I don't know how I can fix this error, or maybe if this is not possible between linux and windows.

    Thank.-

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    The dir command is not native in Unix, and if you are running ssh on Windows I would guess you are using Cygwin or something similar. Try using the ls command.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...