login about faq

We are using Tectia Server 6.1.4 on Windows 2003 Server R2. Is it possible to transfer files from Solaris or Unix machines to the Windows server using the following command line?

bash$ ssh -i [identity_file] [user]@[server] < [file_to_transfer]

(Works for transfer to other unix machines - using some serverside scripts though...)


asked Feb 08 '10 at 19:26

Sebastian's gravatar image


edited Feb 09 '10 at 06:40

Ville%20Laurikari's gravatar image

Ville Laurikari

I suppose that with appropriate side scripts on the Windows side this can work. You don't say what kind of server side scripts you have on unix or how they are triggered. One of the following could work:

  • Forcing a command using a public key option.
  • Forcing a command by changing the user's login shell (unix only).

In general, piping standard input/output to a forced remote command should work also on Windows. The remote command can then do whatever it pleases with the data received from standard input, including saving it to a file.

However, if your only goal is to simply transfer files, I suggest you use scp or sftp instead.


answered Feb 09 '10 at 06:56

Ville%20Laurikari's gravatar image

Ville Laurikari

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Feb 08 '10 at 19:26

Seen: 10,524 times

Last updated: Nov 02 '10 at 16:22

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.