sftp

how to download compressed file (.zip) through FTP using c#?

余生长醉 提交于 2019-12-23 13:25:35
问题 How to download .zip file format using c# code? Here is the code, i am using to download. Just to highlight, If i download .txt file, it works fine. If i download .zip file, it downloads the .zip file but i can't open this. It complains that .zip is in incorrect format. I have doubt in how i am writing back the file on local drive. Help? string ftpServerIP = FTPServer; string ftpUserID = FTPUser; string ftpPassword = FTPPwd; FileInfo fileInf = new FileInfo(FileName); string uri = "ftp://" +

JSCH: SFTP. Hangs at session.connect() using the port 21

天涯浪子 提交于 2019-12-23 10:55:13
问题 I am connecting to FTP server via sftp(JSCH). Evertime i connect to the FTP server using the port 21, it always hangs at session.connect(). It does not throw any exception. But when i use other ports. It works and it throws exception. Is there any way i could catch the error? Here is a sample of my code. public static void main(String[] args) throws SftpException { JSch jsch = new JSch(); try { Session session = jsch.getSession("username", "host", 21); session.setConfig("StrictHostKeyChecking

After setting ~/.bashrc the FileZilla doesn't work

橙三吉。 提交于 2019-12-23 06:08:45
问题 To auto add ssh key I edited the ~/.bashrc file and added eval "$(ssh-agent -s)" and ssh-add at the end. It works well. After doing this, I cannot visit the server via SFTP with FileZilla. How can I fix this with keep auto running ssh-add ? My server OS is CentOS 6.7. I also access the server via shell. 回答1: The guy who answered your previous question¹ got something wrong: eval "$(ssh-agent -s)" should only be executed for login shells (e.g. when you are logging in over regular SSH to run

s3 to ftp server without downloading to ec2

我们两清 提交于 2019-12-23 05:13:34
问题 Is there is way (programmatically) to transfer file from s3 bucket to an external ftp server without downloading it to an ec2 instance ? More details: I have a Django server running on EC2 which serves an angular web app. User uploads a file to S3 bucket using my web app and once the upload is complete the web app sends a POST request containing the file object s3 url. The Django server upon receiving the POST request may need to copy the file (uploaded to s3) to an external ftp server. The

Error to connect to FileZilla server using JSch SFTP client

安稳与你 提交于 2019-12-23 04:50:38
问题 I'm trying to connect on SFTP using localhost configurations but I get the following error. But when I use the same configurations on FilleZilla it works perfect... At FilleZilla server: (000017)06/08/2019 09:26:20 - (not logged in) (127.0.0.1)> Connected on port 21, sending welcome message... (000017)06/08/2019 09:26:20 - (not logged in) (127.0.0.1)> 220-FileZilla Server 0.9.60 beta (000017)06/08/2019 09:26:20 - (not logged in) (127.0.0.1)> 220-written by Tim Kosse (tim.kosse@filezilla

Ubuntu 14.04: no sftp-access because of bad ownership or modes [closed]

老子叫甜甜 提交于 2019-12-23 04:47:49
问题 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 4 years ago . I have a problem connecting to my ubuntu 14.04 server via sftp. Everytime I try to connect, I get this info/error messages: Sep 18 15:04:47 localhost sshd[2917]: Accepted password for junperbo from 87.129.13.92 port 59333 ssh2 Sep 18 15:04:47 localhost sshd[2917]: pam_unix(sshd:session): session opened for user

Replace Windows command FTP -s:E:\FtpScript.txt with SFTP? [duplicate]

偶尔善良 提交于 2019-12-23 03:55:19
问题 This question already has answers here : Secure FTP using Windows batch script (3 answers) Closed last year . I have the following Windows script that connects to a regular FTP server and downloads files. However, the files have since been moved to an SFTP server. How can I modify the following script so that it connects to this new secure ftp server? I really don't want to modify too much since it had been working correctly with the past FTP server. The ftp client I'm using here is the one

How to securely deploy PPK file in WPF C# app?

我的梦境 提交于 2019-12-23 03:45:17
问题 I have a C# app that connects to a SFTP server to transfer log files. The app achieves this by using WinSCP .NET assembly to connect to the server. How do I securely store the .ppk private key file such that the user is not able to take this file to access the SFTP for themselves? http://winscp.net/eng/docs/library#csharp Based on the way the library reference the .ppk , it may not be possible to avoid storing the .ppk file on the local disk during run-time? Thanks in advance. 回答1: There's

Upload file to Secured FTP in ASP.NET

a 夏天 提交于 2019-12-23 03:43:06
问题 I want to upload files to FTPS and SFTP. My code is currently using FtpWebRequest object to upload to FTP. What changes or class should I use to upload to FTP, FTPS and SFTP servers? 回答1: SFTP is not a built-in protocol for .NET, you'll have to use a third-party library, like SharpSSH; however, FTP and FTPS are. There are a number of third-party libraries both commercial and OpenSource (SSH Factory for .NET , Rebex SFTP for .NET/.NET CF, SharpSSH - A Secure Shell (SSH) library for .NET,

How can I upload data using ftp, http, or a socket from a spreadsheet with VBA for Microsoft Office?

坚强是说给别人听的谎言 提交于 2019-12-23 03:09:44
问题 I have an Excel spreadsheet, and I want to put a button on it, so users will be able to upload their data to an http/ftp server, or send the data to the server using a socket directly. I have noticed that some people creates an ftp script to do. First of all, I'm not sure that everybody has ftp on their Windows machine, and secondly, I would prefer to use a method that allows me to better monitor the progress of the upload. For example, I want to know if the user id/password failed, if the