2022 Developer Survey is open! Take survey.

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
0 votes
2 answers
52 views

FTP over SSH (not SFTP?) when files are on third server not SSH server

I have a machine A. From it, I can SSH to machine B. Machine B can FTP to machine C. I want to download files from C, onto A. I do not have access from A to C directly. Port 20 and 21 ...
user avatar
1 vote
0 answers
11 views

sftp Bad Ownership of Home Directory [duplicate]

When trying to connect to sftp, I get the error in auth.log sshd[53217]: fatal: bad ownership or modes for chroot directory "/home/cclloyd" When using the following sshd config Match group ...
user avatar
  • 611
-1 votes
0 answers
16 views

Execute Script during sftp login

Is it possible to have a script execute for each user every time they login to sftp? I have a 2nd sshd daemon running on another port they use to sftp to the machine. I want a login script to run ...
user avatar
  • 611
1 vote
2 answers
35 views

Using public key SSH works, but SFTP gives error

On a server I installed openSUSE, configured SSH so only one user is allowed, only public key is allowed (no pam, no password), coming from specific IP. SSH works, X11 forwarding works, SFTP works. ...
user avatar
0 votes
1 answer
58 views

OpenSSH - sshd_config - Allow sftp-chroot AND normal ssh login with same user

Hopefully not a dup, but can't find an answer to this one... I found this, which on the surface seems to be the same, but is very old and the only answer in it does not answer the actual question: ...
user avatar
0 votes
1 answer
29 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.
user avatar
  • 246
0 votes
0 answers
27 views

SFTP to server only available while on the VPN

I'm trying to connect to a CentOS 5 box (I know it needs to be decommissioned, it's in the works) using SFTP on port 22. The server is not letting me authenticate while connected to the network via ...
user avatar
0 votes
0 answers
19 views

Ubuntu SFTP "fatal: bad ownership or modes for chroot directory component"

I know this has been answered before, but all the answers make absolutely no sense in my use-case to be honest. I'm hosting a Laravel application on my Ubuntu server, and I've created a separate user ...
user avatar
  • 101
0 votes
0 answers
99 views

"Getting Fatal Error: Receved unexpected end-of-file from SFTP server" from Windows OpenSSH - Issue with latest OpenSSH version

EDIT: Well, found (at least one) problem. We set up a new VM and installed the latest version of OpenSSH server for windows (v8.9) and it also fails to run correctly. The servers where it still ...
user avatar
  • 1
1 vote
1 answer
71 views

SFTP change default directory

I'm setting up SFTP for a group of users I want to only have SFTP access, for the purposes of uploading files to the server. I already have them jailed to their own home directories, and have blocked ...
user avatar
0 votes
1 answer
23 views

Allow FTP for user1 and FTPS for user2 in ubuntu

Is this possible to allow FTP protocol for user1 and use FTPS for user2 in Ubuntu 18.04? I'm using vsftpd with the following configuration listen=YES anonymous_enable=NO local_enable=YES write_enable=...
user avatar
1 vote
1 answer
69 views

Format SFTP Logs to have Username on Each Entry

I'm running a production server (Debian 10, standard OpenSSH package) that has Pure-FTPD running for legacy connections and SFTP for all our current connections. The SFTP server is setup with a chroot ...
user avatar
0 votes
2 answers
148 views

How do I use SFTP without SSH? [closed]

I want a fast and flexible file server but I don't need encryption or authentication. How can I use SFTP for this on Linux systems?
user avatar
0 votes
0 answers
87 views

SFTP (sshd_config) not respecting match user half the time

I installed OpenSSH on a Windows 2019 server and added this to the sshd_config file: Subsystem sftp sftp-server.exe -d C:\SFTP\Vendors Match user sftp-vendor1 ChrootDirectory C:\SFTP\Vendors\...
user avatar
  • 101
0 votes
1 answer
12 views

Multiple FTP sites for one folder (IIS)

I want to use my existing FTP folder created on Windows Server IIS and make a new SFTP site for this folder while keeping old FTP up and running. Why we need two (S)FTP servers for one folder? Because ...
user avatar
0 votes
0 answers
31 views

How to deploy site to VPS from Github by SFTP with password (no keys)?

I found many instructions on the net, but all are based on SSH keys. My SSH is based on keys only, but I created another user account just for SFTP with login and password. I can login to SFTP easilly ...
user avatar
0 votes
1 answer
81 views

sftp - give password access to one user only & chroot

First I kniow this kind of question has been asked a lot, and I tried a lot of solution here and on SuperUser but none worked and I can't find why. I want to configure my ssh to only accept key login ...
user avatar
  • 111
0 votes
0 answers
321 views

Using multiple Match Group with Windows OpenSSH

Trying to configure the sshd_config to restrict depending on which AD group you belong. The goal was to have it that when you connect it would ChrootDirectory to the only directory you had access to. ...
user avatar
1 vote
1 answer
143 views

Finding deleted/imported files in SFTP server using logs

We have an SFTP server, I am trying to find out if some specific files have been deleted from the server or if they have even imported to the server or not. I'm going through the log files under /var/...
user avatar
  • 241
0 votes
0 answers
34 views

SFTP on ubuntu 20.04

I'm trying to set a sftp on my ubuntu 20.04, I have 2 users dev & prod and I want them to connect to folder /opt/tomcat/webapps/dev_project for dev & /opt/tomcat/webapps/prod_project for prod. ...
user avatar
0 votes
1 answer
166 views

command to add the port 80 to the sftpgo service

While doing sftpgo setup on linux, getting below error, what I believe is we might need to add the 80 port to sftpgo service. But not getting command that we can use to add the port to the service, ...
user avatar
0 votes
0 answers
110 views

Command to get Sublime Text SFTP client to execute sudo at every file save

I am using Sublime Text editor with its SFTP plugin to edit files (also root files) on my server. I thought there is some linux command or file that can be edited that would enable me to execute sudo ...
user avatar
0 votes
0 answers
57 views

Allow SFTP and place ACL on SSH connections

I have a bit of a unique situation with Ubuntu 20.04. I need to allow SFTP and SSH on port 22 but I want to limit SSH console connections using an ACL. I can't do this at a port level, AFAIK, as the ...
user avatar
1 vote
0 answers
100 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 ...
user avatar
0 votes
1 answer
255 views

ProFTPd config via SFTP and FTP

I have a ProFTPd that actually use FTP protocol, but I would like to use SFTP too. I found a solution with <VirtualHost> block, but it doesn't work for me. <IfModule mod_sftp.c> &...
user avatar
  • 3
0 votes
1 answer
219 views

where does my sftp passwords save in linux?

I am using ubuntu 20.04, I used to connect to a server using sftp (like I added my server address as sftp://... and chose the option to remember my password forever.) Now I forgot my password :) I ...
user avatar
  • 103
0 votes
1 answer
46 views

Allowing both SFTP and SSH with chrooted directory

I am attempting to set up a user with SFTP access and limited SSH access. Therefore, I've chrooted the user and then set it up basically exactly as specified in this tutorial. However, while I can ssh ...
user avatar
  • 21
0 votes
0 answers
23 views

blacklisting download from sftp for a single user

I need to create a user that can use ssh, but not download files through sftp. I've googled a lot, and had try a lot of configurations, but none of them work. So I think the only way to do it, it's ...
user avatar
  • 1
1 vote
0 answers
97 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 ...
user avatar
0 votes
1 answer
61 views

configure ssh to avoid password prompt when I cannot access remote .ssh directory

I need to programmatically upload and download files via an sftp connection to a remote server. My username has permission to access a certain remote directory through a password, but not the .ssh ...
user avatar
  • 105
3 votes
2 answers
843 views

Setting up sftp on Amazon Linux 2 with ssh keys, user segregation (sftp vs ssh), different ports, and user directory constraints

TDLR: I have a Catch 22 where, depending on permissions on the user's home directory, I can get the SSH authentication to work, or the user directory constraints, but not both. BTW, I really want to ...
user avatar
0 votes
1 answer
164 views

Error establishing a database connection on Bitnami Wordpress Site

I'm running Wordpress Bitnami website on an ec2 instance. Operating system is Debian Linux Earlier today, I noticed my site becoming slow whenever I upload products(Content) I have done technical ...
user avatar
1 vote
0 answers
30 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 ...
user avatar
  • 111
2 votes
1 answer
217 views

Why do SFTP connections succeed only part time?

I have set up OpenSSH 7.7 on Windows Server 2019. The box is caught up on updates as of this writing. Yesterday at the end of the day I tested connecting to the box using SFTP, using both an admin ...
user avatar
  • 143
0 votes
1 answer
496 views

How to prevent a SFTP user from seeing other directories?

I'm setting up a Windows Server 2019-based web server. One of our vendors needs to be able to upload files. I have Added sshd Created a login for them to use Created a group for that login Added that ...
user avatar
  • 143
0 votes
0 answers
26 views

Ubuntu 18 FTP user can't be restricted to folder using VSFTPD

I have an Ubuntu 18.04 server and I installed vsftpd. I created a new FTP user following this tutorial: https://devanswers.co/installing-ftp-server-vsftpd-ubuntu-18-04/ I want to lock the user to the ...
user avatar
  • 151
0 votes
0 answers
381 views

SFTP - Match Group ignore in sshd_config

I have the following settings, and I restart the sshd service every time I make a change. Match Group sftp_users ...
user avatar
  • 121
2 votes
1 answer
125 views

Centos - Deploy Web Application - What is the best way using non-apache User Account with SFTP/WinSCP

I have a simple question, however, I am struggling to understand how to do this in a secure manner, I have a PHP-based web application that runs on Linux (Centos7), I have "user" access with ...
user avatar
  • 3,845
0 votes
0 answers
165 views

How can I create an upload-only SFTP Server on Windows?

I need to create an upload-only SFTP Server on Windows. I have installed OpenSSH SFTP Server according to https://manage.accuwebhosting.com/knowledgebase/3627/How-to-setup-SFTP-on-Windows-Server-2016....
user avatar
  • 1
0 votes
0 answers
205 views

Change to remote directory getting Couldn't canonicalise: No such file or directory Cygwin sftp

Hope everyone safe and healthy. Since 10 days, I'm breaking my head to figure out change directory issues with Cygwin SSH sFTP server. Cygwin has installed in Windows 2016 server and account using ...
user avatar
0 votes
1 answer
107 views

SFTP server gives connection error after reinstating deleted directories

Some time ago I set up an SFTP server which worked happily. I have a configuration like this in my ssh_config # override default of no subsystems #Subsystem sftp /usr/lib/openssh/sftp-server ...
user avatar
  • 117
0 votes
0 answers
114 views

Why SFTP user can view all files using FileZilla?

I created FTP site and I set the permissions for each user and user groups (Admins/Users) using virtual directory. Each user has its own directory which he can access and Admins can access all folders ...
user avatar
  • 9
0 votes
0 answers
37 views

Ubuntu SFTP hide unauthorized subfolders [duplicate]

I currently run Ubuntu 20.04 Desktop server. And I am using the SFTP function by installing OpenSSH on the server. For testing purposes, I temporarily created a directory called /home/mydirectory/...
user avatar
0 votes
0 answers
49 views

Double check if an SSH account is SFTP-only and chrooted

Note that this question is not about how to do chroot or make an account SFTP only. The question is about whether there are specific ways for a sysadmin to check if a chrooted and SFTP-only account is ...
user avatar
0 votes
1 answer
40 views

SFTP server CentOS

I'm trying to configure SFTP server on CentOS 7, in manner that I need to have multiple users: user1, user2, user3... all accessing only its own folder, for example: /sftp/user1/uploads; /sftp/user2/...
user avatar
0 votes
1 answer
4k views

sftp server throws Permission denied (publickey)

I'm setting up WordPress site on Apache server with SFTP enabled. After configuring all the necessary in /etc/vsftpd.conf I generated ssh keys with ssh-keygen -t rsa which produced private and public ...
user avatar
  • 101
1 vote
2 answers
510 views

OpenSSH internal-sftp not accepting allowed/denied_requests

Trying to set up a highly restricted SFTP server with OpenSSH_7.4p1 for remote scripts to upload data. The goal is a black hole where the scripts can do a "put" with user level keys and no ...
user avatar
  • 13
0 votes
0 answers
248 views

Allow SFTP access to one or several directories for several users

For some of my users, I need to allow them SFTP access to one or several directories. Multiple users can have access to the same directory. But for directories they don't have permission for, they can'...
user avatar
-1 votes
1 answer
320 views

vsftp work in terminal but not on filezilla and browser

I work under in a docker image, under a VPS! i have install vsftp in my ubuntu 20.04! at the beginning I tested ftp 127.0.0.1 in the command line and everything goes well I created a user and I tested ...
user avatar
1 vote
1 answer
234 views

How set up user that can use SFTP whilst retaining other user ownership

I have a user ‘canread’ which has read only rights and is owner of files and subdirectories in the directory /www/thedir/ ‘Canread’ should never have write rights, not even for a millisecond (for ...
user avatar

1
2 3 4 5
20