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
0answers
9 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
votes
0answers
12 views

SFTP inside SFTP [duplicate]

I want to transfer files from serverB to ServerC while staying in serverA. Can we do sftp inside sftp in shell? If yes then how?
1
vote
1answer
18 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
26 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
54 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
29 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. ...
0
votes
0answers
14 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
55 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
54 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 ...
1
vote
0answers
96 views

Give a user permission to one folder

I have made so my group "sftponly" can access the users home folder. But right now the user in the group don't have permission to other folders, but they have permission to see them. How can I do so ...
0
votes
1answer
114 views

sftp to use password stored in a parameter file

Is it possible to to connect two server 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 UNIX world , ...
0
votes
1answer
33 views

Can I automate SFTP to upload an entire tree?

Currently I am using SFTP to transfer .HTML and .JS files to my remote filesystem. I have to type: sftp root@123.456.78.90 And then manually change remote directory to /var/www/html, and upload ...
0
votes
1answer
41 views

Connect to SFTP using Centos Linux VM

I have Centos running a Linux VM on a Windows machine. I'm not able to connect to the VM using WinSCP with sftp on port 22 or ftp on port 21. I have Subsystem sftp ...
1
vote
3answers
164 views

Save a list of files over SFTP to a text file

I have provided my own answer below. We have a number of bash scripts that work fine using SFTP, what I would like to do is to simply re-direct an ls or dir of a folder to a file on our SFTP Server.. ...
3
votes
1answer
55 views

SFTP on Raspberry Pi troubleshooting

I'm trying to create a folder shared with SFTP in my Raspi. There are some issues, which are reported to be related to folder administration rights. Trying to solve them seems useless. I'm reporting ...
1
vote
0answers
139 views

sftp using socks proxy command with password authentication

I am struggling to make a sftp connection.We need to make a sftp connection to download files. My requirement is that we are moving from ftp gateway to axway and We were using ftp before to download a ...
0
votes
2answers
56 views

Script works without sudo, fails with sudo

When I launch this script: #!/bin/bash -v sshpass -p '<pypasswd>' scp blah.img root@myip:/home/user/blah.img exit 0 with ./script.sh or nohup ./script.sh & it works. But when I do ...
1
vote
1answer
44 views

User in the same group new/edit files permissions

I have a few users under the same group. However, when they all work on the same folder via winscp, whenever they open a new file, they open it with themselves, as the owner. Thus, when someone else ...
-1
votes
1answer
142 views

SSH console login working but can't SFTP does not, why?

I am trying to SFTP with Filezilla but it is not able to connect to the server and I think this is due to my firewall rules? I can SSH absolutely fine. The port for SSH is 6128. Can anyone tell me ...
1
vote
0answers
17 views

Allow move but not put in internal-sftp

is it possible with the internal-sftp to allow mv command from dir A to B but not allow put to A?
1
vote
1answer
51 views

Transfer data over SSH directly in Truecrypt volume

my problem is this: I have to transfer data from my computer to a remote system that doesn't have an encrypted partition. Because I don't want that the transferred data can be retrieved by forensic ...
2
votes
1answer
61 views

Detect remote sshfs mounts on local machine

I would like to get back the question of this post. When a user in a remote client mounts a directory from a local server on his filesystem through sshfs, he is not visible in the server through who ...
1
vote
2answers
247 views

use SFTP in shell script

I have written a shell script to get the files from another UNIX server. But files are not being copied. Could someone help me what I am doing wrong. sftp username@server:$path get ubpbilp* ./ mget ...
1
vote
1answer
99 views

Shell read script for sftp

I have this working: % cat read.sh !/bin/sh file=list.txt while read line do echo "$line" cut -d' ' -f27 | sed -n '$p' > file2 done < "$file" % cat list.txt sftp> #!/bin/sh sftp> ...
1
vote
1answer
55 views

Restrict ssh access per user based on conditions

Is there a way to restrict a user to only use ssh to connect via SFTP, but disallow that same user to login to a secure shell terminal? I only want the user to have the ability to connect by an SFTP ...
1
vote
0answers
79 views

Backing up VPS via SSH/SFTP

I'm going to perform some maintenance on my VPS (Ubuntu Server 15.04), and I would like to back up some files before doing so. The problem is that some of these files are under other users' home ...
0
votes
2answers
118 views

How to make the script automated to take password on its own?

I have a script that is doing sftp some files from one server to another, like inside the script script.ksh I have the below lines; sftp user@ip_address << EOF cd path put file1 bye EOF When ...
0
votes
1answer
190 views

IP address of the username who uses sftp connection in unix

We have SFTP connection in unix location.How can I find the IP address of the particular username with whom we have SFTP connection to share the files?
-1
votes
1answer
38 views

Problem with sftp

i am facing issue while ftp using the command file, but i don't face the executing using the manual execution of commands.. i need to ftp while connecting to ssh machine, the command file is ...
0
votes
0answers
149 views

Chroot SFTP read only user + admin read/write user

I currently have a ssh-server setup which has users with read/write access jailed to their home account. The need has now changed and I now need the home directory user to have jailed read only ...
1
vote
1answer
594 views

How to set up chrooted and non-chrooted sftp?

I am trying to set up my Openssh server to allow for chrooted sftp-only users as well as for non-chrooted sftp and ssh users. My condensed (comments and blank lines removed) /etc/ssh/sshd_config looks ...
5
votes
1answer
239 views

Is it possible to create a non-empty file without write_close and rename event?

The reason why I am asking is because I'm using iwatch (not to confuse with a gadget device) to watch for filesystem events (in my case - file creation/renaming). What I cannot explain is this log: ...
0
votes
0answers
94 views

Help with vsftpd and sftp

Is it possible to sftp setup that is more flexible then the ssh internal ftp server? I have been tasked with providing an /srv/ftp/ directory which includes mount -bind other_directory1 /srv/ftp/d1 ...
1
vote
0answers
69 views

SFTP connect through an other server

I want to connect to my account in a server of my university. When I’m there I only have to do ssh user@FinalServer/home/user or create a folder using sftp://user@FinalServer/home/user But the ...
18
votes
3answers
3k views

Transfering large (8 GB) files over ssh

I tried it with SCP, but it says "Negative file size". >scp matlab.iso xxx@xxx:/matlab.iso matlab.iso: Negative file size Also tried using SFTP, worked fine until 2 GB of the file had ...
1
vote
2answers
166 views

Capture errors in a SFTP script

I have a sub sh file which puts receives an input of local directory and path to the remote directory and sends the file to the remote directory. If the remote path is invalid the error cannot be ...
1
vote
2answers
50 views

SFTP server without root as owner of the user's folder?

I installed a SFTP server with SSH. But the chroot directory must be owned by root, then the user can't write on it. Is there any way to allow that user to write in its root directory? Thanks in ...
1
vote
2answers
296 views

How do I use my own local text editor to modify system (requires root to save) files on a remote system?

I've recently fallen in love with github's Atom text editor, and I enjoy using it for all my local coding and configuration. I started to maintain a Nagios installation for several dozen servers and ...
0
votes
1answer
53 views

SFTP Chroot and SSH

I have a chrooted SFTP user group to access my home server. The chroot location is /mnt/, mostly because it is already owned by root and is where I have mounted the external HDD I want to the chrooted ...
0
votes
1answer
148 views

Installing Node.js on a remote LAMP server with no internet connection

As a part of a student project, I am to host my Node.js-based server application on a server so that other people can try connecting to it and test the integrity of it's functions. The problem is that ...
0
votes
1answer
39 views

Restrict SSH users to SFTP

How to configure an SSH server to only allow users to transfer files using the SFTP protocol, without being able to log in with their username ? Note: If the user's shell to nologin or null is not ...
2
votes
1answer
50 views

File transfers with SSH and switch-user

Have a situation that SCP and SFTP wouldn't work for. I've RTFM for SSH, but can't find what I'm looking for. The scenario is that in order to transfer files to the server, I first SCP them into a ...
0
votes
0answers
56 views

Difference in the permissions of the file created by SSH and SFTP

I have a question and want to know how can I fix it so that the files created by SSH and SFTP by always have the same permissions in the case is 0644 for files. It is possible to make the permissions ...
2
votes
0answers
64 views

Avoid creation of .k5login file in a SFTP Chroot configuration

I've successfully set up an sftp with authentication on Active Directory. All users in a particular AD group are managed by SSH's sftp subsystem and chrooted into a common home directory, let's say ...
0
votes
0answers
254 views

How to allow an FTP account on an SFTP server

I connect to my server via SSH for a user called 'ubuntu'. It needs a private key to connect and the same goes for the same account via FileZilla. I'm currently setting up a server block with nginx ...
1
vote
1answer
36 views

What SFTP application just lets you drag and drop from desktop to the server?

Is there a single view SFTP client for Linux? All I have seen are dual window clients. I like the Windows ones like sftp and Cyberduck when you don't have a pointless view of your PC as you drag and ...
1
vote
1answer
155 views

Linux Cluster - SFTP between failed over Servers

I have a strange problem with our cluster solution on Linux. We have the following set-up in our environment. Each of these servers hosts our enterprise application. Server1 Server2 Server3 ...
0
votes
2answers
377 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 ...
2
votes
4answers
200 views

Download directory from sftp

I want to download directory from sftp to a server.I am able to login to sftp using sftp rob2056@storagename and then can get individual files using : get *.txt /remotedir But I want to ...
1
vote
1answer
363 views

How to remember ssh password with lsyncd?

I' m using lsyncd to sync a folder between local and remote machines with default.rsyncssh config. But it asks for password every time file changes. I found there' s an option password_file, but ...