pscp

putty from a batch file and a script?

£可爱£侵袭症+ 提交于 2019-12-02 01:18:10
I have a batch file that opens putty just fine. c:\putty.exe root@192.168.12.34 -pw boyhowdy. But to make this work for me I need to understand how to include a script of a command so it will run under the putty tool. Like mount –o remount,rw / . Or is this something I can do with a tool called pscp. I am a nube to these tools and really could use some guideance. I have a bunck of these scripts and would really like to automate them. Thankyou If your goal is to execute shell commands remotely through putty, you should probably look at plink (putty without the gui, in other words an ssh client

Command to automatically input password for pscp

好久不见. 提交于 2019-11-30 01:17:51
问题 I want to copy some file to a remote Linux system from my Windows PC using pscp (from putty). I wrote a small script that call the pscp commands in this way: "C:\Users\hp\Desktop\pscp.exe" -scp C:\Users\hp\Desktop\scripts\* root@192.168.1.177:/root/scripts "C:\Users\hp\Desktop\pscp.exe" -scp C:\Users\hp\Desktop\scripts2\* root@192.168.1.177:/root/scripts2 pause But when I launch this bat script, I'm asked to input the password, so I input the password manually. Is there a way to input the

Makefile error make (e=2): The system cannot find the file specified

为君一笑 提交于 2019-11-28 08:28:52
I am using a makefile in windows to push some files on a Unix server (here a text file "blob.txt" in the same folder of my makefile). My makefile script is: setup: pscp blob.txt username@hostname:/folder/ I start a command prompt, go in the folder where blob.txt and the makefile are present and type: make setup Which results in: pscp blob.txt username@hostname:/folder/ process_begin: CreateProcess(NULL, pscp blob.txt username@hostname:/folder/, ...) failed. make (e=2): The system cannot find the file specified. make: *** [setup] Error 2 In a #fail ... whereas if I enter directly the command in

怎样将文件从window系统复制到远程linux系统上

拥有回忆 提交于 2019-11-27 15:17:28
怎样将文件从window系统复制到远程linux系统上 怎样将文件从window系统复制到linux系统上,其实有几种方法,比如,将windows上的文件共享出来,通过cifs协议mount到linux本地来,然后再cp一下。又或者通过FTP,但这些都有些麻烦。我们知道,在linux下有个命令 scp,它可以实现在linux系统之间快速地互拷文件,前题是linux上开启的ssh服务,哪么windows下是否也有这样的命令呢。我找遍了资料,没有发现有。但有一个工具winscp是可以以实现的,不过,它是个windows界面的,对于喜欢用脚本来管理的人来说,可能更喜欢命令行下的,那么,有没有这样的工具呢,答案是肯定的,那就是pscp, pscp 是PuTTY所带的远程文件传输工具,使用和Linux下scp命令相似,下载地址 http://the.earth.li/~sgtatham/putty/latest/x86/pscp.exe 官网: http://www.putty.org/ 我习惯把pscp.exe放在C:\windows\system32下,这样,方便随时调用。pscp 的使用很简单,注意linux要开启ssh 1、从本地widows主机复制单个文件到远程linux的tmp目录下 pscp localFile root@remoteHost:/tmp/ 2、从本地window

windows 和 linux 服务器互传文件

放肆的年华 提交于 2019-11-27 15:16:51
Linux与Linux之间传送文件 使用scp命令。 windows与Linux之间传送文件 (1) 用putty的内置小组件PSCP.exe。(此法可行) pscp.exe 可从putty官方下载,然后放到 windows 的c:\windows\system32目录下,这样cmd 命令提示符窗口 输入pscp直接可执行了,pscp 选项有: -r 拷贝整个目录,可加 -r 选项 -p 拷贝文件的时候保留源文件建立的时间。 -q 执行文件拷贝时,不显示任何提示消息。 -v 拷贝文件时,显示提示信息 windows 上传文件 到 linux 步骤 :运行cmd,进入Pscp.exe所在目录。 输入命令: pscp -scp file username@hostIP:文件地址 例:pscp -scp -P port d:abc.txt endall@IP:/home/endall/abc.txt 上传指定文件夹下的内容: pscp -scp -r -P(大写) port d:\...\fileUpload\ user@IP:/home/user/ 可以新建一个批处理文件,这样就不用每次都输入命令及密码了。 @echo off pscp.exe -l user -pw password -scp -r -P port(放在最后,否则不能正常执行) ...\localfilepath\

Makefile error make (e=2): The system cannot find the file specified

旧街凉风 提交于 2019-11-27 02:11:37
问题 I am using a makefile in windows to push some files on a Unix server (here a text file "blob.txt" in the same folder of my makefile). My makefile script is: setup: pscp blob.txt username@hostname:/folder/ I start a command prompt, go in the folder where blob.txt and the makefile are present and type: make setup Which results in: pscp blob.txt username@hostname:/folder/ process_begin: CreateProcess(NULL, pscp blob.txt username@hostname:/folder/, ...) failed. make (e=2): The system cannot find