Questions tagged [sftp]

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.

255 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
1 answer
3k views

Configure SFTP with OpenSSH and an AWS S3 Bucket mounted via S3FS on Amazon EC2

How do I allow multiple SFTP Users with S3FS and OpenSSH? Everything works, except SFTP Users don't have permission to write to their Chrooted Home Directory: remote open("/some_file"): Permission ...
T. Brian Jones's user avatar
3 votes
0 answers
4k views

openssh sftp on windows log sftp to file

I have activated the openssh server on a windows server 2019. SFTP works fine, but I can't get it to log to a file, I activated file logging in sshd_config with this: # Logging SyslogFacility LOCAL0 ...
TauTau's user avatar
  • 31
3 votes
0 answers
434 views

SFTP issue betwen OpenVMS and Linux

We use a piece of software called CrushFTP to run SFTP-related jobs. This runs on a Ubuntu 16.04 box. One of the servers we need to communicate with is an ancient OpenVMS box... I think it's OpenVMS 8....
Mike Oldfield's user avatar
3 votes
0 answers
57 views

Chroot SFTP Group

I have a CentOS 6.9 file server set up. Everyone in the company is given access as a member of the staff group. They're dropped into /home/sharedfolder when they connect, however they're able to jump ...
Gray Loon's user avatar
3 votes
0 answers
2k views

SFTP reverse proxy

Serverfaulters. Short: I'd like to publish several SFTP servers through one server (reverse proxy/relay). How could I do that? Long: there are three components: -...
gamelton's user avatar
2 votes
1 answer
98 views

WinSCP-like ssh tunnel in Chrome OS

For the Chrome OS, is there any equivalent to the SSH tunnel functionality seen in WinSCP? At the destination, I need to tunnel from one machine via SSH into another for SFTP purposes. Usually I'm on ...
Michael Sandy's user avatar
2 votes
1 answer
2k views

changing /proc/sys/vm/overcommit_memory broke my server

After changing it to 2 it closed my sftp session, and I cannot connect via ssh or sftp although it kept my session open. Whenever I run a command that isnt cd, I get -bash: fork: Cannot allocate ...
Armani Rodriguez's user avatar
2 votes
0 answers
7k views

SFTP Error: "client_loop: send disconnect: Broken pipe"

I'm running an SFTP server using CentOS 8, I have a folder in /var/ called "sftp" that is owned by Root and is assigned 777 permissions. Each user gets their own folder within /var/sftp/ and has ...
kfeen's user avatar
  • 21
2 votes
0 answers
259 views

internal-sftp on chroot jail disconnects with status 1?

Server: Ubuntu 18.04.1 LTS SSHD: OpenSSH_7.6p1 Ubuntu-4, OpenSSL 1.0.2n I have created a test user sftpuser and sftp group to try logging in through a WinSCP client, as a start. In sshd_config I ...
Sasha's user avatar
  • 21
2 votes
1 answer
719 views

Is ssh's 'ChrootDirectory' feature considered secure?

I know that a chroot is generally not considered secure and was not designed as a security feature. So my questions are: Am I correct, that chrooting an ssh user (with ChrootDirectory) is unsafe and ...
Shadowigor's user avatar
2 votes
1 answer
4k views

SFTP is periodically extremely slow for no reason

I am transferring a bunch of gigabyte-sized files using SFTP over a fairly fast connection, between two servers running Ubuntu linux, with not much CPU load. I am usually able to reach 5.0 MB ...
Dale Mahalko's user avatar
2 votes
0 answers
680 views

Creating multiple SFTP users in Centos (installed in AWS EC2) with SELinux

I am having difficulty letting others FTP/SFTP to our site. I have multiple Virtual Name Servers created and each of them running their own website. So , I would like to give FTP/SFTP access to users. ...
Vic85's user avatar
  • 103
2 votes
0 answers
8k views

SFTP Chroot Jail preventing SSH: This service allows sftp connections only

I set up a SFTP Chroot Jail succesfully, but would like to give my users access over SSH, in addition to SFTP. If I attempt to SSH in with the testuser, after providing the password, putty closes. ...
Matthew Moisen's user avatar
2 votes
0 answers
400 views

SFTP logging configuration fails with an error (OpenSSH 5.1)

Adding following line to sshd_config Subsystem sftp /usr/libexec/openssh/sftp-server -f LOCAL5 -l INFO When i start sshd service it fails with error "garbage at the end of line : -f" My openssh ...
Amit P's user avatar
  • 121
2 votes
0 answers
487 views

ForceCommand vs Subsystem

Is there any particula reason why I should use ForceCommand internal-sftp instead of Subsystem sftp iternal-sftp and disabling the shell?
meso_2600's user avatar
  • 121
2 votes
0 answers
6k views

Match Group restriction in sshd_config does not work

I have got two groups in sshd_config: AllowGroups sftpusers sshusers And I have two groups below subsystem sftp /usr/lib/openssh/sftp-server: Match Group sftpusers,!sshusers ...
Mister natZONE's user avatar
2 votes
1 answer
657 views

Setting up SFTP users that are jailed to their home directories with Chef

I'm hoping someone can help me figure out how to chroot jail users to their home directories for SFTP with Chef. I've tried multiple SSH cookbooks and Googled for an answer for several days with no ...
jtkendall's user avatar
2 votes
0 answers
836 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 ...
stratton's user avatar
  • 121
2 votes
1 answer
142 views

Contribute CS5 Connection to Apache2 Server SFTP issues

We moved a few websites to an Apache2 setup and have since not been able to connect to the server with SFTP. I get a password / username error. There is no load on the server. SSH is configured. ...
jasonflaherty's user avatar
2 votes
1 answer
1k 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 ...
Drazion's user avatar
  • 49
1 vote
0 answers
821 views

curl only attempting public key auth for SFTP, not printing SSH authentication methods available

I am trying to use curl to connect to an SFTP server. The server only accepts password authentication. When I try to connect, curl only attempts public-key auth. $ curl --verbose --insecure 'sftp://...
sourcenouveau's user avatar
1 vote
0 answers
945 views

Where does atmoz/sftp store the files?

After setting up atmoz/sftp via Docker, where, in the container, am I supposed to find the uploaded files? I have tried different compose files (see below) but: 1- Can't find the uploaded files. 2- ...
Sig's user avatar
  • 151
1 vote
0 answers
151 views

How to troubleshoot a server having SFTP, SCP transfer speeds of around 500 KB/s with many but not all machines?

We have two Ubuntu servers that have very slow upload and download SFTP, SCP, and RSYNC speeds, around 500 KB/s, when connecting from most home machines. These servers have fast corporate Internet ...
Jake's user avatar
  • 113
1 vote
0 answers
858 views

SFTP logs to different files

I'm configuring an SFTP server and having some issues with logs ending up in different places, depending on a group membership. This is on RHEL 8 but the same issue exists on an old RHEL 6 machine. ...
anlag's user avatar
  • 136
1 vote
2 answers
4k views

SSH ChrootDirectory Fails on login error: /dev/pts/2: No such file or directory

I've created a user in Ubuntu and given them password auth access so they can login with ssh but i want to restrict their usage to a custom home folder located in: /var/www/daniel (is a root folder ...
user1529597's user avatar
1 vote
0 answers
813 views

Connection closed by remote host when copying client public key to sftp server

I want to copy the client public keys for a container to a remote sftp server and after that attempt do some uploads to the server via bash script(the bash script will be invoked when the container ...
Golide's user avatar
  • 143
1 vote
0 answers
123 views

Is it possible to connect to Azure Storage V2 HNS SFTP (User/Password) from Android Samsung 'MyFiles' SFTP client?

Azure Storage V2 (HNS enabled) accounts supports SFTP now and I wanted to setup a private and secure file server to migrate files between devices. I followed a Microsoft guide to set up SFTP with a '...
GettingItDone's user avatar
1 vote
1 answer
784 views

Can't log into SFTP server via FileZilla, Terminal is okay

I'm trying to connect to SSH server using FileZilla, SSH key is okay (I've checked fingerprints and I'm sure I'm using the right one key). In Terminal SSH with the same username&key works ...
pavel's user avatar
  • 111
1 vote
1 answer
143 views

Does Linux sshd support sftp RESUME

a short question; does Linux sshd support resume on file transfer via sftp? I've seen other similar questions, but not any real answer.
JoBe's user avatar
  • 276
1 vote
0 answers
325 views

How to close SFTP session with Azure logic app after task is finished?

We have an Azure logic app that checks every five minutes for files on an external SFTP server. Sometimes the requests fail. The external party indicated that this might be because the SFTP sessions ...
amigobrewbrew's user avatar
1 vote
0 answers
248 views

How to limit users to their home directory SFTP on Ubuntu 20.04

Is there any way to limit users to certain home directories with sftp on Ubuntu OS 20.04 and giving them write access to their directory?' I was able to keep each user to only see their directory and ...
Jflores0515's user avatar
1 vote
0 answers
81 views

FTP retrieve user home directory from an admin connection

I'm implementing a cleanup of old files on SFTP server. I have a user named admin who has full access rights on the FTP. I would like to know if it's possible to retrieve the home directory for ...
Mcsky's user avatar
  • 111
1 vote
0 answers
975 views

Windows 10 - Open for read: Permission denied

I was attempting to create an SFTP server and successfully managed to get it to the point where I can view folders from an external location. However, whenever I try to copy folders across from the ...
Ciaran's user avatar
  • 31
1 vote
0 answers
206 views

SFTP is not successfully connecting to some clients, error is returned

I have an SFTP server installed on Centos 8. First, I created a group sftpusers and users (with passwords) in it. I added following lines in /etc/ssh/sshd_config file: Port 22 Port 33000 ... #...
coding's user avatar
  • 111
1 vote
0 answers
470 views

provide reason when shell denies rsync or sftp access, instead of: protocol version mismatch, protocol incompatibility, Received message too long

When someone connects to rsync, and it's supposed to stop them, and (wrongly) echos an error message, I have output from rsync like: protocol version mismatch -- is your shell clean? or rsync error: ...
Peter's user avatar
  • 2,816
1 vote
0 answers
612 views

SFTP Connection suddenly not working

we have an sftp connection that suddenly stopped working and is throwing "Connection closed by remote host". It hangs for a long time on sending packet type 50 line after which it succeeds ...
zievher's user avatar
  • 11
1 vote
0 answers
1k views

How do I add a certificate to an SFTP site running on OpenSSH on Windows Server 2019?

I have an SFTP site running on OpenSSH on Windows Server 2019. I can log in to it with a Windows username and password, but I want to also enable logging in with an SSL certificate. So I created a key ...
ekolis's user avatar
  • 111
1 vote
0 answers
29 views

Archlinux SFTP indicated package length

I use Archlinux as a pure server system. The user "http" is authorized for ssh access. In this way I access the /var/www directory for the stored websites. Recently, the login and the folder ...
CodierGott's user avatar
1 vote
0 answers
272 views

proftpd: virtual users access via SFTP with ssh keys, password

I encountered a problem with authenticating virtual users. The documentation lists various methods, such as password or key, or both. Indicates the virtual host. Is it possible to split the ...
FreeLance87's user avatar
1 vote
0 answers
190 views

Annoying sftp chroot again (Ubuntu 20.04)

I think I understand all of the moving parts of not allowing a chrooted user over sftp to write to their own home directory (/home/username), but instead to write to an enclosed directory (/home/...
user603157's user avatar
1 vote
0 answers
219 views

Enforce SFTP Blind file upload with a proxy

How to enforce SFTP blind upload with a proxy? Scenario: I have the following nodes: a server, a proxy and multiple clients. The clients can initiate connection to the sever through the proxy node, ...
atevm's user avatar
  • 111
1 vote
0 answers
282 views

SFTP linux server with windows AD file server backend

I need to configure an sftp server (sftp-server) to give access to a Windows shared folder using Windows AD authentication (Freeipa is already configured in sftp-server) and permissions configured on ...
Alex Trivel's user avatar
1 vote
0 answers
1k views

How to create read only and shared folders for multiple users SFTP?

Using the steps mentioned in this link I am able to setup a basic SFTP server and create 2 users customer1 and customer2. And each will get their own root folders. Is there anyway to create shared ...
Uday Kiran Reddy's user avatar
1 vote
1 answer
659 views

Linux change sshd_config to allow a user to use remote terminal (command line)

I can SSH and run commands as the system administrator. I also have set up some users to do "jailed" SFTP. How can I change the following sshd_config file to allow TestUser2 to do both jailed SFTP (...
NealWalters's user avatar
  • 1,333
1 vote
1 answer
1k views

Why is SFTP so slow on Azure VM

I have a VM on Azure, with an SFTP server installed (from nsoftware). I know SFTP is slower than FTP, but the speed I am getting is abysmal: Upload: File transfer successful, transferred 10,485,760 ...
Greg Gum's user avatar
  • 137
1 vote
1 answer
938 views

Error: 0xC002918F at FTP Task, FTP Task: Unable to connect to FTP server using "FTP Connection Manager"

I am trying to download data files from a FTP server to local machine through SSIS. But it throws the error Error: 0xC002918F at FTP Task, FTP Task: Unable to connect to FTP server using "FTP ...
Alekhya varma's user avatar
1 vote
2 answers
886 views

Cygwin - SSH DOMAIN user restrictions

In our company we are using cygwin on each of our machines to be able to run our projects with GNU make (everyone uses Windows 10)! I also developed a tool, with which all employees are able to ...
Dany's user avatar
  • 11
1 vote
2 answers
452 views

Reliability of (SFTP or WebDAV) with FUSE

I want to mount a Google Cloud Storage bucket as a network drive on my laptop using FUSE and SFTP or WebDAV. Can I use SMB or Samba? From time to time, I may run a differencing and merging tool (aka ...
mekineer's user avatar
1 vote
1 answer
282 views

sshd verbose logging when renamed to sftpd

I need a specific PAM configuration for my SFTP service, so I copied the sshd executable and renamed it sftpd. Then I set up a specific configuration in /etc/pam.d/sftpd to authenticate the users ...
Denis Valdenaire aka Joe Linux's user avatar
1 vote
0 answers
2k views

SFTP client connects, but stops at OpenSSH version

I have a weird situation which I have been unable to determine the root cause for. I have a service I need to connect via SFTP to on the internet. When connecting via SFTP this is what I see when ...
user1782878's user avatar

1
2 3 4 5 6