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.

learn more… | top users | synonyms

0
votes
1answer
15 views

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

I'm trying to setup a backup system with Duplicity. I have a server that I want to backup to another SFTP server. If I try to connect via sftp it works fine: root@SERVER:~# sftp user@SFTP_IP ...
0
votes
0answers
9 views

What part of the reboot cycle in Linux is WinSCP detecting as FTP port 21 being available?

When I rebooted one of my boxes running Ubuntu Server LTS 14.04.1 today, I received a strange message from WinSCP during the automated reconnect attempt that I've never seen before: ...
0
votes
1answer
19 views

SFTP Error: open for write: permission denied

I have created a user and a group only for SFTP and when I try to transfer a file with Filezilla in /var/www I have this error: Open for write: permission denied I have configured sshd_config like ...
0
votes
0answers
12 views

permission denied using a public key with Copssh on a windows 2003 server

I've a Windows 2003 SP2 server with CopSSH version 1.1.0.1 installed. I've a user set up for SFTP who is able to transfer files from two servers. I am trying to add the public keys he provided me so ...
0
votes
1answer
21 views

SFTP Error - Couldn't read packet: Connection reset by peer

I try to configure SFTP on Centos 7, on my first server it works perfectly, but on my second server when I try to connect me with : sftp USERNAME@serveripaddress I have this error : Could not read ...
0
votes
0answers
18 views

Permissions of files and subfolders in /var/www/html (Ubuntu 14.10 + Apache2) [duplicate]

I have some questions about permissions and ownerships of folders and files in Ubuntu Server 14.10 + Apache2. Is it correct that /var/www/html is owned by root:root by default? As far as I read, it ...
0
votes
2answers
34 views

Trying to ChrootDirectory an SFTP user to their home directory

I have followed a few examples of how to do this, all of them end up with modifying sshd_config to Subsystem sftp internal-sftp Match User chubbyninja ChrootDirectory %h AllowTCPForwarding ...
1
vote
1answer
33 views

Any idea why SFTP works differently based on the client machine/network

I have an odd situation. From Computer A with PSFTP.EXE (putty sftp client) I can connect to a remote sftp server and use dir and chdir to browse around. If I try to get or put files I get a ...
-3
votes
1answer
18 views

SFTP - Create a hierarchy of users to control access

I would like to create two levels of users to restrict SFTP access: "parent" users, and "child" users. I need the parent users to be able to access all the directories owned by the children, but the ...
0
votes
1answer
33 views

What firewall configuration do I need for SFTP to be able to put files on a remote server

I have a situation in production where SFTP (using Putty PSFTP) is working when I connect and list files on a remote server but put and get fail with error permission denied. In my dev environment I ...
0
votes
1answer
44 views

SFTP connection issues

I just setup a new debian sftp server in order to provide access to multiple CHROOTed users. While the first account I added works just fine, the second one disconects right after authentication. ...
0
votes
0answers
14 views

Howto setup socks proxy for sftp on windows

I have a windows server and I want to setup a sftp server over socks proxy. A firewall is running but my ports are open. First, I have installed an sftp server with a local test account. It is up and ...
0
votes
0answers
38 views

CentOS - how to chroot sftp and have mysql as shell

I have a user who I would like to have sftp access to one folder only (chrooted). Also he logs in with ssh, I would like him to only have access to mysql. I am able to chroot the users sftp (by ...
0
votes
1answer
32 views

Give SFTP users and Apache write permissions on same folders

I have a centos6 web server where developers also upload by connecting through SFTP. So, to give developer login write permissions, I have change /var/www user to that user. My current permissions ...
-1
votes
1answer
34 views

SFTP best way to remote access multiple intranet machines except for using VPN?

I have only one public IP address, behind it are some virtual machines that I need to access using WinSCP/FileZilla from public internet. I know I can do port forwarding on the router like ...
1
vote
1answer
36 views

OpenSSH as SFTP server: Trigger successful and faulty changes

I am using the current OpenSSH version on Debian 7.7 Whezzy, which is, according to dpkg, 1:6.0p1-4+deb7u2. I configured OpenSSH to allow clients to connect using SFTP, and read and modify (upload or ...
0
votes
0answers
34 views

SFTP permissions with domain users Ubuntu Server 14.04.1 LTS

If there was ever a linux question, it usually has something to do with permissions. Alright, so I'm trying to set up a sort of "double-blind" SFTP server. I'm looking to make a folder, ...
-1
votes
1answer
50 views

Issue with access via port 22 from some FTP clients [closed]

I am having an issue with connecting to an SFTP server. On the same computer when I access SFTP via application A, I am given access, but when I use application B, I have no access. In my server ...
0
votes
1answer
79 views

Files uploaded using FileZilla with SFTP are missing permissions

I am using chroot in sftp. And it works perfectly, but files uploaded with FileZilla are stored without any permissions (basically 000). ---------- 1 cwsftp sftp 4364328 Jan 19 16:02 ...
2
votes
1answer
65 views

OpenSSH: Difference between internal-sftp and sftp-server

Why are there two ways to setup sftp with openssh and when to use which? Is there any difference between it? I mean the first one is using a lib from openssh and the second one says "use the ...
0
votes
1answer
43 views

Setup a secondary SSH/SFTP user with limited directory access

I am trying to create a new secondary user that has access to SFTP files and SSH access to a specific directory. I have the SFTP work, but when I try to login via SSH, I get the following error: ...
1
vote
0answers
36 views

Daily sftp stops working, and weekly sshd fails and needs reinstall

My server has daily issues with its SFTP. Everyday I need to change the SFTP subsystem. Everyday it gets reset to: Subsystem sftp /usr/libexec/sftp-server While it has to be: Subsystem ...
0
votes
1answer
49 views

sftp login issue with chroot

I want to be able to create a structure for hosting multiple sites. I want the user files to reside inside /var/www/sites/domain.com and the sftp access to be restricted with chroot. I've followed ...
0
votes
1answer
41 views

Configuring Chroot for SFTP Users

I am trying to configure a SFTP server for some automated backups. I configured an Ubuntu 14.04 server and have had partial success. The idea I'm looking to do is this: A user will be created for ...
0
votes
1answer
26 views

Can we put condition in ChrootDirectory directive of Match Group in SFTP configuration?

I am using SFTP with active directory. After authenticating users I am redirecting all users to one directory that is upload2. But now I want redirect some users to one directory and some users to ...
13
votes
3answers
1k views

Enable SSH shell access but disable SFTP access

I've searched for a viable answer to this question, and most of the answers include advice on why to not do it. However, here's the scenario, and what makes it necessary: I have a console app, and in ...
-1
votes
1answer
135 views

SSH login works but SFTP login doesn't

I already saw this thread, but it didn't answer my question because it has been left for dead. As the title says, when I log into my VPS with putty, everything works fine. But when connecting with ...
7
votes
1answer
95 views

How to detect or log interrupted uploads with OpenSSH SFTP server?

I have this problem where a customer of ours has been SFTP-ing truncated data. I'm not sure if the problem is on our end or his. I've enabled SFTP logging but it does not allow me to detect if an ...
0
votes
1answer
43 views

Remote SCP & SSFTP access to linux server denied

This situation is a bit embarrassing but I could really use some help. I took steps to secure my linux server by carrying out the following steps: created and use a different user to use in place ...
2
votes
1answer
77 views

cant sftp into ubuntu server

Hey guys I've set up an openssh server, but I still cant sftp or ftp into my ubuntu server. I am always getting login failed errors for every attempt i try to make. I am running ubuntu 14.10 I ...
1
vote
0answers
71 views

Add trusted remote certificate to Ubuntu server

I'm running an app on an AWS server running Ubuntu 12.04.4 LTS. I'm writing a script to connect to an SFTP server from the command line, but am unable to connect. I believe this is because my Ubuntu ...
0
votes
1answer
69 views

Linux SFTP user without a home directory

Suppose I have a home directory called "website". I want to create an sftp user to access that home folder and the sftp user is going to have a less obvious user name. There may be quite a few users ...
6
votes
3answers
2k views

Is IIS SFTP natively supported by Windows Server 2012 R2?

Does Windows Server 2012 R2 have native SFTP support? I see a role FTP Server but it doesn't say whether this includes SFTP.
0
votes
1answer
28 views

Logging SFTP activity with auditd

I am currently using auditd to log TTY activity for users that are SSH'd into my system. However, SFTP sessions are not logged in this way. Is there a way to log them using auditd or will I need to ...
-2
votes
1answer
128 views

How to open sftp connection and execute sftp command in the same shell command [closed]

Is there any possibility for opening sftp connection to remote server and execute sftp command in same line from shell. Something like this: sftp user@example.com && put /tmp/test.txt /tmp/ ...
2
votes
1answer
283 views

SFTP-server uploaded files having wrong rights

I have been trying to figure out what is wrong with the file rights. When I am uploading files using FileZilla all the files get rights -rw-r--r--. I would want them to have -rwxr-xr-x. I have tried ...
0
votes
0answers
35 views

Enable activity logging on Cygwin open SSH (sftp) server install on Windows Server 2008 [duplicate]

I've successfully installed and configured OpenSSH using the Cygwin package on a Windows 2008 Server. I have also installed the Syslog-ng Cygwin package and configured it so that I receive basic ...
0
votes
1answer
52 views

Mount a SFTP remote filesystem that doesn't give shell access

I have a NAS that exposes its filesystem as SFTP, but it doesn't give any access to connect throught SSH as a normal user. I've tried to use sshfs to mount it from a remote webserver, but I receive ...
0
votes
0answers
59 views

Best practice for delivering SFTP key to client?

We are rolling out a solution that is going to leverage SFTP, we have hundreds of sites we want to deploy this to. The solution is basically a windows service that is using an installer, so it's a ...
0
votes
1answer
36 views

exclude a single user from chroot

I have a chroot setup on my CentOS server, (chroot with no shell access / strictly sftp). Just for reference, the folders are like so: home/sftp_users/%u (root:root 750) home/sftp_users/%u/input ...
0
votes
1answer
80 views

FTP Script Needs overview

I am trying to write a script that allows me to check a directory for files that i will sftp to another server. When the file is created it creates a .ready file that is supposed to signal a file is ...
1
vote
0answers
50 views

SFTP encountering Bad Message

I am uploading a file via sftp to a remote server. While on transfer, I got a message that says, "stalled". I killed the sftp running on my local. The problem is, I cannot delete the partially ...
-1
votes
2answers
103 views

Make hidden folders invisible sftp [closed]

My client needed sftp server for sharing files, so I created sftp server on a amazon ec2 ubuntu machine and added different users. Now their need is when user login to sftp server either via winscp ...
0
votes
0answers
85 views

SFTP Reverse-Proxy using iptables on custom port

I want to give SFTP access to anyone into to my Server (IP: ss.ss.ss.ss) passing through Proxy (reverse-Proxy? IP: pp.pp.pp.pp), so that IP ss.ss.ss.ss is never seen by whoever is connecting to the ...
0
votes
1answer
172 views

chroot with sftp on centos 6.5

I'm trying to get sftp working with proper chroot configuration on Centos 6.5 server. As for now I get: sftp user@000.000.000.000 User@000.000.000.000's password: Write failed: Broken pipe Couldn't ...
1
vote
2answers
85 views

Safety of sshpass and SFTP to dynamic host

I have a server with dedicated IP address A and a server with dynamic IP address B (routing via no-ip.org). A uploads a backup to B via sshpass: export SSHPASS=*** sshpass -e sftp **@** << ! ...
3
votes
1answer
368 views

does OPENSSH SFTP server uses umask or preserve client side permissions after put command (chrooted environment)?

I know this question has been already discussed, but by reading the posts I could not figure the answers, because some said "yes umask can work", and others say "openssh put command always preserve ...
0
votes
1answer
68 views

SSH keygen error (setting up a SFTP server)

I was following this tutorial, but a problem occurred and I couldn't find any help while googling it. Whenever I ran the command sudo ssh-keygen -e -f ~username/.ssh/authorized_keys | sudo tee ...
0
votes
1answer
50 views

Nginx redirection to url writen in requested file

I need to setup dynamic redirections. For example, a user open a link : http://www.example.com/2/3/4/ and see the page on the following address: http://www.example2.pl/something. I know about ...
1
vote
1answer
76 views

SFTP for users (own site folder)

I'm trying to config SFTP, so that my users can access their own site folder (with PSFTP/FileZilla). I use Vagrant, CentOS7, NGINX and .sh file. This is my bootstrap.sh, for creating one of my users. ...