Questions tagged [sftp]

SSH File Transfer Protocol

SSH File Transfer Protocol (also Secret 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

431 questions
147
votes
5 answers

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 and added him to a new group called sftponly. They…
Oli
  • 299,380
88
votes
4 answers

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 directories where they can't access upper level other…
29
votes
2 answers

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
  • 401
  • 1
  • 4
  • 5
26
votes
5 answers

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

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 the user's directories chown root:root…
25
votes
2 answers

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 charlesr. All files are part of the www-data…
Charles Roper
  • 305
  • 1
  • 3
  • 10
24
votes
6 answers

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 permissions of each file and folder under a specified…
21
votes
7 answers

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 but I'm not sure which is best? Unless there's a…
Craig
  • 1,346
21
votes
4 answers

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" only shows: FTP (with login) Public FTP Those are the only FTP options I can see…
oshirowanen
  • 4,047
18
votes
6 answers

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 admin@example.com:/ testfo remote host has disconnected The same error happens if I SSH into the system and repeat the…
18
votes
4 answers

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: dict file ftp ftps gopher http https imap imaps…
Hrish
  • 2,399
18
votes
4 answers

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 tab and type: sftp user@hostname:/path/to/file…
16
votes
2 answers

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 permissions to work. Setup sshd_config #Subsystem sftp…
onggie
  • 351
  • 1
  • 2
  • 6
14
votes
3 answers

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 restarted ssh to pick this up. When I log in with sftp…
hawkeye
  • 4,107
13
votes
1 answer

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 working fine on Ubuntu 16.04, but now it crashes…
ShahMoeen
  • 135
  • 1
  • 2
  • 9
13
votes
1 answer

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 all the contents of "vmalep (sftp)":…
vmalep
  • 659
1
2 3
28 29