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.
Questions tagged [sftp]
998 questions
16
votes
2 answers
How do I set default permissions for SFTP for an Ubuntu Server?
We have an Ubuntu 10.04 server. How can I set it so that new files created (or copied) over SFTP or SSH have g+rw and g+rwx permissions (where appropriate)?
I'm also using setgid (chmod g+s) so that they inherit the proper group owner.

wag2639
- 2,145
- 6
- 24
- 33
16
votes
5 answers
How does RSYNC do incremental Backups
How does rsync know which files are changed and which are not? Does it log its data anywhere in the file?
Because I want to do incremental backups, but first it will transfer all files.
So my main question is: if I upload the initial files via FTP…
John
15
votes
1 answer
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 permissions"
Before all just to precise:
I use…

drkmkzs
- 311
- 1
- 2
- 8
15
votes
7 answers
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 /etc/ssh/sshd_config, but I'm not sure what to change.

Shaobo Wang
- 260
- 1
- 3
- 6
14
votes
2 answers
Up-to-date alternatives of rssh or scponly
I need:
An scp and sftp server
With chroot-ed environment
With non-login (ssh not allowed for scp/sftp users)
Options and related issues I found:
scponly
No updates since more than 6 years
Does one really need to recompile the whole thing to make…

Julen Larrucea
- 338
- 1
- 3
- 11
14
votes
2 answers
SFTP fatal bad ownership or modes for chroot directory ubuntu 12.04
I just set up my SFTP server and it works fine when I use it from my first user account.
I wanted to add a user which we will call 'magnarp'.
At first I did like this in sshd_config:
Subsystem sftp internal-sftp
Match group sftponly
…

Jonathan
- 143
- 1
- 1
- 4
14
votes
6 answers
Trying to setup chroot'd rsync
I'm trying to set up a backup server.
I want to chroot each user (client) to its home directory, and only allow it to use sftp and rsync.
I quickly discovered that I was not the only one trying to do something like this, and I found this guide and…

Mark R.
- 141
- 1
- 1
- 3
13
votes
1 answer
Why use lxc instead of chroot?
One ubuntu server hosts 3 apps all on separate domains.
Each app has its own developers.
App developers belong to linux "sftp" group.
chroot allows password sftp access for each app developer.
/home/app1/prod
/home/app2/prod
/home/app3/prod
In…

csi
- 1,555
- 7
- 23
- 42
12
votes
9 answers
SSH to a computer that will then SSH to another computer
Possible Duplicate:
How to configure a shortcut for an SSH connection through a SSH tunnel
I have a situation where I would like to have SSH/SFTP access from my workstation to a server that is not directly accessable from my workstation. I do…

uprise
- 137
- 1
- 5
12
votes
2 answers
SFTP server: better to use SSH internal sftp subsystem or ProFTPD plugin?
I've been tasked to install a new SFTP server. Per-se, this is a very simple operation: simply using the internal-sftp role of the ubiquitous SSH service (with chrooting) is sufficient to have a reliable SFTP server.
However it's in my nature to…

shodanshok
- 47,711
- 7
- 111
- 180
12
votes
1 answer
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 SFTP protocol, because FileZilla (and WinSCP) is…

Chris
- 231
- 1
- 6
12
votes
1 answer
Can I configure VSFTPD to listen only to localhost?
I have a legacy app that needs FTP and cannot do SFTP.
My solution is:
put an FTP server in place using VSFTPD
configure the firewall to accept port 21 connections only from localhost
Set up an SSH connection from the client with the legacy…

Will Martin
- 2,431
- 5
- 19
- 18
12
votes
4 answers
How to get full control of umask/PAM/permissions?
// Updated Feb 8 - Outstanding issues in brief:
How to umask directories differently from files?
How to umask on Nautilus copy/paste?
How to set umask for SSHFS?
OUR SITUATION
Several people from our company log in to a server and upload files.…
user60129
12
votes
4 answers
Securing file system for secure SFTP server
This might not seem as a development question, but in essence it is. Let me explain how. Our main development focus is dynamic content pages. Some of our customers have asked us to allow them space in our servers (which they pay) for their old…

Geo
- 3,071
- 11
- 42
- 52
11
votes
1 answer
SFTP - whitelisting requests for read-only access
I am trying to white-list certain SFTP requests so that a user can only open and read files and folders. Currently I have this, based on this thread:
Subsystem sftp internal-sftp
Match User my-read-user
ChrootDirectory /sftp/%u
ForceCommand…

silent
- 432
- 4
- 19