Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2570
  • Last Modified:

SFTP Windows Script

Hello, Urgent
Can someone provide me with a SCP windows batch script which does the following.
(I assume WINSCP is the best to use)

1) Login to a Linux machine via WINSCP / SCP  using a private key
2) Copy a local file (say c:\files\file.txt)  to the remote Linux server (say  /opt/files/file.txt)
3) Exit

Extra: If possible one script without keys using SFTP would be nice!
====

I can generate and manage the keys on the linux side

Much thanks
0
pauldhadialla
Asked:
pauldhadialla
1 Solution
 
omarfaridCommented:
Please see the link below to see hot to set trust:

http://www.experts-exchange.com/Software/Internet_Email/File_Sharing/SSH_Telnet/Q_23497444.html?cid=235

Please see on how to use winscp.com from command line:

http://winscp.net/eng/docs/scripts
0
 
pauldhadiallaAuthor Commented:
I was looking for a and actual script immediatly but had to create myself from links which I had.  Thanks for trying.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now