sftp

Received failure with description 'Failure' in while uploading to SFTP server with FileZilla

你。 提交于 2019-12-19 03:39:15
问题 I faced this issue many times. While uploading or editing any file from FileZilla it its showing error message Error: error while writing: received failure with description 'Failure'. My server is AWS EC2 with Minimum instance class type. 回答1: The "Failure" is an error message for error code 4, returned by the OpenSSH SFTP server for various problems, for which there's no more specific code in the SFTP protocol version 3. While the server should at least return a specific plain-text error

How to use sftp from within an MS Access database module?

这一生的挚爱 提交于 2019-12-19 03:18:27
问题 I have a requirement to create a simple database in Access to collect some user data that will be loaded into another database for further reporting. There will be a module in the Access db that when invoked by the user (probably by clicking a button) will output a query to a delimited file. The user also needs a mechanism (for example a form with a button) to easily transfer the file to a remote server, using sftp. Does anyone have an idea of how to accomplish this? 回答1: You can simply write

Key based authenication with net-sftp in Ruby

风格不统一 提交于 2019-12-19 02:49:32
问题 I want to be able to use SFTP to login into a number of servers and download certain files to help debug issues as and when they arise. While we could use a client, we wanted to start automating the process to streamline everything. My first attempt looks something like this: def download(files_to_download, destination_directory) Net::SFTP.start(@server, @username, :password => @password) do |sftp| files_to_download.each do |f| local_path = File.join(destination_directory, File.basename(f))

Grunt - Watch a file and SFTP when it's changed

假如想象 提交于 2019-12-19 02:34:31
问题 I'm trying to automatically upload a .css file, when it's compiled from Sass. This is what I've got in my Gruntfile.js : module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { coffee: { files: ['**/*.coffee'], tasks: ['coffee'] }, scripts: { files: ['**/*.scss'], tasks: ['compass'] }, sftp: { files: ['**/*.css'], tasks: ['sftp-deploy'] } }, coffee: { compile: { files: { 'testing.js': 'testing.coffee' } } }, compass: {

Download file based on date modified from SFTP

蹲街弑〆低调 提交于 2019-12-18 18:03:21
问题 Is there a way to get the files from SFTP server that should be based on modified date using Tamir.SharpSsh? Currently I am downloading files by file name but my requirement is by Date Modified. var sftp = new Sftp(Host, UserName, Password); sftp.Connect(); sftp.Get(sourcePath+"/*.*." + name + "*", destinationPath); 回答1: SharpSsh does not allow that. It's a dead project, do not use it. Anyway, I took a look at the code to assess how difficult it would be add possibility to retrieve file

SFTP error “Received message too long”

瘦欲@ 提交于 2019-12-18 16:50:27
问题 I recently tried to using sftp to access my linux box where I implement a simple shell of my own. And I set the users except root to use mine shell in default(by editing /etc/passwd file). Then problem arise, once I tried to access through sftp, I will receive a message saying "Received message too long:", I searched for the solutions and one solution is to change the default shell for this user back to normal bash shell. I tried so and it worked, the problem is that is there a way that I can

SFTP error “Received message too long”

左心房为你撑大大i 提交于 2019-12-18 16:50:12
问题 I recently tried to using sftp to access my linux box where I implement a simple shell of my own. And I set the users except root to use mine shell in default(by editing /etc/passwd file). Then problem arise, once I tried to access through sftp, I will receive a message saying "Received message too long:", I searched for the solutions and one solution is to change the default shell for this user back to normal bash shell. I tried so and it worked, the problem is that is there a way that I can

What's a decent SFTP command-line client for windows? [closed]

家住魔仙堡 提交于 2019-12-18 11:38:19
问题 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 . Most of the windows SFTP clients (like FileZilla) seem to be GUI-based. I need something I can call from batch files. 回答1: pscp and psftp are very customizable(options) and light weight. Open source to boot. http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html 回答2: WinSCP has the command line

Sublime SFTP - Upload compiled css when sass file saved

限于喜欢 提交于 2019-12-18 11:17:17
问题 I'm developing html/css in Sublime. I'm writing my css with sass and using Sublime's build system to generate the css file on file save. It's also configured to upload on save using the SFTP plugin. My problem is that the generated css file doesn't get uploaded as that isn't the file I've directly saved. I've tried to see if there is a way for the SFTP plugin to upload all files that have been modified locally, but it doesn't seem to support that. Is there anything I can do to achieve this?

Linux shell to restrict sftp users to their home directories?

只谈情不闲聊 提交于 2019-12-18 10:05:50
问题 I need to give SFTP access to a directory within my webroot on my server. I've set up ben_files as a user and have set his home directory to /var/www/vhosts/mydomain.com/files That's all fine if he connects with plain old FTP - he's restricted just to that directory, but to enable SFTP i had to add him to bin/bash shell, which suddenly opens up my entire server... Is there a way of giving him SFTP access but without opening up all my directories? I'd really like him restricted to only his