winscp

WinSCP connect to Amazon AMI EC2 Instance changing user after login to “root”

人走茶凉 提交于 2019-12-18 12:28:29
问题 I followed instructions here carefully however I haven't get this working right. Here is what I did: Run WinSCP enter Hostname (Elastic IP of my Instance) enter username "ec2-user" enter public key file chose SCP for the protocol Under SCP/Shell settings I chose "sudo su -" Hit Login WinSCP asks me for passphrase key, Hit OK Shows up this error Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended). NOTE: This works on Putty 回答1: WinSCP

Windows上安装配置SSH教程(1)

坚强是说给别人听的谎言 提交于 2019-12-18 11:26:14
作者: feipeng8848 出处: https://www.cnblogs.com/feipeng8848/p/8559803.html 本站使用「 署名 4.0 国际 」创作共享协议,转载请在文章明显位置注明作者及出处。 1.是什么SSH? 维基百科: https://zh.wikipedia.org/wiki/Secure_Shell 其他博客: http://www.ruanyifeng.com/blog/2011/12/ssh_remote_login.html 总结一下就是:SSH(Secure Shell)是一种加密的网络传输协议,常用于远程登陆与远程文件传输。使用SSH能有效避免数据在传输过程中被窃取篡改。SSH可以采用密码方式登陆远程,也可以使用公钥私钥自动登陆。 SSH是一种协议,该协议的实现有很多种,OpenSSH就是其中一种,OpenSSH是自由软件,可免费使用。 2.什么是OpenSSH( OpenBSD Secure Shell )?如何在计算机上安装OpenSSH OpenSSH是SSH协议的一种实现,在计算机上安装完OpenSSH并开启服务后该计算机就可作为SSH服务器被远程访问和上传下载文件。 OpenSSH官网: https://www.openssh.com/ 在计算机上安装与配置OpenSSH教程: http://www.cnblogs

Running WinSCP command from Python

与世无争的帅哥 提交于 2019-12-18 07:12:27
问题 I have created the following command file with name submitCmd.txt : open myname@ftpclients.myserve.com -privatekey=C:\Users\Mike\Desktop\uploader\mykey.ppk put C:\Users\Mike\Desktop\uploader\files2Upload\myFile.xlsx /mnt/data/myFolder/ close exit When I run the above script from command line as: winscp.com /script=C:\Users\Mike\Desktop\uploader\submitCmd.txt It runs successfully. However, when I try the following in python: cmdFile = r'C:\Users\Mike\Desktop\uploader\submitCmd.txt' import

SSIS C# 2012 Script Task referring WinSCPnet.dll fails when run from SQL Server Agent with “Exception has been thrown by the target of an invocation”

醉酒当歌 提交于 2019-12-18 06:50:53
问题 I have an SSIS package (created in VS 2013) that contains a C# 2012 Script Task. The job of the script task is to download a file from an SFTP server using WinSCP .NET assembly and place it on my server (Windows Server 2012 R2 with SQL Server 2014) My package runs fine when I run it on my Dev machine, but when I deploy to the server my package fails at this task with the error message Exception has been thrown by the target of an invocation I've done some digging and it looks like it has

Use path with spaces in batch file using WinSCP

旧街凉风 提交于 2019-12-17 20:59:08
问题 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

Using VBA to run WinSCP script

北城余情 提交于 2019-12-17 16:26:53
问题 I am able to download files from SFTP in CMD window, by using following code: WinSCP.com # Connect to the host and login using password open user:pw@address # get all the files in the remote directory and download them to a specific local directory lcd C:\Users\xx\Desktop get *.xlsx # Close and terminate the session exit I searched online and found out that I can put these codes in a bat file and use Call Shell("cmd.exe /c C:\Users\xx\Desktop\WinSCPGet.bat", 1) However, only the first line of

WinSCP time based file download

て烟熏妆下的殇ゞ 提交于 2019-12-17 14:14:36
问题 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 回答1: 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

winscp拒绝连接问题

跟風遠走 提交于 2019-12-15 00:47:43
原因是虚拟机中没有安装ssh服务,命令行安装即可。 具体如下: 测试环境:deepin_15.11 过程: 1.检测是否已安装ssh服务,输入以下命令 $ ssh localhost 1 出现以下提示则为未安装: ssh: connect to host localhost port 22: Connection refused (ssh:连接到主机本地主机端口22:连接被拒绝) 2.安装ssh-server $ sudo apt-get install openssh-server 1 3.启动服务 $ sudo /etc/init.d/ssh start 1 启动成功会提示: [ ok ] Starting ssh (via systemctl): ssh.service. 4.检查服务是否启动成功 $ ps -e|grep ssh 1 若有下面提示则启动成功 9996 ? 00:00:00 sshd 执行到这一步就可以连接上虚拟机了 最后: 启动、停止、重启SSH命令: $ sudo /etc/init.d/ssh start //启动SSH命令 1 $ sudo /etc/init.d/ss stop //停止SSH命令,重新连接你会发现不能再连接上了 1 $ sudo /etc/init.d/ss restart //重启SSH命令 1 系统默认端口为22

How to upload a file to Azure Storage with WinSCP (SFTP)?

a 夏天 提交于 2019-12-13 12:29:58
问题 theI have a C# service using WinSCP which reliably uploads files to any SFTP server. I'd like to use it to connect to MS Azure Storage and upload files there using the same SFTP protocol. Please note I am not looking to use any other protocol (i.e.: FTP, FTPS, HTTPS, etc.) as well as I am not looking to SFTP files [out] of the Azure Storage. There are plenty of examples of how to use WinSCP when SFTP [out] from Azure Storage but none of them covers how to SFTP [in]. I have searched Stack

Command to upload a file with WinSCP by FTP?

筅森魡賤 提交于 2019-12-13 08:25:52
问题 I have an FTP server, but don't know the command to upload from a PHP form. I need a command to upload with WinSCP. My code so far is below: <html> <body> <?php if(isset($_FILES["uploaded"])) { print_r($_FILES); if(move_uploaded_file($_FILES["uploaded"]["tmp_name"],"<root>/domains/sigaindia.com/public_html/reymend/".$_FILES["uploaded"]["name"])) echo "FILE UPLOADED!"; } else { print "<form enctype='multipart/form-data' action='fup1.php' method='POST'>"; print "File:<input name='uploaded' type