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

47
votes
2answers
53k views

SFTP logging: is there a way?

I'm wondering if there is a way to log commands received by the server. It can be all SSH commands, as long as it includes information on commands related to file transfer. I'm having issues with an ...
3
votes
1answer
552 views

SFTP user can't edit or create files

Server: Ubuntu 12.04 LTS I am using openSSH and have created an SFTP user called bob who belongs to group sftponly. I have chrooted bob to his home directory which is /usr/share/nginx/www/bob/. bob ...
34
votes
5answers
15k views

Allow SFTP but disallow SSH?

I'm starting a very little hosting company for a few friends and little clients, nothing big. I want to give my "clients" the right to manage their files on the server. I hate FTP as it is not secure ...
13
votes
5answers
25k views

How to put desired umask with SFTP?

I have a SFTP server (openssh/sftp-server) and I would like to set umask 002 for users using this service. I tried setting PAM (pam.d/common-session), and .profile for each user, but no luck. With ...
11
votes
9answers
1k views

SSH to a computer that will then SSH to another computer [duplicate]

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 ...
8
votes
4answers
4k views

How can I create a user only for sftp

I have added a user to the system via "adduser" script. Then, in the /etc/passwd file I tried changing the /bin/bash to /sbin/nologin or to /dev/null with no luck... I would like the user not having ...
8
votes
4answers
5k views

FTP v/s SFTP v/s FTPS

We're setting up a web server at our workspace. In conjunction, we're planning to install an FTP server, however I'm stuck at what protocol to employ -- FTP, SFTP or FTPS. I googled around, trying to ...
0
votes
1answer
840 views

Connecting to passive FTP over SSL (ftps)

I have setup an FTP service in Windows Azure using this guide http://www.itq.nl/blogs/post/Walkthrough-Hosting-FTP-on-IIS-75-in-Windows-Azure-VM.aspx The FTP Server works well when I connect without ...
21
votes
5answers
26k views

Is it possible to use rsync over sftp (without an ssh shell)?

Rsync over ssh, works great every time. However, trying to rsync to a host which allows only sftp logins, but not ssh logins, provides the following error: rsync -av /source ssh ...
0
votes
1answer
229 views

How can I create a user account that only allows for uploads via sftp?

I currently have a website with an upload page. We have users who want to upload lots of data (gigabytes), and the website is proving to be fickle. As a result, we're considering letting the users ...
4
votes
1answer
7k views

EC2 FileZilla login OK but no write or delete access

I am a total Apache noob, and after much hair-pulling and gnashing of teeth finally got SFTP access to new EC2 instance in passive mode. Can login only as "ec2-user", or "root" with no password, but ...
3
votes
2answers
629 views

SSH/SFTP connections fails silently on OSX 10.8.2 - ssh-agent issue

I'm trying to login to a remote machine with SSH or SFTP. when I try ssh u-indgo@ssh1.eu1.frbit.com the CLI just won't respond. I get an empty new line, in which I can type characters, but nothing ...
2
votes
3answers
2k views

SFTP server on Windows using LDAP for authentication [closed]

I need to set up an SFTP server on a Windows 2008 Server machine that will be used to recieve large files (~200MB). I need the server to authenticate any users trying to log on, against the company's ...
7
votes
4answers
5k views

How do I setup SFTP for sites without giving shell access?

I'd like to use SFTP for all the sites on my cPanel CentOS server as we had an FTP password hacked before (not hard). However I don't want each sites SFTP account to have shell access (not even jailed ...
4
votes
3answers
2k views

set up a chrooted SFTP login with OpenSSH

How might I create an SFTP login for an untrusted user in which he can only access the files in his own home directory and not run any commands? The online tutorial OpenSSH SFTP chroot() with ...
9
votes
4answers
3k views

Methodologies for performance-testing a WAN link

We have a pair of new diversely-routed 1Gbps Ethernet links between locations about 200 miles apart. The 'client' is a new reasonably-powerful machine (HP DL380 G6, dual E56xx Xeons, 48GB DDR3, R1 ...
10
votes
2answers
9k views

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 ...
10
votes
3answers
5k views

Set up sftp to use password but ssh not to use password

Is it possible to set up a user on ubuntu with openssh so that ssh does not use password authentication but sftp does? I assume that if I change /etc/ssh/ssh_config to have PasswordAuthentication yes ...
10
votes
4answers
3k views

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 ...
8
votes
2answers
9k views

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 ...
7
votes
9answers
44k views

How can I map a SFTP to a Drive, natively in Windows

Today I saw that Vista and Win7 (which I am using) have the option to map ftp natively, according to this article: http://cybernetnews.com/cybernotes-map-a-ftp-to-a-drive-in-windows/ But I need to ...
5
votes
3answers
618 views

Restricting the network access of Docker container

I'm in the process of creating an SFTP only Docker container, one that will be used by multiple people for the sole purpose of uploading and managing files in their own chrooted Environment. On ...
4
votes
3answers
5k views

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 ...
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
1answer
5k views

CopSSH SFTP — limit users access to their home directory only

Let me preface this by saying I've read and followed these instructions at the FAQ many times: http://www.itefix.no/i2/node/37 It does not do what the title claims... It allows every user access to ...
5
votes
2answers
656 views

nginx clobbering sftp traffic during peak times - is tc the answer?

This is probably a continuation of my previous (unanswered) question because the underlying cause is probably the same. I have a Linux server with nginx and sshd running on it. It's on a shared ...
4
votes
3answers
572 views

SFTP access akin to jailed shell

I have a question about creating a user with sort of jailed shell access (actually all is required of this user is an sftp access to one particular directory). Scenario is as follows - I have an ...
4
votes
2answers
3k views

How to execute a script on sftp connection?

I run an ssh server on my machine and I restrict access to certain users to sftp only with internal-sftp & ChrootDirectory. What I need is a way to execute a script before chrooting users. ...
4
votes
4answers
3k views

How to restrict everyone except a certain group in SSH?

I want to restrict all users on a server to only be able to use SFTP while the members of an admin group should have full SSH access. I found that it is possible to restrict the members of a group by ...
2
votes
1answer
117 views

does OPENSSH SFTP server uses 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 ...
2
votes
2answers
2k views

How to allow multiple people to change mtime -timestamp of a file through sftp?

I have a directory that multiple users have access to. They change, upload, and delete files in the directory. They all belong to the same user group. The files in the directory have access rights of ...
2
votes
3answers
2k views

Plesk FTP not working but SFTP and Shell is working [closed]

I am facing a strange problem. The FTP on my Plesk VPS is not working. Whenever I try to connect, FileZilla FTP client says: Status: Resolving address of xxxxxxxxxxxxx.com Status: Connecting to ...
1
vote
6answers
571 views

Secure file transfer in linux without SSH?

First thing i want to apologize if this question is silly or something...i just tried to research but it seems to be a bit hard to find exactly what i want in Google ! [or i'm not smart enough to find ...
1
vote
1answer
134 views

Directory Listing (ls) error ONLY in port 22 (SFTP)

Using SFTP I suddenly get this result: Status: Connecting to 64.207.146.82... Response: fzSftp started Command: open "root@64.207.146.82" 22 Command: Pass: ********* Status: Connected to ...
1
vote
0answers
401 views

Debian squeeze: SSH login works fine, SFTP login returns a Failed password error

I'm currently trying to setup SFTP on debian using openssh. I can still login with all my users using ssh, but as soon as i'm trying to login using an SFTP client like filezilla i'm getting an failed ...
1
vote
1answer
1k views

Managing Linux Directory Permissions & SFTP

Good morning; I have a RHEL 5.7 web server configured to allow SSH/SFTP only by specific groups. I'd like for content managers to upload content to their respective directories and have that content ...
1
vote
2answers
3k views

OpenSSH 5.3 setting UMASK for SFTP chroot env, dosen't work at all

I tried to override umask setting on SFTP connection in chrooted env. I couldnt use subsytem diffrente than internal-ftp. In OpenSSH_5.3p1 (Debian-3ubuntu4, OpenSSL 0.9.8k 25 Mar 2009) there's umask ...
1
vote
3answers
1k views

sftp chrooted dosent work with some sftp client (Cyberduck)

I'm not able working on SFTP+chrooted env Using internal-sftp directive it works, but i'm not able to set umask. (ex umask 002) Using sftp-server from openssh package dosent't work because login shell ...
1
vote
2answers
884 views

Internal SFTP Settings

Goal: to limit user access to home directory and symlinked directories in home. I tried the following configuration in sshd_config # Subsystem sftp /usr/lib/openssh/sftp-server Subsystem sftp ...
1
vote
1answer
2k views

How to disable sftp subsystem for a specific user or group?

On a linux server running OpenSSH, How can I disable sftp access (the sftp subsystem) for a specific user/group? The user should only be able to access a shell but have no sftp access. Edit: The ...
0
votes
5answers
138 views

Secure File Upload

I need the ability for clients to send me files. I would like them to use web services, but they are unable to do this (they want to just FTP a file over like they are used to, so this is what I have ...
0
votes
3answers
2k views

How to SFTP on Amazon EC2

I installed Amazon AMI 1.0 and logged in as ec2-user with key. Then I ssh and set a password with sudo passwd ec2-user But now when I connect via SFTP I get: Disconnected: No supported authentication ...