winscp

使用WinSCP实现Windows与Linux之间的文件传输

一世执手 提交于 2019-11-29 03:13:52
WinSCP是一个支持SSH的SCP文件传输软件。WinSCP中文版体积小、占用系统资源少。操作简单,只需要连接相应的服务器就可以进行下载和传输文件。重要的是WinSCP中文版软件还有着很多特色的功能,有着内置的文本编辑器,可以支持文件的复制、移动、更名文件等操作,为你带来高效便捷的使用体验。 1、软件包准备好了下面我们开始安装WinSCP(可在网上自行下载),首先打开软件安装包,点击确定。 2、选择典型安装,点击下一步。 3、使用默认的界面风格,点击下一步。 4、点击安装开始安装WinSCP。 5、现在我们进入Linux系统用ifconfig命令获取一下当前Linux系统的IP地址,我们获取到的IP是192.168.229.131。 6、接下来在主机名的地方填写获取来的IP地址,下面的用户名跟密码填写当时在Linux上面设置的账户跟密码。 点击 登录 提示 WinScp连接被拒绝 解决方法:编辑 /etc/ssh/sshd_config文件: sudo vi /etc/ssh/sshd_config将PermitRootLogin 的值改成 yes将PermitEmptyPasswords 的值改成 no 保存退出重启ssh:# service sshd restart再次在WinSCP用root用户登陆 这边点击是

how to get the ipaddress of a virtual box running on local machine [closed]

浪子不回头ぞ 提交于 2019-11-28 23:40:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I need to connect to my virtual box running on my local machine to transfer files from my local system to VM by using WinSCP. How do I find the IP address? When I go to the settings and network tab, there I find something related to IP, but when I use that, it says cannot find or invalid. 回答1: Login to virtual

How to run SUDO command in WinSCP to transfer files from Windows to linux

允我心安 提交于 2019-11-28 21:03:17
问题 I am trying to use WinSCP to transfer files over to a Linux Instance from Windows. Im using private key for my instance to login to Amazon instance using ec2-user. However ec2-user does not have access to write to the Linux instance How do i sudo su - to access the root directory and write to the linux box, using WinSCP or any other file transfer method? Thanks 回答1: AFAIK you can't do that. What I did at my place of work, is transfer the files to your home ( ~ ) folder (or really any folder

mark win to linux winscp

£可爱£侵袭症+ 提交于 2019-11-28 20:39:03
win to linux winscp bat文件 ::下面将生成的rar 传输到%ip% %destination% echo "注意传输协议不同,默认对应的端口不同,ftp:21;sftp:22;scp:22" ::下面四个变量已在上面参数化 ::set winscp=C:\99software\winscp\winscp.exe ::set user=buildl ::set userpwd=buildl ::set localdir="D:\09Software\winscp" ::set destination="./" %winscp% /console /command "option batch continue" "option confirm off" "open ftp://%user%:%userpwd%@%ip%:%port%" "option transfer binary" "put C:\01project\out put\fileTool %BVersion% r%svnv%.rar %destination%/fileTool %BVersion%_r%svnv%.rar" "exit" /log=C:\01project\out_put\transferlog.txt pause 来源: https://blog.51cto.com

iTOP-4412精英版之winscp工具的使用

与世无争的帅哥 提交于 2019-11-28 17:42:18
基于iTOP-4412精英版之上winscp工具的使用,用户手册 3.3.5 小节介绍 SSH 工具,在 Ubuntu16.04 上有一定的概率使用不了,本节介 绍替换 SSH 文件传输的工具 winscp。 winscp 工具是网盘“iTOP-4412 开发板搭建编译环境所需要的工具包以及补丁包\09- QtE5.7 的编译环境安装包\03-QtE5.7 编译环境需要的工具\02-WinSCP 文件传输工具”目录 下的压缩包“winscp5131.zip”,解压之后得到文件夹“WinSCP(SFTP 客户端) v5.13.1 中文 版”,进入该文件夹,如下图所示。 双击“WinSCP.exe”,如下图所示。弹出登陆框。 如下图所示,主机名称为 Ubuntu 的 IP 地址,用户名直接登陆 root,搭建好的编译环境 密码为 topeet,然后点击按钮“登陆”。 弹出如下图所示提示框。有三种选项目,第一个选项“是”,表示登陆主机并且保存配置 到缓存;第二个选项“否”,表示登陆主机,但是不保存配置;第三个选项“取消”,表示不 登录,不保存。选择第一个选项,第二次登陆就不会弹出这个下图所示的对话框。 作者这里选择“是”,如下图所示,已经登陆,左边是 Windows 目录,右边是 Ubuntu 的目录,使用方法比较简单,传文件直接向对应目录拖动即可。 来源: https://www

Use path with spaces in batch file using WinSCP

我是研究僧i 提交于 2019-11-28 12:43:55
I have created WinSCP batch file for deleting files on remote server. It's working fine, but it's not working with folder with spaces. For example, the below batch file is working: cd C:\Program Files\WinSCP winscp.com /command ^ "open sftp://user:pwd@host" ^ "cd /home/test/Desktop/india" ^ "rm int.txt" ^ but the below batch file is not working cd C:\Program Files\WinSCP winscp.com /command ^ "open sftp://user:pwd@host" ^ "cd /home/test/Desktop/india & nepal" ^ "rm int.txt" ^ I am not able to delete india & nepal folder file because of space Can any one give a solution? Wrap the path with

WinSCP select most recent file

跟風遠走 提交于 2019-11-28 05:56:06
问题 Looking for the WinSCP command line equivalent of selecting the most recent/latest file. Any ideas http://winscp.net/eng/docs/script_download_most_recent_file 回答1: Use the -latest switch of the get command, as the Downloading the most recent file article shows: get -latest /home/user/* c:\downloaded\ If you want to use it on command-line, the syntax is like: winscp.com /command "open sftp://user:password@example.com/ -hostkey=""ssh-rsa 2048 xx:xx:xx...""" "get -latest /home/user/* c:

What are some good SSH Servers for windows? [closed]

有些话、适合烂在心里 提交于 2019-11-27 16:58:02
Trying to setup an SSH server on Windows Server 2003. What are some good ones? Preferably open source. I plan on using WinSCP as a client so a server which supports the advanced features implemented by that client would be great. Jesse Dearing I've been using Bitvise SSH Server and it's really great. From install to administration it does it all through a GUI so you won't be putting together a sshd_config file. Plus if you use their client, Tunnelier , you get some bonus features (like mapping shares, port forwarding setup up server side, etc.) If you don't use their client it will still work

Download files from Unix server using WinSCP with get command

眉间皱痕 提交于 2019-11-27 15:54:18
I have program in Unix that generates files 8 files at 8:30 pm everyday. I need to download the files into my Windows machine after the files are generated using WinSCP. I can drag and drop those but its time consuming, I need to automate this process. I cannot use .Net assembly to download those. I have tried to use the get command, but its throwing error: Not an SCCS file. Let me know how can I solve this. --Thanks To automate a task using WinSCP, use its scripting interface from a batch file (e.g. download.bat ). I assume you want to use SFTP, as you are connecting to a *nix server. The

WinSCP time based file download

老子叫甜甜 提交于 2019-11-27 15:51:56
I would like to write WinSCP script to download a file that is placed onto the remote server every morning between 4-4:30am. Is there a way to do this with time-stamping? I want to pseudocode: get file.txt where timestap<1 hour from 4 am First, I assume your file does not have fixed name (contrary to your question with fixed name file.txt ). If not, please explain, why do you need timestamp-based solution. Anyway, you can use a file mask with a time constraint : get "*.txt>2014-07-19 4:00" To dynamically inject today's date, use the %TIMESTAMP% syntax : get "*.txt>%TIMESTAMP#yyyy-mm-ss% 4:00"