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
1answer
15 views

How to do sftp via password

I am trying to transfer files via sftp with password mode but getting below message content of file put-script open sftp://user:password@host get /tmp/testftp.txt exit Output: $ lftp ...
1
vote
1answer
672 views

How to add sftp permission to user/client?

I am somewhat new to linux, so please bear with me... I'm on a new Centos 7 setup. So far I have logged in via ssh as root: added a new user gave user full permission via visudo added user to the ...
0
votes
4answers
1k 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 ...
0
votes
2answers
40 views

How can I log password entered to 'sftp' command?

How can I log the password entered to 'sftp' command? The command is shown in .bash_history, but obviously the password is not included as it comes as the next prompt. How can I also log what is ...
1
vote
2answers
758 views

How to give sftp access to sub-directory only not to parent

I want to give SFTP access to user tom for directory /var/www/html/my_project/. while I don't want to give any SFTP access to directory /var/www/html/. currently /var/www/html/my_project/ and ...
1
vote
1answer
46 views

Fastest file copying within sshfs directory (rsync?)

I have a directory on a remote server remote1, mounted via sshfs. I am installing new versions of some of the files in the remote directory, which are quite large (~50M). I am currently using ...
1
vote
2answers
32 views

Moving files between two drives remotely

Any ideas on a OS X app or protocol that would let me easily move files between say... /home/user/Downloads and /media/user/External my attempts so far trying to use SFTP or SMB haven't worked. ...
0
votes
0answers
20 views

gvfs-mount not working

I have ubuntu 15.10 (wily) on my machine, and I'm used to mounting sftp disks of remote machines via gvfs. There's a simple GUI way to do that in Ubuntu. However, this stopped working recently, ...
0
votes
0answers
9 views

SFTP Directory Permissions [duplicate]

Is there any way that I can allow SFTP accounts to access a directory without having access to any other folder. For example, they can access the folder /var/www but they cannot access the folders ...
2
votes
2answers
1k views

CHROOT: Unable to copy files to jailed users directory from local machine using WINSCP

I've setup a chroot environment for one of my users called client on my system. I'm using WINSCP to connect to my server from my machine using public key authentication. Everything works fine, I can ...
44
votes
7answers
65k views

Uploading directories with sftp?

I'm having some trouble uploading directories(which contain other directories a few levels deep) by sftp. I realize I could work around this by gzipping, but I don't see why that's necessary. Anyway, ...
1
vote
0answers
21 views

Proper permissions on SFTP upload and download subdirectories in a user's home directory?

I have a server running OpenSSH. I've setup an SFTP server that users can log into. I have created user userName with a folder at /sftp/userName with permissions of 555 and owner root. This folder has ...
3
votes
1answer
424 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 ...
5
votes
1answer
64 views

Why does default setfacl fail for nested directories?

I am using sftp with the internal-sftp for debian. What I'm trying to acomplish is to jail all users to a specific folder which is working fine. I also need to have a single user that has "admin" ...
0
votes
1answer
59 views

Curl error (2) when trying to connect with sftp

I have confirmed that I can login via Telnet $ telnet ftp.domain.com 990 Trying xx.xxx.xxx.xx... Connected to ftp.domain.com. Escape character is '^]'. I am getting the following error when ...
-1
votes
1answer
37 views

How to enable tab completion in sftp like Centos7 on Slackware?

On Centos7(and 6,5,and suse..) i see sftp has tab completion,like "readline" function,like bash. This not happen in Slackware,i have tried to recompile ssh "with-readline" "enable-readline" but ...
5
votes
2answers
10k 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 ...
0
votes
2answers
1k views

Using lftp with ssh-agent

I have a script that logs into sftp server eval `ssh-agent -s` ssh-add /home/<username>/.ssh/id_rsa sftp <username>@<target> This works, but I would like to get only files that ...
1
vote
1answer
23 views

Sftp : local is remote?

I am trying to remotely connect to University to do some maths simulations, for which I am proceeding by... ssh -X mouser@remoteIPaddress then sftp mouser@remoteIPaddress All connections ...
18
votes
4answers
11k views

What's the difference between SFTP, SCP and FISH protocols?

I used to think SCP is a tool to copy files over SSH, and copying files over SSH is called SFTP, which is itself a synonym to FISH. But now as I was looking for a Total Commander plugin to do this in ...
1
vote
1answer
65 views

Executing a command in remote machine and redirecting output to a local file

I am uploading a file via sftp and just performing the safety test if the file is completely uploaded to the remote server. I am taking md5 hash of both(file in local and file in remote server) and ...
14
votes
5answers
45k 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. ...
2
votes
1answer
67 views

Limiting user SFTP only to their home directory

Ubuntu 14.04 I'm trying to restrict all users of a certain group to their home directory. They should be able to SFTP to the directory and read/write whatever they like within there. I have ...
1
vote
0answers
35 views

Can't sftp into server in Mint

This isn't my strongest suit. I have tried multiple fft/sftp programs in Mint, and I cannot sftp (ssh) into the server. I have the exact same settings in xubuntu on another machine and it hooks up ...
1
vote
1answer
32 views

Chdir fails even though the user has a home directory assigned

I'm facing this problem - when I ssh to the server, the user is authenticated correctly, but then the connection is closed with: Could not chdir to home directory /home/blazej: No such file or ...
1
vote
2answers
24 views

How is OpenSSH sftp jail/chroot working?

This question is actually too broad... What I really want to know is whether or not it actually chroots and, if so, how a SSH user deamon[1] can be launched in that jail in spite of the obvious lack ...
1
vote
1answer
31 views

vsftp doesn't respect chmod setting when uploading outside my local network

Yo! I've a ftp server on my linux machine and I've set the following rules: I keep group and owner and chmod it to 775. When I use it at home (192.168.x.x) it's ok, files keep their group and user ...
0
votes
1answer
113 views

What is the best protocol to transfer large files over WAN? [duplicate]

I am running a Debian 8 machine that has 50mb/s download and 5mb/s upload(on a good day) connection and I need to remotely upload large video files upwards of 15gb over a Wide Area Network. I am not ...
1
vote
3answers
138 views

How to copy symlinks as symlinks from one machine to another?

Let's assume I have two identical systems. On the first system I've created a symbolic link. On the second one I want to copy that symlink via sftp and the symlink shall work the same (i.e if the ...
0
votes
1answer
33 views

Is it possible to sftp to multiple machines in single sftp command? [closed]

In my case, I want to sftp set of files to 3 machines using 1 sftp command in RHEL. Is it possible?
1
vote
4answers
25k views

sftp script to get a file from remote machine

I use a script, which contains the line: sftp $FTP_USER@phcsftp.pearsoned.com:/dir/file.txt When I run the script, it asks for my password: user@phcsftp.pearsoned.com's password: However, ...
1
vote
1answer
172 views

scp can't upload/download files even though ssh works

I can connect to my server using ssh dziura and it works as it should, but I have problems copying any files to/from the server using rsync/scp/sftp. Scp: $ scp dziura:/home/kossak/file_remote.txt . ...
2
votes
0answers
98 views

How to change to a different user after SFTP login

The goal: Use local IDE (IntelliJ PHPStorm 9) to browse & edit remote files via SSH The obstacle: My user on the remote machine does not have permissions to read files, which are owned by ...
1
vote
0answers
36 views

SFTP chrooted to home directory and users wanted to have a write permission to home directory [duplicate]

I have a new request from the user and these are the following requirements Request to have an sftp user account and disable shell access Sftp User should only see their home directory (ie.. ...
1
vote
1answer
66 views

passing sftp commands to sftp connection in a file

How can I pass a script to an sftp connection? e.g. I make the sftp connection thus: #sftpscript.sh serverIP="1.2.3.4" sftp $serverIP So far so good. Now I have a script the looks like this: ...
1
vote
1answer
139 views

nmap doesn't appear to list all open ports

I just curious about my rental Linux server as it doesn't appear to be responding to nmap the way I thought it would. The problem is that when I run nmap it shows only three open ports: 80, 443 and ...
2
votes
2answers
83 views

SFTP clients uploading files with too restrictive rights

I have the following setup: Ubuntu 14.4 server offering SFTP service in a front-end area. External clients have the ability to upload files. A back-end process (on another server) tracks uploaded ...
1
vote
0answers
113 views

Give a user permission to one folder

I have set up my machine so that my group "sftponly" can access the users home folder. But right now, the users in the group don't have permission to other folders, but they have permission to see ...
0
votes
1answer
517 views

sftp to use password stored in a parameter file

Is it possible to to connect two servers through sftp with a batch of commands and where the authenticating password needs to be read from a file (where it is stored previously)? I am new in the UNIX ...
4
votes
2answers
84 views

Can not create SFTP user Debian 7

I have a linode and I access via ssh throw terminal. I need to create an sftp user which his default directory (and the only he can access) is /var/www/xxxxxx.com/public_html/directory Now, I did it, ...
0
votes
1answer
19 views

SFTP package for automation

I have various SFTP automation projects that I am looking to move to Linux. I could easily script this in via Python, bash or something similar. But is there a package or something of the sort ...
2
votes
1answer
106 views

SFTP Dual Factor Authentication

My Issue I am trying to automate a file fetch from an external [SFTP] server. The server is using 2-factor authentication. First, it needs a public-private key pairing established [This has already ...
0
votes
1answer
45 views

Specify anonymous ftp password in ftp command

I would like a simple (ideally one-liner, without separate script file) command to connect to an ftp server via anonymous login using my email address as the password. My attempt is based on the ...
0
votes
1answer
53 views

Give access to only one directory that's not user's home

In my VPS account, I have a folder /home/xyz/public_html. This belongs to a customer who now wants their in-house developer to look into the code. How do I give SFTP access to only this folder? I ...
1
vote
1answer
40 views

SFTP access to different parts of the apache webroot for different users

I have a website running on apache with the web root folder at /var/www. I have different people managing different aspects of the website. Designers accesses /var/www/images and /var/www/media ...
0
votes
0answers
80 views

Cannot see files present on server when connecting via Filezilla / SFTP

I am not able to see the files present on the server using Filezilla ftp client. I am using SFTP connection. I am able to connect to the server. I can see only the directories but not the files. ...
1
vote
4answers
222 views

All files are not getting downloaded by SFTP script

I have a sftp file script with below details,my server folder like BCP11,BCP12,BCP13,BCP14.....BCPXX. In which BCPDUMP folder have files. Filename : file_sftp.sh #!/usr/bin/expect spawn sftp ...
0
votes
1answer
179 views

Firewall blocking SSH/SFTP connections. How to cheat it?

Hi folks (sorry for the bad english) I'm a college student, and I live in the student's house of my university. I study computer science, and there we have the right to a space in a nfs server to ...
2
votes
0answers
87 views

Restrict SFTP users to different directories

How can I restrict some users/groups to some directories? I mean different users, different directories. What I have: Ubuntu 14. Experience with Ubuntu: Just started. What I have tried: I read ...
1
vote
1answer
151 views

Get only files modified within last 30 minutes using sftp get

Within a .sh script, I'm using expect to automatically sftp to another computer in order to get files. My script will be set to run every 30 minutes, at which point I want to get only files that were ...