Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
28 views

Mounting a file share over SFTP for all users

I'd like to use Expandrive (or similar) to mount a Linux file share over SFTP. I'm wondering how to manage this for multiple users. I don't want users accessing the Expandrive application and ...
0
votes
0answers
199 views

Can SSH, but can not SFTP

I have this in /etc/ssh/sshd_config I'm not sure why I can't SFTP into my box even if I entered correct password. I can SSH I can seem to see on my Mac Finder also # $OpenBSD: sshd_config,...
0
votes
0answers
7 views

Proftpd : Allow users to 'see' base directory

I am setting up an FTP server and initially jailed all users in their home directory by using: DefaultRoot ~ This behaviour causes the users to see only the contents of their home directories and ...
2
votes
0answers
26 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 ...
1
vote
1answer
20 views

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

This used to work just fine until I had to change the server ip. I can sftp to the server. I can also run a simple python code using paramiko to connect to sftp, and it works ok. But when I run ...
3
votes
1answer
181 views

500 Syntax error, command unrecognized. when I use FileZilla Client to connect the Server

I installed the FileZilla Server on my Windows Server. and when I use the FileZilla Client to connect it there gets bellow error: https://filezilla-project.org/ Connecting to server... Connected, ...
-4
votes
3answers
49 views

I need to run SCP, SFTP and SSH in three different ports

I need to run SCP, SFTP, and SSH in the same host but via three different ports; is there a way where we can configure SSHD in that manner? Thanks in advance.
0
votes
0answers
17 views

How can I get vsftpd to let me allow write permissions for individual users, and also login while requiring explicit TLS?

This is such an odd occurrence, I have no idea where to go from here. I'm setting up vsftpd on a Digital Ocean Ubuntu droplet. I've made a good number of users with their individual directories. I ...
0
votes
1answer
111 views

how to loop files in folder and rename extension in sftp

Could someone show me how to rename all files extension inside folder in sftp? Example, I have folder "Test" in sftp and inside this folder have few files, such as, test1.tmp, test2.tmp..... and I ...
0
votes
0answers
53 views

lftp downloading by date

I'm trying to get a lftp script to only download the newer directories & files. It synchronises fine, except I need it to only update within the last 7 days or so. The script lines in question ...
0
votes
1answer
123 views

Configuring SFTP in ubuntu 18.04, error “/bin/bash No such file or directory” or “Unexpected end-of-file from SFTP server”

I'm configuring SFTP in ubuntu 18.04 following this tutorial (https://www.digitalocean.com/community/tutorials/how-to-enable-sftp-without-shell-access-on-ubuntu-18-04) But when I try to connect from a ...
0
votes
0answers
117 views

Issues syncing when using gcsfuse mounted for a SFTP directory

I am having difficulty using gcsfuse mounting a storage bucket to a directory that is being used for SFTP uploads on a CentOS 7 compute engine VM in GCP. I initially tried to mount it using the basic ...
0
votes
1answer
37 views

Bash SFTP Script - Too many login attempts looks like a DOS attack

I've managed to write a bash script, based on someone's previous work, to send out files via SFTP to a Limoma GoAnywhere application. I'm not fluent in bash or shell. Unfortunately, the GoAnywhere ...
0
votes
0answers
27 views

SFTP method in APT sources.list

I am serving a private Debian package repository via SFTP to handle Access for users. Now on the client side I would like to do: deb sftp://user@host: ... But there is no SFTP method available only ...
0
votes
0answers
44 views

Restricting SFTP access to user home directory / connection reset error

I'm trying to configure SFTP access and restrict it to user home directory on Ubuntu 16.04. It's Digital Ocean droplet with root SSH access configured in creation process. When I'm trying to connect ...
0
votes
0answers
144 views

Linux: add an sftp user who can only access a web root subdirectory (not their home folder)

I see a lot of instructions on how to create an SFTP user and jail them to the /home/username directory. However, I want an SFTP user to only access a directory like this: /var/www/html/website.com/...
0
votes
0answers
8 views

How to setup multiple user for sftp forr upload file purpose and restrict user to own directory only? [duplicate]

Linux server aws ec2 I will create a directory in home like /home/in/. Inside the /in/ directory, i will create directory for multiple user. For example, /in/user1/ and /in/user2/, user will upload ...
0
votes
0answers
20 views

AWS Lunux 2: Chrooted SFTP server with AD users

We'd like to implement an SFTP server with chrooted user's folders as /home/username. The issue here is that this server has joined to AD domain and users login to it as username@domain.com. Adding to ...
1
vote
0answers
58 views

SFTP chroot jail on Centos system with Active Directory integration

I am trying to set up a SFTP chroot jail environment on one of our Centos, which is integrated with Active Directory for user authentication (set up with Realmd/oddjob). I would like to chroot each ...
0
votes
1answer
158 views

SFTP slow with high latency

Server has a 1Gbps uplink speed, local PC has a download speed of 100Mbps. Latency is 89ms. SFTP speed while downloading a single file from the server to the PC maxes out at 2.5MB/s, even though ...
1
vote
1answer
32 views

SFTP through multiple computers

I want to copy a file from A to D. The computer can only access the ones right next to it. +---------------------------------------------------------+ | Computer A <-> Computer B <-> ...
0
votes
1answer
306 views

Load Testing Scenario for upload/download file to/from sftp server using winscp client on Azure

We have Azure (Microsoft cloud), we have installed winscp to upload and download files to SFTP server but performance is too much low, it takes more than enough time to upload and download 50-100 MB ...
0
votes
1answer
1k views

how to open sftp connection and execute sftp commands in shell script?

I need to connect to multiple SFTP connections and copy files to my system. I will maintain one CSV file in our local system. It will have multiple partners' information of username, password, ...
0
votes
1answer
44 views

Allowing Apache and SFTP to have write permission

How can I give write permission to Apache as-well as SFTP without having to chown the /var/www directory to apache when it needs to write something and having to chown sftp when I need to upload ...
0
votes
0answers
241 views

ProFTPD using mod_sftp and DefaultRoot

I'm trying to set up Ubuntu 18.04 (bionic) with ProFTPD Version 1.3.5e as a SFTP server (only) on port 2222. Filezilla (Windows) refuses to connect when the parameter "DefaultRoot ~" is in proftpd....
0
votes
1answer
123 views

SFTP client can't write to own home directory when chrooted there

This is a tougher variant of the previous question bad ownership or modes for chroot directory component. In that other question, we learn that openssh refuses to chroot a user to its own home ...
0
votes
1answer
29 views

How to tell who is accessing my server by IP instead of FQDN (SFTP)

Long story short, we have 100 or so clients. Some access us by IP (1.1.1.1), and some access us by IP ftp.contoso.com. We use Bitwise SFTP server if that is helpful. Is there any way we can detect ...
0
votes
1answer
1k views

Error when attempting to upload file to Azure VM via SFTP

I receive the following error when attempting to upload certain files to my VM via SFTP: Network error: Software caused connection abort I had thought it was related to file type (dll), as it had ...
0
votes
0answers
43 views

Login to CentOS SFTP is succesful, but login to Redhat SFTP fails with Broken Pipe

Goal: My goal is to create SFTP Server to Redhat linux and let external users to upload files to SFTP with limited rights to other part of Linux Server. I'm failing with this and I would need advice....
1
vote
1answer
62 views

Possible to create multiple public and private key to SFTP Linux server?

I try to create Public Private key to Linux SFTP server. If I have 5 different users accessing SFTP and wondering is it possible to create key to every single users accessing from different client ...
1
vote
0answers
217 views

SFTP Access with Active Directory user

I'm trying to access through SFTP using an Active Directory user. I have a RH7.3 machine, configured with SSSD. Sshd_config has some parameters that allow some AD users to login throught ssh. Now I'...
1
vote
1answer
89 views

Fatal: unable to initialise SFTP: could not connect

I'm running OpenSSH on Cygwin, which I'm trying to use as an SFTP server only. I installed it first with just the default settings (external SFTP server sftp-server) and it worked. I was able to run ...
0
votes
0answers
19 views

Transferring files via SFTP converts some files to directories

Yesterday I transferred a large number of .php files from my local CentOS 7 server to an EC2 AMI Linux server. A handful of the files were converted to directories on the AMI server. I use a Mac with ...
0
votes
0answers
33 views

Why isn't SFTP logging working?

I'm missing something simple, I think, with SFTP logging. Subsystem sftp internal-sftp -f AUTH -l INFO also, I've got Match Group customers # ChrootDirectory %h ForceCommand internal-sftp ...
1
vote
1answer
1k views

Restrict SFTP users to their home folder

I want to restrict SFTP users to their home folder so that they won't see anybody else's folder/home directories. Unfortunately all SFTP users can see other user's folders at the moment. All the posts ...
0
votes
1answer
138 views

How to properly chroot when using key based authentication within openssh-server

I'm running a Debian Stretch x86_64 server, with OpenSSH_7.4p1 Debian-10+deb9u3, OpenSSL 1.0.2l 25 May 2017. I want to use chroots in combination with OpenSSH server's internal SFTP system. My ...
0
votes
1answer
100 views

Chroot SFTP - Possible to allow user to write to current (chroot) directory

I currently have a WORKING SFTP login, using a private key for login and the user is chroot'ed into their home directory. Goal: Keep the user chroot but allow WRITE access to the relative chroot ...
0
votes
0answers
121 views

Ubuntu Server 18.04 vsftpd upload difficulties (upload too fast?)

I have a server for a small business dropbox running off of a static IP at the office. There are only 4 users. I have vsftpd running along with an apache2 web server with htpasswd enabled and a ...
0
votes
0answers
1k views

SFTP login error - Broken pipe Couldn't read packet: Connection reset by peer

Suddenly my SFTP server that jails use to their home directory started giving the following error packet_write_wait: Connection to ::1 port 22: Broken pipe Couldn't read packet: Connection reset ...
0
votes
2answers
151 views

How to tell SFTP which public key to use?

SFTP has an option "-i" to set the private key to use for public key authentication. However, there does not appear to be an option for which matching public key to use. Surely it must need this to ...
0
votes
1answer
384 views

FileZilla will not connect to Google Cloud VM after changing the SSH Keys

I have been using FileZilla to manage files on my GCP VM using SFTP. I created a key pair using KeyGen on Ubuntu Linux, copied the pub key into the SSH Keys on my VM instance and loaded the private ...
1
vote
1answer
64 views

Can I use SFTP as SCP?

My client wants a simple storage accessible via SCP and SFTP. There will be two user accounts, one is read-only and the other is read-write. For security reasons I want to dumb it down as much as ...
0
votes
0answers
16 views

Coexisting accesses to personal and shared folders in SFTP

For a small team of about 10 users with Windows clients, I have to install an in-house Linux server. The goals are: storing personal files on the server to allow centralized backup having a common ...
0
votes
1answer
151 views

SSH private key working on SFTP (filezilla) but not on console

I generated a SSH key using WHM "Manage rott's SSH keys to be used on SFTP and console SSH connection. Filezilla got connected easily with the private key and pass, but when I tried to use it on ...
0
votes
0answers
55 views

DEBIAN SFTP change UMASK not working

I have a user let call him bob connecting via sftp with bob account. using for client ftp-kr in VSCODE(osx) and server debian 9, I would like to setup a umask like for ftp service. I tried adding ...
0
votes
0answers
198 views

ssh/sftp server and force different user

How should I set up the sshd_config file to create ssh/sftp server that will: allow to log in all users as usual, but on log in the user will be changed to one predefiner user master shell and sftp ...
1
vote
2answers
80 views

How to secure SFTP connection in both way

I want to setup an SFTP connection between my computer and a server. I generated a pair of keys on my computer and wrote my public key in "authorized_keys" file on the server. I'm sure it works ...
1
vote
2answers
193 views

Files uploaded using SFTP does not have the correct rights

I have a weird issue when trying to upload files to a server using SFTP. When for maximum security I use a user with a disabled shell ("/bin/false") to upload files, I get mode 640 for the uploaded ...
0
votes
1answer
262 views

How do I get a server side umask to be honored in scp -r when creating directories?

I am trying to setup an scp receiver that allows select users, based on ssh keys, to scp files to a specific server as a user different than themselves. This is to satisfy access restrictions by ...
0
votes
0answers
30 views

AIX sftp auto logout

I'm having a hard time setting sftp auto logout. ssh connections logout, but sftp connections don't timeout. How should I set an sftp auto-logout? sftp myserver Connecting to myserver... sftp> ...