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
9 views

FTP server set behind VPN server

I have a question concerning setting up a FTP server on a VPN connected host. Basically I have a FTP server setup on my machine that's behind a VPN through the VPN providers client. Everything works, ...
1
vote
1answer
16 views

SSSD with e-mail address LDAP usernames

I have a small SFTP server setup using SSSD to authenticate users via LDAP using SSH keys. This works completely fine for basic usernames (i.e "ausername") but I've been requested to make a change so ...
0
votes
0answers
20 views

How to loop with different directory

I would like to SFTP from A to B and do some file movement. server A has 4 set of directories:- set 1 /customermaster/archive /customermaster/error /customermaster/log /customermaster/output set2 ...
1
vote
0answers
26 views

rsyslog/syslog-ng pattern to log ssh and related sftp session for an user

I'd like to log an user specific ssh and following sftp session into a file which would have username in the filename: I have this: Jan 8 13:43:38 mx1 sshd[84622]: Connection from 17x.xx.xx.xx port ...
0
votes
1answer
16 views

sftp only account: access via putty/winscp not working

I set up a sftp only account some months ago. I took roughly this guide: https://wiki.archlinux.org/index.php/SFTP_chroot Access from linux is possible. Now someone wants to access the sftp account ...
0
votes
0answers
28 views

Failing to connect trough SFTP

I have a VPS with Ubuntu18 with vsftp installed. And I have a client-side MacBook HighSierra. Just recently installed the VPS, and since I'm new to networking I used this tutorial to configured it - ...
0
votes
0answers
44 views

Can't execute commands when connected to AWS SFTP Transfer server

First of all, I created a simple bucket in S3. After that, I created a server in AWS SFTP Transfer service https://aws.amazon.com/sftp/. Then I created a new user inside AWS SFTP for test purposes ...
0
votes
2answers
187 views

sftp Couldn't read packet: Connection reset by peer

When I execute the following command on my local computer, I can connect (the password is asked): sftp -v -oPort=2828 USER@SERVER.COM Resulting log from sftp -v: OpenSSH_7.6p1 Ubuntu-4ubuntu0.1, ...
0
votes
0answers
47 views

GCP: Can not ssh to instance after sftp setting (ForceCommand internal-sftp)

After I added following lines to the /etc/ssh/sshd_config for sftp setup as online guide suggested. Match group sftp ChrootDirectory /home X11Forwarding no AllowTcpForwarding no ForceCommand internal-...
0
votes
0answers
21 views

Logs stopped on FTP server

I have FTP server which is receiving logs from Cisco-WSA, but suddenly the logs stopped, Checked the vsftpd service it's up and running, restarted it multiple times too. Checked telnet on ftp ...
0
votes
0answers
27 views

An issue with apache and sftp users

I have installed an apache server, then I have created SFTP user webdev and uploaded all website files with FileZilla to /var/www/mysite.com/public after this action all my files are with ownership ...
0
votes
0answers
73 views

SSH using domain name (not IP) with Cloudflare proxy

I'm trying to access my server using Bitvise SSH client, I'm able to access the server using IP, port, and ssh private key. What I'm trying to do here is use domain name, port, and ssh private key, ...
1
vote
0answers
110 views

Cannot connect to SFTP server

I am moving two Windows Server 2008 R2 servers to two new Windows Server 2012 Standard servers. From these servers we need to connect to two different SFTP servers to upload files. I can connect to ...
0
votes
0answers
54 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
272 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
35 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
45 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
396 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
54 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
68 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 ...
1
vote
1answer
222 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
71 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
213 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
180 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
59 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
31 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
49 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
155 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
22 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
106 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
203 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
36 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
429 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
2k 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
71 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
296 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
207 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
31 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
50 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
72 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
290 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
112 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
36 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
2k 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
209 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
397 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 ...