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.

998 questions
6
votes
2 answers

SFTP post upload hook

How would I run a script after a file has been successfully uploaded over (a chrooted) SFTP? I have this working on standard FTP connection using PureFTP http://linux.die.net/man/8/pure-uploadscript I'm running Debian Squeeze
Petah
  • 650
  • 2
  • 13
  • 24
6
votes
3 answers

Creating multiple SFTP users for one account

I'm in the process of migrating an aging shared-hosting system to more modern technologies. Right now, plain old insecure FTP is the only way for customers to access their files. I plan on replacing this with SFTP, but I need a way to create…
Tom Marthenal
  • 2,116
  • 7
  • 25
  • 37
6
votes
4 answers

Secure storage solution sought

I need an end-to-end multi-client/multi-supplier secure storage system, I can build it using various bits and pieces but it feels overcomplex - am I missing a trick? Specifically I need to offer multiple clients VPN-secured, secure file transfer…
Chopper3
  • 101,299
  • 9
  • 108
  • 239
6
votes
3 answers

Running two SSH servers

Is this above mentioned in title possible ? I want to run one SSH server for SFTP clients (on some other port.. for ex 2121 ), and want to run other SSH server for SSH clients which will be allowed to log in only with key. Anyone have Idea how to…
amarc
  • 173
  • 3
  • 8
6
votes
9 answers

ssh many users to one home

I want to allow some trusted users to scp files into my server (to an specific user), but I do not want to give these users a home, neither ssh login. I'm having problems to understand the correct settings of users/groups I have to create to allow…
filippo
  • 219
  • 3
  • 9
5
votes
1 answer

Unable to SFTP with password authentication from outside localhost

I'm having a strange problem with an SFTP server I've deployed on Kubernetes. I suspect the issue has to do with sshd_config so I figured I would ask here (been digging into the docs for a while, also just blindly trying things and nothing is…
Mike
  • 311
  • 2
  • 5
  • 15
5
votes
2 answers

What could cause an SFTP host key fingerprint mismatch?

A remote user has tried to connect to my SFTP/SSH server for the first time, using the "Transmit" client under Mac OS X, and has found that the host key fingerprint doesn't match the expected value. I have a screenshot of the displayed fingerprint…
oliver
  • 405
  • 1
  • 7
  • 18
5
votes
1 answer

Blacklisting and whitelisting SFTP requests

I see that the sftp-server and internal-sftp support blacklisted and whitelisted protocol requests, however, I don't understand what exactly can be passed to those arguments.
user178826
5
votes
6 answers

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 packet: Connection reset by peer I use this method…
Olaf
  • 99
  • 2
  • 3
  • 7
5
votes
1 answer

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 each particular system to be backed up. SFTP…
imlepid
  • 175
  • 1
  • 3
  • 10
5
votes
1 answer

SSH & SFTP: Should I assign one port to each user to facilitate bandwidth monitoring?

There is no easy way to track real-time per-user bandwidth usage for SSH and SFTP. I think assigning one port to each user may help, but I am wondering if my approach is workable. Use case Bob, with UID 1001, shall connect on port 31001. Alice,…
BertS
  • 151
  • 2
5
votes
2 answers

sftp gives permission denied only when chrooted?

I have configured sshd_conf on my centos box as below: Match group pilots ChrootDirectory /home/pilots ForceCommand internal-sftp X11Forwarding no AllowTcpForwarding no and the directory /home/pilots like this: # ls -al /home/pilots total…
ibrewster
  • 387
  • 1
  • 4
  • 16
5
votes
1 answer

Sftp download directory while excluding files with certain extension

So I know I can download a whole directory like this: sftp> get -R * How can I exclude all files with .ipa extension though? I want to download everything except .ipa or .ipa.* files from a directory.
Richard Knop
  • 1,149
  • 2
  • 20
  • 34
5
votes
2 answers

nginx clobbering sftp traffic during peak times - is tc the answer?

This is probably a continuation of my previous (unanswered) question because the underlying cause is probably the same. I have a Linux server with nginx and sshd running on it. It's on a shared 100mbit/s unmetered link. During "peak times"…
njahnke
  • 290
  • 3
  • 16
5
votes
2 answers

chrooting user causes "connection closed" message when using sftp

First off I am a linux newbie so please don't assume much knowledge. I am using CentOS 5.8 (final) and using OpenSSH version 5.8p1. I have made a user playwithbits and I am attempting to chroot them to the directory…
George Reith
  • 673
  • 2
  • 12
  • 22