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.
Questions tagged [sftp]
998 questions
7
votes
1 answer
SFTP user can't edit or create files
Server: Ubuntu 12.04 LTS
I am using openSSH and have created an SFTP user called bob who belongs to group sftponly. I have chrooted bob to his home directory which is /usr/share/nginx/www/bob/.
bob is able to SFTP onto the server and view is home…

George Reith
- 673
- 2
- 12
- 22
7
votes
2 answers
SSH/SFTP connections fails silently on OSX 10.8.2 - ssh-agent issue
I'm trying to login to a remote machine with SSH or SFTP.
when I try ssh u-indgo@ssh1.eu1.frbit.com the CLI just won't respond. I get an empty new line, in which I can type characters, but nothing more.
when I try to connect with SFTP using the…

Matanya
- 21
- 1
- 9
7
votes
2 answers
write permission denied via filezilla sftp to /var/www/html
Ok, I'm almost completely new to linux and apache configuration.
My problem is that I've got apache displaying the default page, but when I try and access it via sFTP it tells me that I have write permission denied when trying to write to…

Poodimizer
- 185
- 1
- 2
- 6
7
votes
2 answers
sftp with anonymous user
How I can set a anonymous sftp user ?
I generate the ssh keys pair, set /usr/lib/sftp-server as shell in /etc/password and share the private key (id_rsa) and with this command the users get access
sftp -oIdentityFile=id_rsa public_sftp@host
is a…

JuanPablo
- 913
- 3
- 10
- 21
7
votes
5 answers
Detecting upload success/failure in a scripted command-line SFTP session?
I am writing a BASH shell script to upload all the files in a directory to a remote server and then delete them. It'll run every few hours via a CRON job.
My complete script is below. The basic problem is that the part that's supposed to figure…

Will Martin
- 2,431
- 5
- 19
- 18
7
votes
3 answers
How to specify file permission when putting a file using OpenSSH sftp command
I am using various SFTP clients for uploading files to an SFTP server and I have a problem with default permission used when putting files.
When requesting to put a file, SFTP client like WinSCP or Filezilla will send the SSH_OPEN command without…

Adi Roiban
- 823
- 3
- 8
- 12
7
votes
5 answers
How can i check if a file is well transfered when using SFTP?
I have an issue on my server: when folder quota is reached and someone tries to upload a file, he doesn't get any error code and he deposits a 0 bytes file. So I want to know if there's any solution (integrity check for example) to check if the…

achraf
- 101
- 1
- 2
- 3
6
votes
1 answer
sftp connection closed after correct password
I'm running an sftp server on port 10022 using openssh-server on debian, hosted on EC2/AWS. I have configured password-based authentication for a single user, but the server connection is closed immediately after I submit the correct password. Here…

codebox
- 177
- 1
- 2
- 8
6
votes
1 answer
sftp How to get stat attributes?
Is it possible to do stat via sftp cli tool? For example Python's SFTP client has this feature, but I didn't find it in sftp cli tool. I need to get SFTP attributes to work with in script.

user402763
- 61
- 1
- 2
6
votes
1 answer
fatal: bad ownership or modes for chroot directory component "/" in SFTP
I've been trying to configure sftp in a debian server.sshd_config:
Subsystem sftp internal-sftp
UsePAM no
Match User sftpUser
ChrootDirectory /users/sftp/sftpUser
ForceCommand internal-sftp
AllowTcpForwarding no
X11Forwarding no
Directories:
…

Luis M. Valenzuela
- 107
- 1
- 1
- 9
6
votes
1 answer
sftp server chroot initial directory
I have configured an sftp server with chroot and it works fine, the only thing that is bothering me is the initial landing directory, since the sftp user does not have write permissions in the landing folder he has to go to a folder named after his…

Carles Estevadeordal
- 163
- 1
- 5
6
votes
3 answers
Forward SFTP user to chroot subdirectory after authentication
I've set up a SFTP server using OpenSSH, everything works fine and the users I created can connect.
After authentication, the users find themselves directly inside /chroot, a directory they are not allowed to write into. So I've put a /subdirectory…

zerodot
- 221
- 2
- 6
6
votes
1 answer
How to open sftp connection and execute sftp command in the same shell command
Is there any possibility for opening sftp connection to remote server and execute sftp command in same line from shell.
Something like this:
sftp user@example.com && put /tmp/test.txt /tmp/
where put is sftp command.
My idea is to put file from…

ibedelovski
- 513
- 4
- 9
- 20
6
votes
1 answer
Different "RequiredAuthentications2" for sshd and sftp subsystem
we're currently using a 2factor authentication on our SSH servers, so we have "RequiredAuthentications2 publickey,keyboard-interactive" in our sshd_config (publickey for the key, keyboard-interactive is for the 2factor which is handled via PAM)
To…

derfloh
- 61
- 2
6
votes
1 answer
Can't get rsync over sftp to work
I'm trying to set up a backup system from an Ubuntu server to a Synology NAS (DS413j) using rsync and sftp.
I have created a user for this that we can call ubuntu-backup.
I have a directory in ubuntu-backup home directory called www where the backup…

Patrik
- 163
- 1
- 6