The SSH File Transfer Protocol (SFTP) provides secure file transfer functions using the same infrastructure used by the Secure Shell protocol. It can be seen as a secure replacement for FTP.

learn more… | top users | synonyms

0
votes
2answers
799 views

Script SFTP with password - HP-UX

I would like create a script in HP-UX to send in sftp with password. I have this command sftp -o PasswordAuthentication= but if I answer yes or no after, I have this issue "Host key verification ...
2
votes
1answer
197 views

SSH Connection into LAN without port forwarding?

I'm living inside a study union for the next few month. the organisation has its own network and gateways where the students are connected to the internet. problem: I don't have access to the routers ...
2
votes
2answers
4k views

How to move files in sftp server?

How can I move a file in sftp server on a different directory? I connect to this server using sftp and then try to move a file using mv myfile.csv /my/dir/myfile.csv but this generates an error. ...
3
votes
2answers
2k views

recursive delete with sftp?

I have a host that I can only access with sftp, scp, and rsync-- no ssh. I have a large tree of directories that I want to delete, but my sftp client apparently does not support recursive rms or ...
0
votes
0answers
135 views

Jailkit not working properly when connecting remotely from iPad via SFTP app

I used jailkit to add users and restrict them to a jail directory. It works for Linux and PC clients connecting to the ssh server but when I connect with iPad it gives them access to everything. I ...
2
votes
2answers
8k views

Restrict FTP user to a directory

Sorry if this is an obvious question, but I don't have a lot of knowledge about this sort of thing, and I've googled for hours, nothing worked. So on a Ubuntu 11.04 server, I want to restrict a user ...
2
votes
2answers
2k views

What is the meaning of “stat” in the SFTP error message “Couldn't stat remote file”

I've seen this when using SFTP; for example when I try to remove a file that isn't on the remote server: sftp> RM coa.dat.gz Couldn't stat remote file: No such file or directory Removing ...
1
vote
1answer
581 views

SFTP over reverse SSH tunnel?

I want to SFTP to a remote computer that is behind NAT. I can't modify the NAT router, so I have set up a reverse SSH tunnel using a middleman server. Here's what my SSH tunnel looks like: ...
3
votes
1answer
563 views

Public-Key Authentication w/ Jailed SFTP User

I'm trying to set up a jailed SFTP user account on my own local machine to test an application with libcurl. I used this guide to help me figure out how to set up a jailed SFTP user: ...
3
votes
0answers
350 views

sshfs breaks symlinks from SFTP server

Does anyone know how to mount a remote SFTP path via SSHFS so that you can work with symlinks? When I do this, all the symlinks I create point to the wrong files (not the ones I linked to.) All the ...
-1
votes
3answers
229 views

Is there a way to 'authorize' a command typed in by a user?

is there a way we can authorize a command typed by a user before it takes effect? For example, when a user types cp file1 file2, the command will not be executed and a root / root-equivalent user ...
0
votes
2answers
419 views

While setting up SFTP between *nix servers, is the intial handshake optional?

I setup SFTP between *nix servers as follows: Generate the Public key on the sending server by running the below command: [user1@server1] $ /usr/local/bin/ssh-keygen -t rsa -b 1024 Then copy ...
1
vote
1answer
1k views

Set up chroot for LDAP users in RHEL6

I have been working on this for 2 days now and am about to give up so someone please help. I have a Red Hat 6 server joined to my active directory domain. Logins work just fine under normal ...
0
votes
0answers
140 views

Creating a Safe Web Server

Web server hosts multiple websites. Multiple users update each website. User home directory /home/user1 /home/user2 Web directory /var/www/site1 /var/www/site2 Each user uses SFTP to upload ...
0
votes
2answers
5k views

How to configure SFTP so it behaves like ftp chrooting user to his home directory?

I have installed vsftpd utility on Fedora 10 to restrict users to their (chroot) home directories. It works fine when I use ftp prompt to connect. However it does not work when i connect using sftp. ...
1
vote
0answers
174 views

Unable to transfer files via SFTP when using a normal user account

I'm unable to transfer files via WINSCP>sftp to a GNU/Linux server. When transferring a file using root account, there's no problem. However, when I transfer using another account, the file being ...
2
votes
1answer
3k views

How can I make a shared directory accessible by SFTP?

I have set up an sftp account in /home/sam, created a group sftp, and added the user sam in it. i gave chown sam:sftp /home/sam for the user to perform operations in that directory. Now I have ...
0
votes
1answer
140 views

I'm only allowing pubkey auth via ssh. How can I still log in with password?

vi /etc/ssh/sshd_config egrep -i 'Pubkey|Password|Listen' /etc/ssh/sshd_config | grep -v '^#' ListenAddress 0.0.0.0 PermitRootLogin without-password PubkeyAuthentication yes ...
1
vote
1answer
4k views

sftp gives an error: “Received message too long” and what is the reason?

I was able to do sftp yesterday to a RHEL 5.4 box (RedHat) and today I can't. The message is "Received message too long 778199411", and after some investigation, it was due to my RHEL box's .bashrc ...
2
votes
0answers
298 views

Making ChrootDirectory directory writable by SFTP user

If a user logs into a machine via SFTP, one can make use of ChrootDirectory keyword to give an illusion that user is in a root directory. But that directory is only writable by root user. I would love ...
3
votes
1answer
9k views

sftp a file using shell script

I have read through several threads (which have been helpful) and I'm still getting an error when trying to sftp a file (client wants it to be sftp'ed) Here is the script: #!/bin/bash ...
1
vote
1answer
5k views

Automated SFTP upload with curl

I want a file to be uploaded daily to remote server using automated ftp command. Can someone please help me on this below command to check whether it's right or wrong? curl -Tu username:password ...
2
votes
1answer
1k views

Script to get file from SFTP and run it

We have 5 servers running our code: A, B , C, D and E. From a local machine, we sftp the file to A. Then ssh id@A su - applicationname sftp id@A get <file> bye tar -xzf <file> logout ...
5
votes
4answers
9k views

How to send multiple commands to sftp using one line

The following command sends one command to sftp using one line: sftp -o PasswordAuthentication=no user@host" <<<"lcd /home" How to send multiple lines to sftp using one line. Is there a ...
2
votes
2answers
1k views

Can't copy/move between filesystems with SFTP

Are there any limitations on SFTP that prevents a user from copying between filesystems? I have a SLES with SFTP, and users can't copy/move files between filesystems, even when the target is chmod ...
2
votes
1answer
424 views

Specific directory permission for one user using sftp

My web server structure looks like this: /Home/User/Public_Html/Website_one /Website_two /Website_three/Directory_one ...
1
vote
4answers
3k views

I uninstalled vsftpd, but I can still connect with sftp

I installed vsftpd and was in the process of configuring it. When I sent the vsftpd server stop command: sudo service vsftpd stop I received: stop: Unknown instance So I went ahead and ...
1
vote
2answers
3k views

Limit bandwidth SFTP user

Is there any possibility to limit the bandwidth of an SFTP user? My server has an upload of ~500kb/s and I don't want to 'spend' it all on one user
1
vote
1answer
982 views

Safety of SMB versus SFTP

I have a server with OpenSSH enabled. I use it to make distant backups. I mainly use rsync over SSH and SFTP. I understood that these protocols are quite safe. I am interested in enabling Samba share ...
2
votes
1answer
832 views

SFTP: give user access to folder outside home

I have a machine running Ubuntu 12.04 LTS with OpenSSH server installed. I have created a user with a jailed home account. When I log in with the user's account, I can only access his home (duh). ...
4
votes
1answer
1k views

Does the SFTP server accept passwords at all?

I'm trying to connect to a sftp server via sftp USERNAME@SERVERNAME. Whatever I do, I get "Permission denied (publickey)." Googling doesn't help as everybody recommends switching to key-based ...
1
vote
3answers
927 views

Can directory listing be disabled for sftp?

A question arose in a group discussion: Can directory listing be disabled for sftp while still retaining read and write access? We are using openssh on ubuntu server 11.02 if that helps.
2
votes
2answers
2k views

SFTP and sudo using Windows client?

I want to download files from a linux system using a windows client. While there are many SFTP clients I am having the problem, that I need to access files where I need to be root. On the linux system ...
2
votes
0answers
572 views

kio sftp does not work but fish works

If I try to initiate an sftp connection from dolphin (or konquerer), it tells me the password is wrong and asks me for the correct password. Incorrect username or password Do you want to retry? ...
1
vote
1answer
649 views

Start SSH session in some other directory than their home directory and lock them there

I've set up a SSH server which I've let some friends log into, both via SSH and FileZilla. I put a symbolic link to two hard drives in their home directories so that they could access some files. This ...
1
vote
1answer
87 views

Can selinux log an application owner name?

So I've set up selinux to log all file access operations in a certain directory. Here's some sample log output when doing an ls from sftp: type=AVC msg=audit(1338465611.221:356): avc: granted { ...
4
votes
1answer
20k views

How do I use sftp to get a directory and all its contents? [duplicate]

When I try to use the command get from sftp, I get the error saying that it is not a normal file. Is there a way around this?
1
vote
2answers
571 views

Suggestions for a Linux distribution for a dedicated SFTP server

I have a desktop which has more than 16GB of memory that I want to dedicate as an SFTP server. Many people have suggested that I install Linux, so I have decided to go with Linux. I am puzzled and ...
2
votes
1answer
436 views

Setting up a user for sftp acces into a sub directory of another users home directory

An interesting problem. The broader goal is to setup a directory that one of our clients can sftp into (via ssh keys, not user/pass combination) and upload files. This directory will need to be ...
4
votes
2answers
4k views

Disable direct login for normal users (like oracle) in linux but allow scp and sftp?

Is it possible to disable direct login for normal users (like oracle) in linux but allow scp and sftp for that use?
2
votes
2answers
2k views

How do I transfer multiple files with a common suffix and prefix using an offset?

I have thousands of files whose names are of the form: sequence_1_0001.hmf sequence_1_0002.hmf sequence_1_0003.hmf ... sequence_1_0001.jpg sequence_1_0002.jpg sequence_1_0003.jpg ... ...
5
votes
1answer
368 views

Why is it possible to leave CHROOT with this sftp config?

I'm trying to create the user lenny, that has read and write permissions in the folder /home/lenny/ and has no shell but only access via SFTP. I'm doing the following: useradd lenny mkdir /home/lenny ...
3
votes
1answer
2k views

Why does sftp hide the log from stdout?

I have a script a.sh, which has an sftp command: echo "Starting to sftp..." sftp xxx@xxx.xxx.xxx.xx << END_SCRIPT ls mput *.csv.gz bye END_SCRIPT echo "Sftp successfully." If I run it ...
1
vote
4answers
1k views

SFTP server on RHEL6 disconnects on ls

I've followed the steps outlined here to create a chrooted sftp environment. Everything works great EXCEPT for the command ls. When I do an ls, with any of the flags, I get disconnected ...
6
votes
1answer
2k views

how to set the sftp -s subsystem option in a configuration file

The sftp command supports a subsystem option (-s) which allows the remote user to select the remote sftp-server executable, and optionally upgrade to sudo in the process like so; sftp -s ...
0
votes
1answer
1k views

qemu: how to access host via sftp

I started a guest vm with qemu-system-x86_64 -net user -net nic -redir tcp:10022::22 -m 500 -hda op.img From the guest, I'm able to ssh the host machine, but can't connect via sftp The command I ...
2
votes
2answers
6k views

How to connect through sftp to a non-standard port on Midnight Commander?

In Midnight Commander one can make an SFTP connection to a remote machine using: cd #sh:yourusername@example.com:/home/username/ How can this be done when the remote machine is using a non-standard ...
7
votes
4answers
17k views

Using sftp to Transfer a Directory?

When I try to use sftp to transfer a directory containing files, I get an error message: skipping non-regular file directory_name The directory contains a couple of files and two subdirectories. ...
1
vote
1answer
475 views

Ubuntu 11.10 SFTP chroot jail problem

I am creating a SFTP server with Chroot Jail. The problem is user cannot log into the home directory. I need to keep ChrootDirectory value to one directory above the user's home directory ...
1
vote
1answer
1k views

Difference in file listing for SSH and SFTP [closed]

I have SSH access to a server and I have never bothered to use SFTP until now. I transferred a file using FileZilla to the server. However, the weird thing is that the file doesn't show up when I ...