Solved

SFTP Windows Script

Posted on 2008-06-19
2
2,567 Views
Last Modified: 2010-05-18
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
Comment
Question by:pauldhadialla
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 21823331
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
 

Author Closing Comment

by:pauldhadialla
ID: 31468807
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question