Solved

SFTP Windows Script

Posted on 2008-06-19
2
2,563 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
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

792 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