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.

Filter by
Sorted by
Tagged with
1
vote
1answer
32 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 ...
1
vote
0answers
63 views

SSH Connection was slow on windows server

I try to use OpenSSH to setup SFTP on Windows Server 2008R2. It can be used but the connection was really slow. It takes around 4+ minutes to make a connection. By the way, I use local window users ...
2
votes
1answer
70 views

What should a noob know before opening a port to the world?

I have done port-forwarding in the past, so that specific applications can be accessed from outside our network, namely security cameras. Yet, something about opening an SFTP or an ssh port to the ...
0
votes
0answers
8 views

How to change default directory for a vsftpd to a virtualhost folder?

I have configured multiple virtual hosts in Apache. I am creating users with useradd <username>. I want to assign the directory of the virtual host to a specific user in vsftpd. For example, ...
0
votes
1answer
39 views

Unable to allow SFTP but disallow SSH with Public Key Authentication

I've got an Ubuntu Server 20.04 instance running in the cloud. I've configured my accounts to use public key authentication, and will disable password authentication once everything is verified ...
0
votes
0answers
9 views

Upload-only chrooted sftp access

I don't quite know the risks involved with my server setup. I've opened my server up to the world with following setup, which aims to allow file uploads exclusively. sshd_config: Match User ...
0
votes
1answer
33 views

How to make sure all uploaded files are readable by the webserver?

Every file uploaded has the wrong permissions so my webserver (Nginx) can't read them. When I manually adjust them by running sudo chmod -R 755 /var/www/* it works again but I'd have to to it ...
0
votes
0answers
79 views

File transfer of a big WordPress website by SFTP is slow and systematically gets disconnected

I'm currently working on a big website (www.example.com) in WordPress. The website uses a simple hosting provided by gandi.net. I want to make a backup of the current entire website in another server ...
1
vote
1answer
50 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 (...
3
votes
1answer
48 views

Is it possible to disable download from OpenSSH SFTP Server

Is it possible to setup an upload-only SFTP server using OpenSSH. From the manpage (man 8 sftp-server) I found the options to blacklist and whitelist requests. But when I tried a get option in SFTP ...
1
vote
1answer
47 views

How to specify user home in sshd config?

I have my sftp users chrooted into /var/www and I would like for them to be automatically moved into their directory. I found this answer which helped me a lot: Chroot SFTP - Possible to allow user to ...
0
votes
0answers
150 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 ...
0
votes
1answer
59 views

AWS EC2 Linux restrict SFTP user to their home directory when users connect from WinSCP

I'm working on a solution to restrict the user to the home directory or a specific directory. I need to restrict a user for below scenario, we have multiple Wordpress installation in webroot /var/www/...
0
votes
1answer
84 views

folder permissions and sftp

I'm trying to set folder permissions on a linux machine. I have this primary folder: /home/master/staging This folder houses subfolders containing user sftp drop points. I need to set folder ...
5
votes
2answers
191 views

Windows FTP over SSH

We have quite a lot of scripts that are used to upload and download files with a vendor on the Internet using the Windows supplied ftp.exe. This is proxied via SideWinder and is FTP out to the vendor,...
0
votes
0answers
15 views

Logging chrooted users with different socket/hide “/dev” folder

I have a few chrooted users on my sftp-server. Logging works as intended, but I have one simple question: Is it possible to hide the "/dev" folder for the users? My configuration now: module(load="...
0
votes
0answers
67 views

WinSCP client and OpenSSH Server - Server offered these authentication methods: publickey,keyboard-interactive

We can connect with user/password, but we have a client that wants to connect with ssh-rsa certificate. WinSCP log: . 2020-03-19 17:00:01.376 -------------------------------------------------------...
0
votes
0answers
16 views

Setting up account to upload to a website subdirectory

I need to setup a stfp account on Ubuntu 18.04 that meets the following requirement: Can upload to subfolder of website i.e. example.com/subfolder/ Uploaded files belong to www-data group so are ...
1
vote
1answer
148 views

SFTP/SCP slow uploads in Windows, Fast in Linux

I recently moved from a VPS to a reseller hosting account for my little sites and I'm having a baffling issue since: uploading files to the server is dreadfully slow. Servers are CentOS, cPanel etc, ...
0
votes
2answers
63 views

Limit documentroot on SFTP with SSHD

I use proFTPD on debian 8. For some reasons i need users that can only access to their documentroot. I already configured this and it works but only when i connect in FTP. If the user connect on SFTP,...
0
votes
0answers
36 views

Disable “fatal: bad ownership or modes for chroot directory component” check in OpenSSH

I need to setup simple file sharing server. User logs in via SFTP (chrooted), uploads file and the file is available via nginx. The issue is that the disk space is mounted as a CIFS mount and the ...
0
votes
1answer
130 views

SFTP error on Synology DSM

I created a user (no root), I can connect with him over ssh, I can send files over scp but when I'm using sftp I get this error: subsystem request failed on channel 0 I checked /etc/ssh/sshd_config: ...
0
votes
0answers
128 views

SFTP sessions occasionally terminate for the same client/user

I have a simple application doing multiple SFTPs to a server throughout the day - when all is well, STDERR looks like this (details genericized but always with the same user from the same client): ...
0
votes
0answers
29 views

Azure Domain Services LDAPS to authenticate access to SFTP server

Trying to configure an Ubuntu file server that will use AzureAD credentials using Azure Domain Services secure ldap. The server is to be accessed either via SSH or some ftp application (think ...
0
votes
1answer
231 views

SFTP users can't remove files

I've set up a simple SFTP server on Ubuntu 18.04. I have 10 users that should only have access to the files in their home directories and they should not be able to get out of their home directory. ...
0
votes
0answers
25 views

sftp timing out due to multiple connections

I am using this command lftp -e 'mirror --parallel=5 --use-pget-n=10 /var/vtemp /var/vtemp' sftp://root@X.X.X.X to transfer thousands of files between two servers, the download started fine and used ~ ...
0
votes
1answer
81 views

How to distribute files via SFTP in read-only, without root permission, without password prompt and restricting directory access?

How can I distribute some files to everyone without password via SFTP protocol in read-only restricting directory access without the need of root permissions/chroot? I prefer to not use software that ...
2
votes
1answer
288 views

Linux Bash Script for detecting (and notifying by email) new SFTP connections to server

I am looking for help with a Linux server (CentOS) guide or script that can be used to send an email to a server account when a new SFTP connection is detected. For example, giving the connection name ...
0
votes
1answer
41 views

Why does internal-sftp verbose logging not include rename, move and delete operations?

I have configured a CentOS 7.7 installation to use the internal-sftp subsystem and to chroot a specific user in to a particular folder. I want to enable logging, so I configured sshd like this: ...
0
votes
1answer
131 views

Restricting SFTP users (OpenSSH-based) to a custom port only

I understand that there have been tons of other threads on the Internet on allowing OpenSSH SFTP connections on a custom port. I've hit them, not all, but a lot. And have not been able to make it work ...
0
votes
1answer
25 views

Cannot Chroot into a directory but can cd into it

When connecting to an SFTP server i have no problems Chrooting into the /home directory and accessing the directory i want (FileFolder). But when i attempt to configure it so it Chroots straight in to ...
0
votes
1answer
51 views

Transferring 87000+ files from one debian server to another efficiently?

I have two servers and need to copy 87000+ files from old server (Debian 9) to the new server (Debian 10), tried using sftp but the connection keeps getting dropped midway and it is taking too much ...
0
votes
1answer
143 views

MobaXTerm (or other SFTP/SSH Clients) - “Elevated” SFTP Access [closed]

I'm using MobaXTerm on PC/Windows, playing with linux on raspberry pi. When I SSH in, I can access the root folder in the image I'm using by: sudo -i /root/bin/remountfs_rw But the SFTP screen to ...
1
vote
1answer
81 views

Using WinSCP to connect Windows Client to Linux server

I am trying to understand how to set up an SFTP connection between Windows 7 PCs (yes, these PCs will be supported through part of next year) to a Linux Server. I think I'm finally getting it - but ...
0
votes
0answers
39 views

SFTP randomly closes out customer SFTP connection from IBM Sterling

I'm at a bit of loss in troubleshooting this issue. We run an Ubuntu 14 server which functions as an SFTP server. OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.10, OpenSSL 1.0.1f 6 Jan 2014 The customer gets ...
1
vote
1answer
313 views

Filezilla fail to connect Dropbear SSH server _ unexpected end-of-file

I install dropbear SSH server in Alpine OS dropbear config : DROPBEAR_OPTS=" -p 22 -K 9" ( p = port , K = keep-alive in seconds) now I can connect to SSH terminal in KVM ssh root@192.168.122.58 ...
0
votes
0answers
46 views

SSH with priv key and google authenticator and SFTP

I followed a guide on how to setup SSH using private key and google authenticator and it works fine... I disabled Rootaccess, setupup privatekey and the authenticator. Then I was trying to enable ...
0
votes
0answers
17 views

Log transfer started and transfer completed on sftp server

I manage a SFTP server where I want to log when a file transfer is initiated and when a file transfer is completed. At the moment I have inotifywait to monitor the folder which triggers a script ...
0
votes
0answers
19 views

SFTP connection fails from a proxy server

One customer from their proxy server is unable to connect my SFTP server. No customers have a problem, even this customer can connect from another client but just this particular proxy server. 1- The ...
0
votes
0answers
30 views

How to set up sftp for all subscriptions with correct user witouth pass ssh permission

I have a VPS 18.04 ubuntu running Plesk, im the only person access to this vps. On there are multiple subscriptions. I enabled sftp only, ssh is locked down for a single user together with a keypair. ...
0
votes
1answer
57 views

one ftp account multiple server

We looking for a solution for the following use case: We have several ftp accounts (SFTP, FTPS, FTP) to remote servers of different webhosting providers. We also have freelancers who support us and ...
-2
votes
2answers
307 views

AWS SFTP connection closed error

WHen I try to connect with my server endpoint getting connection closed. It should be connected with server endpoint. AWS Connection Closed
0
votes
0answers
23 views

Proftpd login failure

I've installed & configured proftpd on a remotessh debian server as a non root user following this guide. I've also created a AuthUserFile file using ftpasswd util as suggested in the manual. The ...
0
votes
0answers
62 views

how do I upload file to sftp from google compute engine instance

To test I turned on remote login on my mac and tried ssh and sftp from my google cloud compute engine instance. ssh user@ip and sftp@ip but in both cases the connection fails with "Couldn't read ...
0
votes
0answers
21 views

Logging in via SFTP changes owner of parent folder

I have a serious problem with my SFTP server running under macOS 10.14.6. (Server is version 5.8) What I'm trying to achieve is to restrict SFTP users to only see their home folder. I have all ...
0
votes
1answer
1k views

SFTP error “Received unexpected end-of-file from SFTP server” on CentOS 6

I'm getting this SFTP error "Received unexpected end-of-file from SFTP server" on CentOS 6. I've added a new user below sudo adduser --shell /bin/false paul sudo passwd paul Then edited /etc/ssh/...
0
votes
1answer
233 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 ...
0
votes
0answers
210 views

Debug failing SFTP transfers (“forced close”)

I have a user who regularly connects to a server via SFTP and reads and writes files. This has been going on for years without issue, until a couple of weeks ago where we're now seeing sporadic ...
0
votes
0answers
18 views

Increasing FTP Server download speed through multiple FTP Servers [duplicate]

I have developed a Freemium Software which can be downloaded. I host the download on an Ubuntu FTP Server; in which I rented a Virtual Private Server to do this. My concern is the download speeds. If ...
0
votes
1answer
144 views

SFTP blacklist commands on Centos 6?

I've set up a new account to SFTP only by giving shell of /bin/false, and made member of stfp_only group. I then edited my /etc/ssh/sshd_config as outlined in numerous guides I've been reading like so ...

1
2 3 4 5
18