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

1
vote
0answers
15 views

How to programmatically change a password on an IPSwitch server using a Linux client?

One of my companies customers runs an IPSwitch sftp server, and they have disallowed public key authentication, and require us to change our password every 90 days. The problem is that, I cannot see ...
0
votes
2answers
22 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 ...
0
votes
2answers
42 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
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 ...
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, ...
1
vote
2answers
33 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
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 ...
1
vote
0answers
22 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 ...
0
votes
1answer
61 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
38 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 ...
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 ...
1
vote
1answer
69 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 ...
2
votes
1answer
71 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
36 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
34 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
26 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
118 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
148 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?
2
votes
0answers
102 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
177 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 . ...
1
vote
1answer
67 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
152 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 ...
5
votes
1answer
65 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" ...
2
votes
2answers
87 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 ...
4
votes
2answers
86 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
20 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
112 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
47 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
54 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
84 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
228 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
188 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
90 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
156 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 ...
2
votes
2answers
305 views

sftp - how to only copy files from folder that dont exist in destination folder

I am wondering if it's possible to get files with sftp but prevent it from re-downloading files that already exist in the destination folder?
0
votes
0answers
25 views

sftp user with appropriate permission

I'm new to linux user permissions and having trouble configuring a user. So the scenario is, I have apache installed on centos. I've a virtual host with document root at /var/www/sitename/public_html ...
1
vote
2answers
364 views

How do I pass a variable into sftp?

I'm trying to match a filename to a string, which is basically a timestamp, during an SFTP connection. How do I match part of the filename? I can't seem to declare a variable within an SFTP ...
0
votes
1answer
77 views

sftp command with '\' in username does not work

The end server expects the username to come as Usertype\username@IPaddress in SFTP. For e.g. command is given as stfp Admin\primary@10.10.10.10. But it does not work. Is there any other option using ...
0
votes
1answer
26 views

Cleanup archive and archive files only if sources exist using rsync, scp or sftp

I have to cleanup an archive directory on a remote host only if there are files to be archived; the source files are on the same host. I should run something similar to: cd $source_dir if [ -f ...
1
vote
1answer
111 views

NFS + SFTP on the same directory - are there any pitfalls?

I currently have an SFTP (actually vsftpd) server I use for regular archives. The OS is Centos 7.0. While I used to use SFTP, I still could benefit from having an NFS connection to this server (rw). ...
0
votes
0answers
163 views

Can't show the content of /sdcard of my Android phone from sftp in Ubuntu's Nautilus or FileZilla

I set up a ssh server on Android using SSH Server by Ice Code App. Settings of ssh server: http://i.stack.imgur.com/ZlbzJ.jpg http://i.stack.imgur.com/b1X4i.jpg ...
2
votes
1answer
168 views

Huge delay in script response when using SFTP with expect

I am using a script to call SFTP service to fetch some logs from the remote server. This works fine in normal scenario but, i have noticed a very long delay of around 30 minutes or more in some of the ...
-1
votes
1answer
323 views

renaming files in SFTP session

This is part of a SFTP file transfer. Here are the steps: Check files with .csv extension and get them to the local directory. After that, move them to the another folder in the remote connection. ...
1
vote
0answers
15 views

Why do I need the execute permission to upload files via SFTP? [duplicate]

I have an directory with 664 permission so the owner and group should be able to read and write. drw-rw-r-- 2 sftpuser sftpusers 4096 Aug 8 14:02 sftp But when I try to upload a file via sftp I ...
0
votes
0answers
534 views

sftp (ssh_exchange_identification: read: Connection reset by peer)

I'm trying to sftp to a remote host, yet keep getting following output: $ sftp -v X.X.X OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /home/alexus/.ssh/config ...
1
vote
1answer
528 views

How to use SFTP in a script to non-interactively pull file from remote host?

I want to use a shell script to pull a file from another server. I have written a script where i can do this but i want the script to work non-interactively so that it doesn't prompt me for the ...