The SSH File Transfer Protocol, (sometimes called Secure File Transfer Protocol, Secure FTP), or SFTP, is a network protocol that provides file access, file transfer, and file management functionality over any reliable data stream.

learn more… | top users | synonyms

11
votes
2answers
13k views

Is IIS SFTP natively supported by Windows Server 2012 R2?

Does Windows Server 2012 R2 have native SFTP support? I see a role FTP Server but it doesn't say whether this includes SFTP.
1
vote
2answers
37 views

Deny deletion after SFTP upload

I'd like to prevent users from deleting files they have uploaded to my sftp server. I know I could set up a solution of my own using inotify/dnotify (or pam hook) and lsof which triggers a script to ...
0
votes
4answers
84 views

Whether using FTP to transfer encrypted files is safe?

I am planning to transfer encrypted files over FTP. However my other partner wants to use SFTP instead of FTP for security reasons. However my take is since the files are encrypted we can still go ...
2
votes
1answer
640 views

Wordpress SFTP auto update issues

I have run into an issue with WordPress and ssh. Essentially,I am trying to enable auto updating with Wordpress over SFTP. I have followed the directions on This thead on DigitalOcean.com up I have ...
1
vote
0answers
28 views

Automatically change remote user with sshfs

I have two remote servers, foo and bar. On both servers I have a user git (with different uid and gid). Both servers are running Debian distributions. Both servers have their each others' root ssh ...
-1
votes
0answers
22 views

how to configure default sftp buffer size on receiving node

How can i configure sftp buffer size is my general question? But i have also the below questions for you: Is it possible to configure default sftp buffer sizes for different users? Is there a ...
0
votes
3answers
3k views

Force SFTP/SCP to copy files with a remote directory's permission

I am having a problem with SFTP and SCP where files that are copied are not inheriting the permissions of the remote parent directory. I have seen similar questions on serverfault where the umask of ...
0
votes
2answers
27 views

Allow webserver user to unlink SFTP-uploaded files

I've set up SFTP, so that some users can upload files to a directory where the web application can pick them up. The webserver is running as user A, and SFTP is configured for user B. User A is ...
0
votes
2answers
28 views

sftp returns code 0 even if there is an error reported “Couldn't create directory: Failure”

I am trying to write a Bash script responsible for creating a folder on a remote server. Snippet: !/bin/bash -e echo "Creating remote folder." echo mkdir test_folder | sftp -oPort=22 ...
1
vote
0answers
17 views

How to enable SFTP error status in RHEL7.1?

Here is the problem that I am facing. I have a provisioning server which runs a perl script to upload and download certain files in a regular interval using sftp. The sftp command is executed in batch ...
0
votes
1answer
3k views

SFTP logging in Solaris Server using 'internal-sftp'

I'm trying to enable logging for SFTP file transfer (without help of any opentools) on solaris 10 using "internal-sftp" but couldn't see any info about file transfers. Please help. **#Argument in ...
2
votes
2answers
1k views

Ubuntu server closing connection after successful login

I am unable to logon to my Ubuntu (12.04 LTS) server via WinSCP or sftp. There was previously a permission problem for ssh_host_* files in /etc/ssh. This was after I tried chmod -R from another ...
0
votes
1answer
12 views

Is it secure to do “chroot” SFTP directory without actually setting owner to be root?

I don't know if this sounds wrong, but I have a use case where I need to run a cron job and rsync the data into the SFTP file directory. Typically SFTP set up on the Internet would suggest to set the ...
4
votes
4answers
3k views

It is fair to jail my SFTP users to their home directory?

roots. I'm running an Ubuntu 9.04 (home) Server on my LAN. I currently use it to store little web apps, photos, some subversion repository and stuff like that. My (few) users are friends of mine and I ...
2
votes
3answers
1k views

Setting up a chroot sftp on debian server

I'm trying to allow a user "user" to access my server by either sftp or ssh. I want to jail them into a directory with chroot. I read the instructions here however it does not work. I did the ...
9
votes
3answers
32k views

How to use openssh sftp command with a RSA/DSA key specified from the command line

The Openssh ssh and scp command provied an -i command line option to specify the path to the RSA/DSA key to be used for authentication. Looking at the sftp man pages I was not able to find a way to ...
3
votes
2answers
34 views

SFTP can access files on the whole disk

I have an SFTP server setup, whenever a user tries to connect over SFTP they see the directory /home/user but then they can also change directory to /home and even / How do I stop this so they can ...
0
votes
2answers
35 views

SFTP logging doesn't work

I have some problemas trying to log sftp actions. I've configured some files but it doesn't write in the log file. I'm using Debian 7. User configuration: ...
0
votes
2answers
2k views

Creating FTP user to access a specific directory with SFTP in Linux Ubuntu Server 14.04 LTS

I'm creating an FTP user on Linux Ubuntu Server 14.04 LTS, but when I try to log in via FileZilla with SFTP I get the following error: Received unexpected end-of-file from SFTP server If I try to ...
0
votes
0answers
16 views

Setting up a secure SFTP drop folder for serving web pages

I've set up a chrooted sftp folder following the instructions here: http://www.thegeekstuff.com/2012/03/chroot-sftp-setup/ It works fine, my only problem is it appears there is a glaring ...
0
votes
0answers
19 views

log a SFTP batch process

I have a simple batch process which does SFTP a file to a SFTP server. The batch code for that is here: option batch abort option confirm off open sftp://server -hostkey="ssh-rsa 2048 ...
0
votes
1answer
23 views

sftp server chroot initial directory

I have configured an sftp server with chroot and it works fine, the only thing that is bothering me is the initial landing directory, since the sftp user does not have write permissions in the landing ...
6
votes
1answer
98 views

Forward SFTP user to chroot subdirectory after authentication

I've set up a SFTP server using OpenSSH, everything works fine and the users I created can connect. After authentication, the users find themselves directly inside /chroot, a directory they are not ...
1
vote
1answer
65 views

ProFTPD pub key authentication, still asks for password

I've set up mod_sftp with ProFTPD, and for some reason it still prompts me for a password when I connect. This is my conf.d/myserver file: SFTPEngine on SFTPLog /var/log/sftp.log Port 7770 ...
0
votes
1answer
72 views

CYGWIN SFTP not working suddenly. Connection closed after authentication

I'd installed CYGWIN for SFTP purpose few weeks ago in a few Win 2003 R2 x64 server and initially all of them are working without problem. However this week problem rises where users are not able to ...
5
votes
1answer
2k views

Does OpenSSH SFTP server use umask or preserve client side permissions after put command (chrooted environment)?

I know this question has been already discussed, but by reading the posts I could not figure the answers, because some said "yes umask can work", and others say "OpenSSH put command always preserve ...
0
votes
1answer
65 views

SFTP clients not respecting default UMASK permissions [duplicate]

Here's my situation: I'm setting up an Ubuntu 14.04 web server for a team to share. I'd like the team to have read/write access to everything inside var/www/html (same as CHMOD 775 on every file and ...
0
votes
1answer
18 views

Accessing files from dreamcompute vps

I'm very new in this subject, but the problem is: I can't access files from a website to make small html edits. The only thing I know is that I need to make it using SSH. What I've tried: I ...
0
votes
1answer
20 views

Restrict SFTP folder with PHP permisions

I want an user to have access to /var/www/domain.com/public_html so I followed this tutorials, but with my modifications so I can have my users upload directly to their domains: ...
7
votes
3answers
2k views

OpenSSH: Difference between internal-sftp and sftp-server

Why are there two ways to setup SFTP with OpenSSH and when to use which? Is there any difference between them? I mean the first one is using a lib from OpenSSH and the second one says "use the ...
1
vote
2answers
156 views

Safety of sshpass and SFTP to dynamic host

I have a server with dedicated IP address A and a server with dynamic IP address B (routing via no-ip.org). A uploads a backup to B via sshpass: export SSHPASS=*** sshpass -e sftp **@** << ! ...
1
vote
1answer
120 views

ProFTPD - File owner is www-data instead of connected user

For some reason, when I ftp in using ProFTP, files I create are owned by www-data:www-data. I'd like them to be owned by myusername:www-data. The strange thing is, there's nothing in the files in ...
1
vote
2answers
197 views

/etc/init.d/ssh restart does not reload the configuration

I've added a chroot configuration to my /etc/ssh/sshd_config. I reload the configuration file using /etc/init.d/ssh reload, then try to connect using an SFTP client, but nothing changes, the user is ...
6
votes
7answers
10k views

How to disable sftp for some users, but keep ssh enabled?

My project needs me to disable sftp for some users, but those users still need to connect over ssh. Does anyone know how to implement this? I've seen suggestions to change the file at ...
0
votes
1answer
46 views

SFTP for Customers [closed]

We would like to setup SFTP on windows server 2003 in such a way that all our customers (approx. 15 users) can have their own download/upload shares (without creating users in windows domain). We must ...
0
votes
2answers
32 views

Block chmod over SFTP

Is it possible to block chmod over SFTP without patching the SSH daemon? I read somewhere that you can do this via ACLs although I am not quite sure how that is supposed to work.
0
votes
1answer
27 views

how to customize google compute engine sftp path?

I have configured sftp for my google compute engine VM instance by key method. I had generated a private and public key by Puttykey generator tool. Then i add that public key to my vm instance path ...
7
votes
1answer
291 views

Why is FileZilla so much faster than PSFTP?

I'm using FileZilla 3.10.3 and PSFTP 0.63 (PuTTY). Can anyone help me figure out why the throughput I get is so drastically different between the two clients? It can't just be a shortcoming of the ...
2
votes
1answer
31 views

Blacklisting and whitelisting SFTP requests

I see that the sftp-server and internal-sftp support blacklisted and whitelisted protocol requests, however, I don't understand what exactly can be passed to those arguments.
2
votes
1answer
192 views

A proper way to create a chrooted SSH on CentOS 7 [closed]

There are a lot of tutorials of how to create a chrooted SFTP, but I would like to use SSH, because it is much faster to simply wget, unzip, mysql and mysqldump than tossing around the FTP and ...
1
vote
1answer
30 views

Adding address to known_hosts command line

I am having trouble adding an IP to known_hosts from command line. I have a mysql backup script that is supposed to upload files to an other server using sftp. The script works fine, but you have to ...
2
votes
3answers
311 views

Duplicity error: BackendException: ssh connection to SERVER_IP:22 failed: Unknown server SERVER_IP

I'm trying to setup a backup system with Duplicity. I have a server that I want to backup to another SFTP server. If I try to connect via sftp it works fine: root@SERVER:~# sftp user@SFTP_IP ...
0
votes
0answers
46 views

SSH stalled after a while

I am executing some commands over SSH from a linux client (centos 7) toward a server (wind river linux) and for a reason it always stopped ( not completed ). If i executed a command that take short ...
0
votes
0answers
96 views

Banned from SSH Centos server but can't find where

For some reason my ip address is banned from using ssh or sftp. I have no problem connecting to the server using an other ip nor i have problems reaching all other services (like http, teamspeak) with ...
0
votes
0answers
41 views

Can't display files from a vsftpd server on centos 6

It's a Centos 6 running apache server and vsftpd server. Problem is not about connection, it's about displaying folder from local_root directory. Here is /etc/vsftpd/vsftpd.conf : # Example config ...
-1
votes
1answer
656 views

Server unexpectedly closed network connection (sftp + putty) [closed]

I am running CloudLinux 6.6 with Cpanel/WHM. We had disabled default port 22, but a client required it, so ever since I switched back to port 22, we have experienced "Server unexpectedly closed ...
1
vote
0answers
368 views

Server unexpectedly closed network connection [closed]

I have Godaddy Shared Linux Hosting. I have enabled SSH. When I try to connect with SFTP or SSH, I frequently get this error: Server unexpectedly closed network connection If I keep retrying, I ...
1
vote
2answers
176 views

Polling FTPS/SFTP Server with Windows Server 2012

Is it possible to securely routinely poll an external FTPS (or SFTP) server and copy/move the files locally using standard Windows Server 2012 functionality? I imagine the use of scheduler to do the ...
0
votes
0answers
28 views

pure-ftpd-mysql doesnt work after install

I searched for a tutorial to install the ftp-Server correctly and I found this tutorial to install pureftpd-mysql but I can't login with the example user or any other user. I tried 2 other tutorials, ...
1
vote
1answer
230 views

How to solve TLS error in Filezilla FTP client? [closed]

When i try to connect a site files by Filezilla FTP client, i get the following error Status: Connecting to 91.109.7.88:21... Status: Connection established, initializing TLS... Error: ...