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
186 votes
6 answers
1.3m views

What port does SFTP use?

Does SFTP use port 21 or port 22?
Daniel's user avatar
  • 3,801
145 votes
3 answers
216k views

Difference between OpenSSH 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 them? I mean the first one is using a lib from OpenSSH and the second one says "use the ...
Denny Crane's user avatar
  • 1,633
111 votes
3 answers
277k views

SFTP logging: is there a way?

I'm wondering if there is a way to log commands received by the server. It can be all SSH commands, as long as it includes information on commands related to file transfer. I'm having issues with an ...
Darryl Hein's user avatar
  • 1,722
110 votes
9 answers
139k views

Allow SFTP but disallow SSH?

I'm starting a very little hosting company for a few friends and little clients, nothing big. I want to give my "clients" the right to manage their files on the server. I hate FTP as it is not secure ...
Tommy B.'s user avatar
  • 1,423
82 votes
8 answers
150k views

Is it possible to use rsync over sftp (without an ssh shell)?

Rsync over ssh, works great every time. However, trying to rsync to a host which allows only sftp logins, but not ssh logins, provides the following error: rsync -av /source ssh user@remotehost:/...
Tom Feiner's user avatar
  • 17.7k
50 votes
3 answers
247k views

How to use openssh sftp command with a RSA/DSA key specified from the command line

The Openssh ssh and scp command provied an -i command line option to specify the path to the RSA/DSA key to be used for authentication. Looking at the sftp man pages I was not able to find a way to ...
Adi Roiban's user avatar
36 votes
2 answers
110k views

Is IIS SFTP natively supported by Windows?

Does Windows Server 2012 R2 have native SFTP support? I see a role FTP Server but it doesn't say whether this includes SFTP.
James20's user avatar
  • 361
32 votes
9 answers
200k views

How can I map a SFTP to a Drive, natively in Windows [closed]

Today I saw that Vista and Win7 (which I am using) have the option to map ftp natively, according to this article: http://cybernetnews.com/cybernotes-map-a-ftp-to-a-drive-in-windows/ But I need to ...
Igor B.'s user avatar
  • 385
31 votes
7 answers
292k views

How can you do a one liner with sftp to login with the password on the same line?

Is there an option to put the password on the line as well with sftp? linux~ $ sftp [email protected]:/DIRECTORY_TO_GO_TO/ Like this linux~ $ sftp [email protected]:/...
Daniel's user avatar
  • 3,801
29 votes
4 answers
40k 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 ...
sosaisapunk's user avatar
29 votes
1 answer
40k views

SFTP: file symlinks in a jailed (chrooted) directory

I'm trying to set up sftp so that a few trusted people can access/edit/create some files. I have jailed a user into their home directory (/home/name) but have run into a problem. I want for them to ...
dukevin's user avatar
  • 1,630
29 votes
7 answers
42k views

Speed up SFTP uploads on high latency network?

I'm trying to transfer a set of large files internationally using SFTP, but I am finding my international partner can't get upload speeds above ~50k despite very good connections on either side. We ...
nick_eu's user avatar
  • 391
28 votes
7 answers
71k views

Is there a GUI alternative to Putty SSH for transferring files?

Or any GUI SSH for Amazon ec2 Linux instance servers? I need to transfer files between two Linux virtual servers and currently I have PuTTY (which Amazon recommends). However I am new to the server/...
javasocute's user avatar
26 votes
4 answers
213k views

What is the difference between SFTP port 22 or port 990?

I know that explicit "negotiated" FTPS is preferred, because it still uses the standard port 21 with that method but in regards to "implicit" non-negotiated FTPS using a standard port of 990 vs. port ...
djangofan's user avatar
  • 4,190
25 votes
6 answers
92k views

How to put desired umask with SFTP?

I have a SFTP server (openssh/sftp-server) and I would like to set umask 002 for users using this service. I tried setting PAM (pam.d/common-session), and .profile for each user, but no luck. With ...
mat_jack1's user avatar
  • 399
24 votes
5 answers
26k views

Difference between scp and sftp

What is the difference between sftp and scp?
Daniel's user avatar
  • 3,801
23 votes
4 answers
4k views

Why does Amazon release private keys instead of public keys?

My brain is wrapped around the axle on public and private keys. When you create a cloud server (instance) on Amazon's EC2 service and then want to connect to it via SSH, Amazon requires you to ...
Seth's user avatar
  • 433
23 votes
6 answers
15k views

Use .bashrc without breaking sftp

My problem is that I need to set a few variables, and output a few lines every time I login to the ssh shell, and at the same time I have to be able to use sftp to tarnsfer files via Filezilla. Now, ...
Joel G Mathew's user avatar
23 votes
6 answers
22k views

What are some secure alternatives to FTP? [closed]

This Hacker News story is all about the downsides of FTP. The only reason I might set up FTP is that it's easy. I know about and use scp already, but sometimes I want to share files with someone ...
Nathan Long's user avatar
  • 1,545
21 votes
14 answers
104k views

Is there an open source tool to map SFTP connections as a Windows mapped drive? [closed]

I know there are many commercial products that accomplish this task, but I'm looking for something like SSHFS but for Windows systems, which is open source. WinSCP FAQ points to the the KeepUpTODate ...
Tom Feiner's user avatar
  • 17.7k
20 votes
2 answers
41k views

How do I set up an sftp user to login with a password to an EC2 ubuntu server?

I have an Ubuntu Server running on an EC2 instance. To login to that server I use a certificate file without any password. I've installed and configured vsftpd and created a user (let's call him "...
Doron's user avatar
  • 553
20 votes
1 answer
88k views

How to add user with SFTP/ FTP access to '/var/www/html/website_abc' folder on Amazon EC2 Centos?

Possible Duplicate: Linux directory permissions I'm working with some third-party developers and I would like to grant SFTP (or FTP) access to the root folder for a website they're working on i.e....
ericn's user avatar
  • 553
20 votes
6 answers
22k views

OpenSSH anything like 'internal-sftp' but for SCP?

I'm running Debian stable and I'm looking to establish the following environment for users in my 'sftponly' group: jailed can transfer with SFTP can transfer with SCP cannot login interactively with ...
brianjcohen's user avatar
18 votes
2 answers
50k views

Creating SFTP users and jailing to chroot on CentOS - user authentication error

I've got a CentOs release 6.4 with Digital Ocean and would like to successfully create SFTP users and jail them to the user's own chroot home directory but I fear I'm making a mess of this. I've tried ...
zigojacko's user avatar
  • 1,453
17 votes
2 answers
34k views

Symbolic link and filezilla over sftp

I'm pretty new to debian, and I'm trying to set up a server. I have created a user who can only access his folder /home/username (and its subdirectory). Now I want to use that user for the webserver ...
Doc's user avatar
  • 273
17 votes
4 answers
36k views

How can I create a user only for sftp?

I have added a user to the system via the adduser tool. Then, in /etc/passwd, I tried changing the /bin/bash to /sbin/nologin or to /dev/null, but neither of these worked. I would like the user not ...
Toni Rosa's user avatar
  • 291
17 votes
3 answers
16k views

Restricting the network access of Docker container

I'm in the process of creating an SFTP only Docker container, one that will be used by multiple people for the sole purpose of uploading and managing files in their own chrooted Environment. On paper,...
Daniel S's user avatar
  • 415
16 votes
5 answers
34k views

How does RSYNC do incremental Backups

How does rsync know which files are changed and which are not? Does it log its data anywhere in the file? Because I want to do incremental backups, but first it will transfer all files. So my main ...
user avatar
16 votes
3 answers
26k views

Set up sftp to use password but ssh not to use password

Is it possible to set up a user on ubuntu with openssh so that ssh does not use password authentication but sftp does? I assume that if I change /etc/ssh/ssh_config to have PasswordAuthentication yes ...
dar's user avatar
  • 509
16 votes
2 answers
32k views

How do I set default permissions for SFTP for an Ubuntu Server?

We have an Ubuntu 10.04 server. How can I set it so that new files created (or copied) over SFTP or SSH have g+rw and g+rwx permissions (where appropriate)? I'm also using setgid (chmod g+s) so that ...
wag2639's user avatar
  • 2,155
16 votes
3 answers
55k views

How to check diskspace on SFTP server

Recently I encountered a lack of diskspace problem on a SFTP server and I realised I have no idea how to check how much is left or even the total amount. Does anyone know how to do this through an ...
kjetilh's user avatar
  • 261
16 votes
4 answers
19k views

how to pipe data to sftp connection?

ftp supports the put "|..." "remote-file.name" command to pipe data to an ftp connection. Is there something similar available for sftp? In sftp i get the following error: sftp 'jmw@backupsrv:/...
JMW's user avatar
  • 1,463
15 votes
7 answers
35k views

How to disable SFTP for some users, but keep SSH enabled?

My project needs me to disable SFTP for some users, but those users still need to connect over SSH. Does anyone know how to implement this? I've seen suggestions to change the file at /etc/ssh/...
Shaobo Wang's user avatar
15 votes
1 answer
22k views

Does OpenSSH SFTP server use 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 ...
drkmkzs's user avatar
  • 311
14 votes
2 answers
58k views

SFTP fatal bad ownership or modes for chroot directory ubuntu 12.04

I just set up my SFTP server and it works fine when I use it from my first user account. I wanted to add a user which we will call 'magnarp'. At first I did like this in sshd_config: Subsystem sftp ...
Jonathan's user avatar
  • 143
14 votes
6 answers
17k views

Trying to setup chroot'd rsync

I'm trying to set up a backup server. I want to chroot each user (client) to its home directory, and only allow it to use sftp and rsync. I quickly discovered that I was not the only one trying to do ...
Mark R.'s user avatar
  • 141
14 votes
2 answers
12k views

Up-to-date alternatives of rssh or scponly [closed]

I need: An scp and sftp server With chroot-ed environment With non-login (ssh not allowed for scp/sftp users) Options and related issues I found: scponly No updates since more than 6 years Does ...
Julen Larrucea's user avatar
13 votes
9 answers
5k views

SSH to a computer that will then SSH to another computer [duplicate]

Possible Duplicate: How to configure a shortcut for an SSH connection through a SSH tunnel I have a situation where I would like to have SSH/SFTP access from my workstation to a server that is ...
uprise's user avatar
  • 147
13 votes
1 answer
15k views

Why use lxc instead of chroot?

One ubuntu server hosts 3 apps all on separate domains. Each app has its own developers. App developers belong to linux "sftp" group. chroot allows password sftp access for each app developer. /home/...
csi's user avatar
  • 1,565
13 votes
4 answers
18k views

How to get full control of umask/PAM/permissions?

// Updated Feb 8 - Outstanding issues in brief: How to umask directories differently from files? How to umask on Nautilus copy/paste? How to set umask for SSHFS? OUR SITUATION Several people from ...
user avatar
12 votes
1 answer
2k views

Why is FileZilla so much faster than PSFTP?

I'm using FileZilla 3.10.3 and PSFTP 0.63 (PuTTY). Can anyone help me figure out why the throughput I get is so drastically different between the two clients? It can't just be a shortcoming of the ...
Chris's user avatar
  • 231
12 votes
4 answers
6k views

Securing file system for secure SFTP server

This might not seem as a development question, but in essence it is. Let me explain how. Our main development focus is dynamic content pages. Some of our customers have asked us to allow them space ...
12 votes
1 answer
24k views

Can I configure VSFTPD to listen only to localhost?

I have a legacy app that needs FTP and cannot do SFTP. My solution is: put an FTP server in place using VSFTPD configure the firewall to accept port 21 connections only from localhost Set up an SSH ...
Will Martin's user avatar
  • 2,471
12 votes
2 answers
6k views

SFTP server: better to use SSH internal sftp subsystem or ProFTPD plugin?

I've been tasked to install a new SFTP server. Per-se, this is a very simple operation: simply using the internal-sftp role of the ubiquitous SSH service (with chrooting) is sufficient to have a ...
shodanshok's user avatar
11 votes
4 answers
10k views

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 ...
robcast's user avatar
  • 543
11 votes
4 answers
6k views

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 ...
Chopper3's user avatar
  • 102k
11 votes
4 answers
26k views

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? ...
Mike's user avatar
  • 374
11 votes
1 answer
7k views

SFTP - whitelisting requests for read-only access

I am trying to white-list certain SFTP requests so that a user can only open and read files and folders. Currently I have this, based on this thread: Subsystem sftp internal-sftp Match User my-read-...
silent's user avatar
  • 432
11 votes
8 answers
3k views

Options for an SFTP server on a Windows Machine [closed]

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 ...
Hythloth's user avatar
  • 235
11 votes
2 answers
74k views

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 ...
user avatar

1
2 3 4 5
21