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
5 votes
4 answers
16k views

Error in libcrypto connecting RHEL 9 server to Centos 6 via SFTP/SSH

I am trying to connect from a new RHEL9 server to an older Centos 6 server to SFTP files from the older server to the new one for an upgrade, but when connecting from 9 to 6 I get the following error: ...
Eric W's user avatar
  • 59
5 votes
2 answers
1k views

SFTP server dmz vs trusted

We're looking to ditch our existing solution and go with a simpler (much cheaper) SFTP server to allow file exchanges with clients. Our network consists of a Trusted and DMZ networks. The current ...
e36M3's user avatar
  • 153
5 votes
2 answers
11k views

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. ...
oliver's user avatar
  • 405
5 votes
2 answers
18k views

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/...
ibrewster's user avatar
  • 397
5 votes
2 answers
8k views

How to execute a script on sftp connection?

I run an ssh server on my machine and I restrict access to certain users to sftp only with internal-sftp & ChrootDirectory. What I need is a way to execute a script before chrooting users. ...
fokenrute's user avatar
  • 385
5 votes
1 answer
4k views

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.
user avatar
5 votes
1 answer
14k 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 ...
imlepid's user avatar
  • 175
5 votes
2 answers
3k views

sftp vs ftps, securing SSH and virtual users vsftpd

right now, i would like to encrypt data tranmission over ftp. I considered sftp and fpts. After reading the www, I concluded there is a general tendency to favor sftp over ftps (eg. http://www....
user1092608's user avatar
5 votes
3 answers
15k views

Where can I find logs for SFTP?

I'm trying to set up sftp-server but the client is getting an error, Connection closed by server with exitcode 1 /var/log/auth.log (below) doesn't help much, how can I find out what the error is? I'...
Jake's user avatar
  • 631
5 votes
1 answer
605 views

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 ...
BertS's user avatar
  • 151
5 votes
1 answer
9k views

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 ...
Richard Knop's user avatar
  • 1,169
5 votes
2 answers
1k views

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 ...
njahnke's user avatar
  • 290
5 votes
4 answers
41k views

WinSCP - SCP is working and SFTP is not working

I am trying to connect to our remote server using winSCP. It was working before. But from today I am not able to connect to the server using SFTP. If I changed the protocol to SCP, then I am able to ...
Steve's user avatar
  • 73
5 votes
1 answer
4k views

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 ...
Mike's user avatar
  • 321
5 votes
1 answer
4k views

How to restrict SSH /SFTP User to a sub folder of an apache website?

I'm currently setting up apache on a Linux server and need to create a new user which can log in and only edit files in a particular directory. I currently have my website set-up as /data/htdocs/...
MonkeyBlue's user avatar
4 votes
2 answers
1k views

Protect SFTP Passwords

A number of non-technical users currently manage secure data with FileZilla on Windows. The SFTP credentials are broadly shared in the organization as a result. I would like to centrally manage ...
Eric J.'s user avatar
  • 762
4 votes
6 answers
2k views

How do I scp to a user I don't have the password for?

Here is the situation. I have user access to a server and root access to the same server. I want to edit files for a user that I don't have password information for on the server. ssh'ing as root is ...
4 votes
2 answers
6k views

Replace scp with sftp

We have a few synchronization scripts for a client sending files, using scp, to a remote server administered by one of their providers. Recently they closed it, and the new one they provided doesn't ...
Ulrar's user avatar
  • 397
4 votes
4 answers
4k views

It is fair to jail my SFTP users to their home directory?

roots. I'm running an Ubuntu 9.04 (home) Server on my LAN. I currently use it to store little web apps, photos, some subversion repository and stuff like that. My (few) users are friends of mine and I ...
tunnuz's user avatar
  • 427
4 votes
1 answer
5k 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 ...
Firze's user avatar
  • 355
4 votes
2 answers
2k views

Using SFTP on AS400 Non Linux Based OS

I am trying to establish an SFTP connection on an AS400, which is on an OS that is not running a Linux based kernel. Any idea where I can start with this?
Sugitime's user avatar
  • 415
4 votes
2 answers
8k views

How to dynamically reload nginx config

I'm currently trying to setup Nginx for a domain with production, testing and development stages. Each comes with it's own partial Nginx config file with rewrites. The production and testing stages ...
Martijn's user avatar
  • 356
4 votes
5 answers
24k views

User can't SFTP after chroot

Ubuntu 10.04.4 LTS I'm trying to chroot the user 'sam'. According to all the articles out there this should work, but apparently I'm still doing something wrong. The user: sam:x:1005:1006::/home/...
Dauntless's user avatar
  • 189
4 votes
3 answers
3k views

Is it possible to GET or PUT two specific files at a time using SFTP without wildcard?

From a directory of dozens of files, is it possible to GET or PUT two files at once using SFTP? I do not want to use a wildcard because I don't necessarily know the names of all the files and don't ...
Andy Swift's user avatar
4 votes
4 answers
8k views

Can't get Passwordless (SSH provided) SFTP working

I have chrooted sftp setup as below. # 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 ...
Shoaibi's user avatar
  • 819
4 votes
2 answers
18k views

SFTP not working, but SSH is

I've had a server running CentOS for a few months now. A few days ago, I stopped being able to connect to it over SFTP. I've tried from multiple computers, OSes, clients, and internet connections. I ...
Dan's user avatar
  • 41
4 votes
3 answers
754 views

SFTP access akin to jailed shell

I have a question about creating a user with sort of jailed shell access (actually all is required of this user is an sftp access to one particular directory). Scenario is as follows - I have an ...
RandomWhiteTrash's user avatar
4 votes
2 answers
33k views

What protocols/ports to open for WinSCP

Which ports (and/or protocols) should be given priority for WinSCP to connect to a *nix machine? Details: I have a Windows client running WinSCP, which connects through a WRT54 router (running ...
pufferfish's user avatar
  • 2,890
4 votes
4 answers
5k views

Wordpress can't find ssh public and private key pair

My server configuration is as follows: CentOS 5.8 (final) running Nginx. I am using the SSH2 feature of Wordpress's plugin installer. I have installed lib2ssh and it is working (Wordpress is ...
George Reith's user avatar
4 votes
1 answer
10k views

EC2 FileZilla login OK but no write or delete access

I am a total Apache noob, and after much hair-pulling and gnashing of teeth finally got SFTP access to new EC2 instance in passive mode. Can login only as "ec2-user", or "root" with no password, but ...
Sean's user avatar
  • 508
4 votes
4 answers
9k views

Prevent rssh users from leaving their jail directories

I'm attempting to use rssh to jail users strictly to their /home/user/public_html dirctories. I got it to work where an account can SFTP into the system successfully on a test server, but once I login ...
Skittles's user avatar
  • 421
4 votes
3 answers
10k views

Is it possible to use custom script for authentication with PAM?

I want to enable users to use my rails application's credentials for login to sftp account. If I understand correctly I should somehow use PAM for this. But I didn't find any info on how to do this?
retro's user avatar
  • 143
4 votes
2 answers
7k views

SFTP fails on listing directories with large number of files

I try to connect to an sftp server (vsftpd) on Centos server through port 22. there is no problem in connection and initial directory listing; there is also no problem if I click on a directory with ...
Ahmad's user avatar
  • 227
4 votes
4 answers
16k views

There seems to be some 'lingering' SSH connections on my server. How do I fix it?

[root@server mike]# w 14:43:35 up 83 days, 1:25, 1 user, load average: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT mike pts/1 dsl-IP.w 14:43 0....
user avatar
4 votes
3 answers
6k views

Using proftpd how do I disable regular ftp but leave sftp running

We have a Debian Linux box with proftpd, we have both FTP and SFTP running, but we would like to disable regular FTP and just leave the SFTP running Is there some way to do this?
Tim's user avatar
  • 171
4 votes
1 answer
13k views

Set Initial Remote Working Directory in SFTP

I am running Amazon Linux AMI (Red Hat derivative), and am creating a new SFTP server using OpenSSH. I would like for the SFTP user to be restricted to a directory, and to be able to write to the ...
pgn674's user avatar
  • 61
4 votes
2 answers
2k views

A simple, step-by-step way of setting up of "jailed" SFTP-only accounts

I feel like I've gone through every SFTP/Chroot tutorial on the Internet, and not found what I am looking for (or, at least, none of them have produced the right results). Here's my specifics: I will ...
nucleon's user avatar
  • 263
4 votes
5 answers
54k views

SSH issue - Disconnecting: Received data for nonexistent channel 0

The log below is from SSHD server when SSH client is trying to connect. I'm sure that I have correct ssh key. I just compared two RHEL5 servers. As I red, this means that server closed the connection ...
laimison's user avatar
  • 619
4 votes
1 answer
12k views

Auto-mount SFTP share in fstab

I have a SFTP share on my server wich use standard authentication. On my client, I have edited the /etc/fstab file and added : [email protected]:/ /mnt/share fuse.sshfs port=22,defaults,_netdev 0 ...
Kamiz's user avatar
  • 43
4 votes
1 answer
16k views

A proper way to create a chrooted SSH on CentOS 7 [closed]

There are a lot of tutorials of how to create a chrooted SFTP, but I would like to use SSH, because it is much faster to simply wget, unzip, mysql and mysqldump than tossing around the FTP and ...
amq's user avatar
  • 743
4 votes
2 answers
2k views

Fair bandwidth repartition between multiple users

I have a debian server at home using my personal internet connection (50 mbps up). I've set up a simple SFTP service with OpenSSH to share big files (10 Gb+) with multiple users. Here's my problem : ...
nbz's user avatar
  • 368
4 votes
3 answers
3k views

replacing FTP with SFTP

The site I manage has already suffered one major and one minor breach so I'm looking closely at methods of improving security. We've been using FTP... Everybody seems to agree that FTP must be ...
hen3ry's user avatar
  • 81
4 votes
3 answers
3k views

set up a chrooted SFTP login with OpenSSH

How might I create an SFTP login for an untrusted user in which he can only access the files in his own home directory and not run any commands? The online tutorial OpenSSH SFTP chroot() with ...
Sophie Alpert's user avatar
4 votes
3 answers
15k views

SFTP files not showing upload date as last modification time

Some of the files we receive on our Redhat server are showing date different from upload date as the last modification time. For us the modification time is important as we classify files depending on ...
nitin's user avatar
  • 2,599
4 votes
2 answers
3k views

How to setup a public rsync and sftp server

I want to setup a public storage server which allows sftp and rsync (through ssh). I've got it working with a chroot jail and rssh. When the user connects to the server with sftp he can read all the ...
vdrmrt's user avatar
  • 101
4 votes
4 answers
23k views

sftp and public keys

I am trying to sftp into an a server hosted by someone else. To make sure this worked I did the standard sftp [email protected] i was promted with the password and that worked fine. I am setting ...
icelizard's user avatar
  • 732
4 votes
1 answer
3k views

Configure SFTP with OpenSSH and an AWS S3 Bucket mounted via S3FS on Amazon EC2

How do I allow multiple SFTP Users with S3FS and OpenSSH? Everything works, except SFTP Users don't have permission to write to their Chrooted Home Directory: remote open("/some_file"): Permission ...
T. Brian Jones's user avatar
4 votes
3 answers
2k views

Can't connect to SSH/SFTP - but only in certain programs

I'm using UltraEdit (Windows) to edit files on remote SFTP servers. For some reason I can no longer connect to one of those servers. Here's what was changed: The server was moved (and updated) from ...
Woodgnome's user avatar
  • 213
3 votes
4 answers
2k views

Disallow -p on sftp

We have a server that acts as a "dropbox" for (outside) users to upload data to us over sftp/ssh. We need to process these files (gpg decrypt, unzip, etc) as they come in. In the past, we simply ...
dmourati's user avatar
  • 25.9k
3 votes
2 answers
2k views

Bash script works from prompt but not from cron

When running a bash script from cron it fails with the following error /bin/sh: -c: line 0: unexpected EOF while looking for matching ``' /bin/sh: -c: line 1: syntax error: unexpected end of file ...
Rob's user avatar
  • 215

1 2
3
4 5
21