Skip to main content

Questions tagged [sftp]

SSH File Transfer Protocol

Filter by
Sorted by
Tagged with
146 votes
5 answers
334k views

How can I chroot sftp-only SSH users into their homes?

I want to give a client access to my server, but I want to limit those users to their home directories. I will bind-mount in any files I want them to be able to see. I've created a user called bob ...
Oli's user avatar
  • 295k
87 votes
4 answers
467k views

How to setup a restricted SFTP server on Ubuntu?

I would like to know how to set up root, sudo, sftp-only user accounts which won't be required public key authentication at log in. I would also like to know how to set up sftp-only users' home ...
Yuya Kobayashi's user avatar
28 votes
2 answers
168k views

sftp - how to connect to non-default port?

I want to connect to server via sftp using specific IP and a specific (non-default) PORT . How can I choose non-default port when connecting using sftp?
Meet Vaishnani's user avatar
25 votes
5 answers
141k views

How to set up a SFTP server with users chrooted in their home directories? [duplicate]

I have been trying to set up a SFTP server with multiple users chrooting into their home directories. I followed the advice on this guide (Archive.org link) and then executed the following commands on ...
Nitin Venkatesh's user avatar
25 votes
2 answers
79k views

SFTP permission denied on files owned by www-data

I have a pretty standard server set up running Apache and PHP. An app I am running creates files and these are owned by the Apache user www-data. Files that I upload via SFTP are owned by my own user ...
Charles Roper's user avatar
24 votes
6 answers
191k views

Changing permissions for /var/www/html

I've studied this topic https://help.ubuntu.com/community/FilePermissions for a while and can't get it work for some reason. Particularly, these lines interest me the most: To change all the ...
Mark Alexa's user avatar
21 votes
4 answers
86k views

Use "Connect to Server" to connect via SFTP to access a folder in a remote server

How do I connect to my remote sftp account using ubuntu's "Connect to Server" option? When I have the "Connect to Server" dialog box on my screen, the "Service type" ...
oshirowanen's user avatar
  • 3,987
21 votes
7 answers
21k views

Should I symlink my /var/www directory to my home?

I have just installed Ubuntu Server 10.04 with a LAMP setup. I want to host a website there but I'm not sure which is the best way to get/edit my files on the server. Googling provides many options ...
Craig's user avatar
  • 1,316
18 votes
4 answers
22k views

Is it possible to get tab completion with sftp?

Sometimes I need to quickly copy a file from my remote server to my local machine. Here's my current workflow: I SSH into my remote server, find the file and copy its full path. I open new terminal ...
Olivier Lalonde's user avatar
17 votes
6 answers
46k views

sshfs giving "remote host has disconnected"

I am trying to mount an sftp connection into a folder using sshfs with the following command which throws an error. ~$ sshfs [email protected]:/ testfo remote host has disconnected The same error ...
Slava Knyazev's user avatar
17 votes
4 answers
36k views

How to enable SFTP Support in cURL?

I have installed curl-7.27.0 and it is working fine. However, when I run curl -V, I get: curl 7.21.6 (i686-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3 Protocols: ...
Hrish's user avatar
  • 2,349
16 votes
2 answers
67k views

Changing write permissions for jailed SFTP denies login

I have scouted over many websites and forums on how to setup an SFTP user that is jailed to a certain directory using CHROOT. Here are the steps I have followed but I can't seem to get write ...
onggie's user avatar
  • 341
14 votes
3 answers
92k views

Granting a sftp user access to a /var/www directory

I've created a user and made his home directory /var/www/mysite/ftpdir I've also added a Match user entry for this user in sshd_config with a ChrootDirectory that points to /var/www/mysite I've ...
hawkeye's user avatar
  • 3,927
14 votes
1 answer
13k views

Filezilla or WinSCP alternative for Ubuntu

On Windows I'm using FileZilla to upload/download files on my WordPress website, via sftp, while using ssh key. Now Linux is my primary operating system. For the last month FileZilla client was ...
ShahMoeen's user avatar
  • 145
13 votes
1 answer
25k views

How to use sftp within Nautilus?

Since I have migrated to Ubuntu 14.04, I am unable to access sftp through Nautilus. If I enter sftp://user@sshserver in Nautilus (Ctrl+L), I get the following error message: Sorry, could not display ...
vmalep's user avatar
  • 659
12 votes
2 answers
66k views

How to connect to SFTP in FileZilla using a private key

I've downloaded FileZilla on Ubuntu 14.04 (Trusty Tahr) using the package manager (apt-get) and I'm currently setting up a site to transfer files for on the remote server I'm using. For the ...
loremIpsum1771's user avatar
11 votes
1 answer
12k views

Nautilus' remote folder default mount point

I connect a remote folder in Nautilus (file info says that it is done via sftp), and within it the folder becomes fully browseable. But I can't access it from the other applications: I couldn't find ...
Igor Shalyminov's user avatar
10 votes
4 answers
21k views

How to send SFTP file download to background?

Is it possible to: execute sftp command on remote machine and download a file (ssh user@machine, sftp user2@server, get file) then, send download to background, so I can turn my local computer off
Praweł's user avatar
  • 6,510
10 votes
1 answer
37k views

Limit SFTP user access to specified directory

I have a Ubuntu 14.04 server installed with open ssh. I'd like to configure sftp for customers to be able to download files only. In other words, I put files in a directory that they are jailed to. ...
scottsmail's user avatar
10 votes
3 answers
18k views

SFTP GUI +SSH Key

Is there any application that allows connecting via SFTP using private keys rather than password? I know that I can do that via Nautilus, but I would prefer some standalone application.
Praweł's user avatar
  • 6,510
9 votes
1 answer
11k views

Why is rsync 2x faster than sftp?

I'm transferring huge files, over a network to a destination server, totaling ~ 67 GB with individual zip files of size ~ 7GB. I tried copying to the destination using both sftp and rsync. rsync ...
kmario23's user avatar
  • 1,019
8 votes
4 answers
17k views

Too many authentication failures for root in filezilla

So I finally made the move in my office to Ubuntu! Overall, I am very happy with the move from Mac and Windows. Most issues I was able to fix (graphic card issues) but this one issue I seem to fix but ...
Jeremy's user avatar
  • 267
8 votes
3 answers
39k views

How do I set up SFTP file access logging for OpenSSH?

I have an SFTP setup using the built-in sftp-subsystem of OpenSSH with chrooted users. In the old days when I used to use FTP, I was able to see what files were accessed by users in the logs. How do ...
kraxor's user avatar
  • 5,547
8 votes
1 answer
51k views

How to create a SFTP (SSH) User with extremely limited permissions

i run a server on Ubuntu Server 14.04. I want to create a user that is able to connect via sftp, download 1 file and terminate the connection. The user should not be able to do ANYTHING else. Browsing ...
BlueStarry's user avatar
8 votes
1 answer
53k views

Connection closed when trying to connect to sftp server. Match group issue?

I'm trying to connect to an Ubuntu server 14.04 LTS with the following command: sftp -P xx user@host (the ssh-server is configured to listen to a different port). The user I'm trying to login with, is ...
Parsijn's user avatar
  • 83
7 votes
1 answer
15k views

Connect SFTP in Dolphin with keyfile and passphrase and nonstandard port

I am not finding an option to enter the keyfile when adding a network folder in Dolphin. The "Add Network Folder" type is SSH. Dolphin allows me to enter a username, a server IP address, a port, the ...
MountainX's user avatar
  • 5,849
7 votes
2 answers
14k views

Ubuntu 14.04 Nautilus "connect to server..." window changed

I'm having trouble because I want to connect to my EC2 server through my new installation of Ubuntu 14.04 and I just can't. I already downloaded the .pem key and added my server to the ~/.ssh/config ...
Alfredo Rius's user avatar
7 votes
3 answers
14k views

sftp get -r without overwriting

I often connect to a database by sftp protocol, and I get the data by doing get -r is there any option to skip all existing file on my computer ? I tried get -r --overwrite but it does'nt work. (I ...
p.deman's user avatar
  • 255
7 votes
1 answer
3k views

Get root privileges for nautilus on sftp connection

I use "Connect to server" option to sftp to remote computers, as a user which has sudoer privileges. But then, I cannot get root privileges to modify system files. How can I do this? (I know i can ...
apoorv020's user avatar
  • 1,014
7 votes
1 answer
56k views

How to configure SFTP to login in the "/" directory?

I want to login as root and make the / as the default directory in SFTP. Newbie help needed
Nabil's user avatar
  • 71
7 votes
1 answer
9k views

How to build the latest curl from sources to allow downloading files via sftp?

I need to download files from a sftp server. Unfortunately, the curl version in Ubuntu 7.58.0-2ubuntu3.6 amd64 does not support sftp. I get the error message Protocol "sftp" not supported or ...
k0pernikus's user avatar
  • 6,125
7 votes
0 answers
8k views

cURL sftp not supported or disabled in libcurl [duplicate]

I am trying to use sftp with cURL to upload files to my webserver, if I run curl -V on my server I get this output curl 7.47.0 (i686-pc-linux-gnu) libcurl/7.47.0 zlib/1.2.8 libssh2/1.8.0 Protocols: ...
Harry Cameron's user avatar
6 votes
3 answers
2k views

Cannot SSH/SFTP to remote server without using another remote server

I can access a server A with SSH, and from there I can access server B, but I can't access B directly. Is it possible to open a Nautilus folder in server B by clicking in Places → Connect to Server?
Ian Liu Rodrigues's user avatar
6 votes
1 answer
5k views

Nautilus sftp via command line

I regularly connect to a server via ssh. Lately I've started copying files to and from it, and I find scp very annoying, mainly because bash cannot auto complete over ssh. I find the connect to ...
yohbs's user avatar
  • 705
6 votes
1 answer
15k views

How to create link that can be followed in SFTP?

SFTP jails the user into his home dir. Let's say I have two users. What if I'd like to share files and folders between them both?! Is there a way? Is it possible through links? I tried out with "...
Hristo's user avatar
  • 63
6 votes
1 answer
3k views

Add an SSH option to an sftp URL in nautilus

I'm connecting to a remote server in Nautilus using an URL of the form sftp://server.com. However, due to a thing with that server I need to add an option when connecting via SSH, otherwise the login ...
Bart van Heukelom's user avatar
6 votes
1 answer
10k views

Nautilus - Connect to Server option not visible [duplicate]

I recently installed Ubuntu 18.04. I read that the file manager Nautilus can be used to transfer files to and from remote servers. I also read that one can do this by selecting "Connect to Server" ...
machump's user avatar
  • 163
6 votes
2 answers
14k views

Can Nautilus setup SSHFS like/instead of SFTP?

I have Nautilus set up to mount a remote filesystem using SFTP. That works fine, so far, but SFTP seems to have some issues I find unhelpful: When I overwrite an existing text file, the group read ...
ams's user avatar
  • 3,029
6 votes
1 answer
8k views

Prevent SFTP from disconnecting

I am using the latest version of FileZilla (3.9.0.6) to connect to a fully up-to-date Ubuntu Server 14.10 with OpenSSH. When I SSH into the server using PuTTY, the connection never times out. I stay ...
vaindil's user avatar
  • 938
5 votes
2 answers
13k views

Attempt of apt-get install sftp fails with : E: Package 'sftp' has no installation candidate

magnus@mt-dell:~$ sudo apt-get install sftp [sudo] password for magnus: Reading package lists... Done Building dependency tree Reading state information... Done Package sftp is not available, ...
Magnus Teekivi's user avatar
5 votes
3 answers
11k views

Command last does not show logins through sFTP, is there something similar or any logs?

When I run last I get something like: user pts/0 user.domain.provider Sat Feb 25 11:44 still logged in user pts/0 user.domain.provider Thu Feb 23 16:38 - 16:39 (00:00) ... ...
lumbric's user avatar
  • 4,014
5 votes
3 answers
4k views

Is it possible to give sftp access to a user without giving him ssh access?

Is it possible to give sftp access to a user without giving him ssh access?
Olivier Lalonde's user avatar
5 votes
1 answer
3k views

Using a VPS service, can I prevent my data from being accessible by the VPS host?

Using a provider like Digital Ocean, if I store private/sensitive information on the VPS, is there a way to protect that information (preventing the VPS host for gaining access) while still retaining ...
David Alsh's user avatar
5 votes
1 answer
49k views

Using "put" command in sftp gives "no such file or directory"

I've reviewed this topic: How to fix No Such File Or Directory Error message while using sftp Command and some others, however nothing helped me solve this. Simply put I'm trying to move a file named ...
Mark Alexa's user avatar
5 votes
5 answers
14k views

SFTP timeout but SSH works fine

I am unable to sftp (or scp) into my server setup but am able to ssh just fine. I am using key authentication for both. When I sftp it just hangs forever and doesn't give me the sftp prompt. Here is ...
Jared Meyering's user avatar
5 votes
3 answers
9k views

Nautilus: "Cannot load supported server method list. Please check your gvfs installation"

I was trying to connect to a sftp server using Nautilus... but I could not as it showed this error:
Amith KK's user avatar
  • 13.4k
5 votes
1 answer
27k views

How do I allow SFTP with a password BUT not SSH?

I have SSH keys set up for every user with which they SSH into the proper machines. The problem is that many FTP programs dont support SSH login. Therefore, only for FTP do I want to allow users to ...
chacham15's user avatar
  • 317
5 votes
1 answer
1k views

Git and SFTP - How to separate them?

We have a local development server with Ubuntu 14.04. We use SFTP with vsftp, and Git. Some coworkers have access over SFTP (without ssh access, /usr/bin/nologin and sftponly group), and other ...
user avatar
4 votes
2 answers
20k views

How can I access my Ubuntu server using FileZilla as root user?

How can I connect to my Ubuntu server v18 with FileZilla as the root user? Filezilla shows connection errors: Ubuntu Server network settings:
Ali Reza Erfani's user avatar
4 votes
2 answers
8k views

16.04: Filezilla crashes when performing any remote action

Having some problems with Filezilla crashing/closing itself unexpectedly whenever I try to perform an action on a (sftp) remote server, whether that's changing directories, uploading, or downloading a ...
Boxbot's user avatar
  • 104

1
2 3 4 5
9