Windwos use WINSCP and batch implementations to upload files via SSH ports to Linux servers _dos/bat

Source: Internet
Author: User
Tags ssh ssh port

Windwos using WINSCP and batch implementation to upload files via SSH port to Linux server


Today, colleagues want to use WINSCP upload files on Windows to Linux server, and want to lazy to use batch processing to upload, fortunately only fixed upload a php file, too much is really bad.

1. Download WINSCP

Everyone can go to the Internet to find their own, I put the WINSCP installed in C: under the

2. Save the command to be executed in the file Winscp.bat, this winscp.bat can be created by itself, I was placed in D: under.

Winscp.bat Script content:


Copy Code code as follows:

Option confirm off
Open user:pwd@192.168.10.150:22
Put d:\t.php
Close
Exit
Pause

3. Executive Order

Copy Code code as follows:

C:\winscp>winscp.com/script=d:\winscp.bat

You can see the upload has been successful.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.