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.
Questions tagged [sftp]
998 questions
11
votes
4 answers
Delete files older than X days on remote server with SCP/SFTP
Do anyone know some good way to delete files on remote server that are older than X days using just SCP/SFTP?
Sure I can write some script on perl etc but I feel it's overkill.
Any UNIX way?
Oneliner?
Separate utility?
Thanks
P.S.
The task is to…

Mike
- 374
- 1
- 3
- 13
11
votes
4 answers
Methodologies for performance-testing a WAN link
We have a pair of new diversely-routed 1Gbps Ethernet links between locations about 200 miles apart. The 'client' is a new reasonably-powerful machine (HP DL380 G6, dual E56xx Xeons, 48GB DDR3, R1 pair of 300GB 10krpm SAS disks, W2K8R2-x64) and the…

Chopper3
- 101,299
- 9
- 108
- 239
11
votes
8 answers
Options for an SFTP server on a Windows Machine
We have a client who wishes to send files to us via SFTP (citing that FTP is inherently insecure). We have a Windows Environment (Windows 2003 Server).
Currently, I'm reviewing copssh (OpenSSH for Windows, http://www.itefix.no/i2/copssh), and am…

Hythloth
- 235
- 2
- 7
10
votes
4 answers
Can connect via SSH - but not via SFTP? Exit status 127
Unfortunately I can not connect via sftp to my VPS:
This is my sshd_config:
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict…

MyFault
- 913
- 3
- 15
- 36
10
votes
3 answers
SFTP with chroot depending on public key of connecting user
I want to build a server (running Debian or FreeBSD) that receives backups from different clients via sshfs. Each client should be able to read and write its own backup data, but not the data of any of the other clients.
I had the following idea:…

Xykon42
- 103
- 1
- 6
10
votes
2 answers
How to load balance sftp instances on AWS
I like to know is it possible to load balance sftp servers in AWS. I have 2 servers, and each of my servers are using s3fs-fuse to mount the same S3 bucket onto a mount point. Both of my ec2 instances are able to read/write to their mount points,…

popopanda
- 201
- 3
- 4
10
votes
1 answer
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 upload has been interrupted.
For example, if I fire…

surj
- 243
- 4
- 15
10
votes
2 answers
SFTP: Move (rename) many files from one folder to another (not one by one)
I need to move all the files from current_path to current_path/DestinationFolder.
The version of SFTP I'm using is: SFTP protocol version 2
The available commands are:
sftp> help
Available commands:
cd path Change remote…
user124736
10
votes
4 answers
How to restrict everyone except a certain group in SSH?
I want to restrict all users on a server to only be able to use SFTP while the members of an admin group should have full SSH access.
I found that it is possible to restrict the members of a group by using Match Group and ForceCommand. But I found…

robcast
- 533
- 3
- 8
10
votes
4 answers
How do I setup SFTP for sites without giving shell access?
I'd like to use SFTP for all the sites on my cPanel CentOS server as we had an FTP password hacked before (not hard). However I don't want each sites SFTP account to have shell access (not even jailed shell). Is this possible and how? I'm quiet new…

firefusion
- 303
- 2
- 3
- 8
10
votes
5 answers
FTP v/s SFTP v/s FTPS
We're setting up a web server at our workspace. In conjunction, we're planning to install an FTP server, however I'm stuck at what protocol to employ -- FTP, SFTP or FTPS. I googled around, trying to see what protocol offers what, coming across…

susmits
- 203
- 1
- 2
- 5
9
votes
3 answers
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 directory, without having to specific any path or cd…

emmdee
- 2,187
- 12
- 36
- 60
9
votes
4 answers
Copying over SSH via PuTTY tools is slower than via WinSCP
Uploading from my Windows PC (1) to my Ubuntu machine (2) in another city using PuTTY tools is slow.
I tested this over OpenVPN tunnel and via port forwarding to (2).
It turns out that using rsync (Unison) via SSH (plink.exe) or pscp.exe is 70%…

BadTenMan
- 91
- 1
- 4
9
votes
3 answers
Is the SSH SFTP subsystem required on the managed nodes for Ansible to work?
When I run:
ansible all -a "/bin/echo hello" -u myuser
I get back:
mydomain.myhost.com | FAILED => failed to open a SFTP connection (Channel closed.)
The SFTP subsystem is disabled on the managed node I'm trying to connect to.
Is SFTP required on…

braveterry
- 897
- 2
- 7
- 13
9
votes
1 answer
SSH - cannot start sftp-server when trying to force internal sftp
i'm having trouble forcing users to only be able to use sftp when connecting over ssh.
I have the following lines in my /etc/ssh/sshd_config:
Subsystem sftp /usr/libexec/openssh/sftp-server
Match user USERNAME
ForceCommand internal-sftp
But when I…

Jai Redden
- 93
- 1
- 1
- 4