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

7
votes
1answer
871 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 ...
3
votes
1answer
448 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 ...
2
votes
1answer
210 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 ...
2
votes
1answer
97 views

How to write in home user with chrooted sftp

I have a problem with chroot sftp an their home folder. I would like to write in user's home but I don't have proper permission for doing that. sshd_config Match User demo ChrootDirectory %h ...
1
vote
1answer
86 views

Bash script SFTPing into remote server and downloading files, cd into proper directory on local machine

I have a cron on my Ubuntu server that runs this bash script daily: #!/usr/bin/expect -f spawn sftp user@ip expect "password:" send "password\n" expect "sftp>" send "cd remote_directory\n" expect "...
1
vote
1answer
380 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
310 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 ...
1
vote
1answer
163 views

ZFS ACL (NFS4 ACL)

I'm using Openindiana (Solaris 10) containers and I want to let users upload web content over sftp I'v managed to setup internal-sftp of openssh and lock user under web root. All the files under web ...
1
vote
1answer
389 views

chroot for sftp user

I followed multiple guides on the internet on how to restrict a user so that he cannot change/see files outside of his home directory. So I created a user, let's call him john and I also created a ...
1
vote
1answer
363 views

Listing previous logins through sftp

Hello people of the stackexchange, I am having a little difficulty trying to find a location of a particular log file which i'm hoping someone on here could help me with. What i am trying to do is ...
1
vote
1answer
97 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 { ...
0
votes
1answer
41 views

Backup mysql database via sftp

I have recently messed up my debian server and I have only sftp access for my files. I rescue almost everything except of my database. I have no longer direct ssh access, other than in rescue mode, ...
0
votes
1answer
50 views

ServerAliveInterval and connection reset

If I run: sftp -oServerAliveInterval=10 server-2 Connection is established. But after increasing (decreasing) the value from 10 to 1: sftp -oServerAliveInterval=1 server-2 I am unable to connect:...
0
votes
1answer
234 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 ...
3
votes
0answers
46 views

SSH with chroot and only working “sftp”, “rsync” (both)?

I have two users and one shared folder in my Ubuntu server: User writer, which has write access to /var/shared. It's an application regularly making file changes in this folder from remote, with SSH ...
3
votes
0answers
129 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 ...
3
votes
0answers
825 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? ...
2
votes
0answers
269 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 ...
2
votes
0answers
145 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 ...
2
votes
0answers
97 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 /...
2
votes
0answers
302 views

User Acces restrict to only one folder

I am trying to establsih SFTP User rights at a server to only one folder, following the guidelines here: http://www.esotech.org/resources/software/linux/creating-an-sftp-unix-group-with-chroot-...
1
vote
0answers
22 views

setting up sftp users only second instances of sshd

I created second instances of sshd called sshd-sftponly and using different port (e.g 2222 ) and made all necessary changes in /etc/rc.d/init.d/sshd-sftponly and /etc/ssh/sshd_config-sftponly ...
1
vote
0answers
121 views

Changing permissions of the file, while using sftp command in a shell script

How can I change the permissions of the file/command, while using the sftp command via a shell script? My sftp connection is established, but it fails while executing the chmod command. As of now, I ...
1
vote
0answers
44 views

PSCP - why can't it find the file when using non-admin credentials?

I am trying to make a batch script to get files from Windows vm to Ubuntu vm so I decided to use pscp. when I put pscp -l admin -pw pswd C:\path admin@IP:/path the files transfer fine but I don't ...
1
vote
0answers
33 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 ...
1
vote
0answers
93 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 ...
1
vote
0answers
52 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
0answers
753 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 ...
1
vote
0answers
27 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
0answers
125 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 ...
1
vote
0answers
186 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 ...
1
vote
0answers
1k views

How to Download the latest file from SFTP server?

I need to first get the data a file was uploaded to the sftp server on, then check whether it was today's date and if so download it else echo "File not found". I would like to do all this using a ...
1
vote
0answers
84 views

Giving a user SFTP access only with access to subdirectory outside of home?

I have user [USER A] account which contains scripts and a downloads folder. I would like to create a new account [USER B] so that the user has read/write (SFTP and not full SSH) access to their home ...
1
vote
0answers
324 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 ...
0
votes
0answers
76 views

Bad host key from server — paramiko SSHException

I'm trying to connect to a remote host via pysftp: try: with pysftp.Connection(inventory[0], username='transit', private_key='~/.ssh/id_rsa.sftp', port=8055) as sftp: sftp.put('~/test.file') ...
0
votes
0answers
26 views

CentOS SFTP chroot

I've some issues chrooting an SFTP access for a client. I can access the directory, but the problem is I can't read / write, I can just access the directory. Below is what I've done : # cat /etc/...
0
votes
0answers
27 views

how to restrict users to the assigned folder with SFTP

I know there is different version of this question. What I have is a Red Hat 7.1 Linux box in the cloud. What I need is: create a group exchangefiles restrict group to SFTP I have more than one ...
0
votes
0answers
41 views

Files not appearing immediately on remote system after SFTP put command

I'm encountering a bizarre issue. I'm sending files to a remote machine using SFTP's put command. However, even though my machine says the transfer is finished, the files don't appear immediately in ...
0
votes
0answers
46 views

Cannot ssh into server through VPN

I'm trying to ssh into my university server via vpn (PPTP). I'm on an Mac OSX 10.11.4. (El capitan) Unfortunately, I get the following error: Adams-MacBook-Pro:~ adamG$ ssh gadam@xxx.xx.xx.ac.uk ssh:...
0
votes
0answers
49 views

Vsftpd server will not create ftp user directory

When I try to login to my ftp server I get 500 OOPS: cannot change directory:/mnt/users/alex When I try to do the same thing with sftp I get packet_write_wait: Connection to 10.0.0.8 port ...
0
votes
0answers
171 views

SFTP connection using public key (without password) not working

I need to provide sftp access to a client to my ftp server and this is working fine. For them to access our server without using password - we have followed the below steps on our server. Created ...
0
votes
0answers
86 views

Last doesn't show sftp logged users

To check users being logged on a web server I would like to use only last command. I know it can show all login sessions both ssh and sftp (ftp). This is what I had on CentOS 6.6 when using the last ...
0
votes
0answers
82 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
161 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. ...
0
votes
0answers
30 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 ...
0
votes
0answers
310 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 http://i.stack.imgur.com/CgT4d....
0
votes
0answers
842 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 ...
0
votes
0answers
360 views

Connect Unix and Windows using shell script

SRCDIR="source/directory" TMPDIR="temp/directory" [ ! -d "$TMPDIR" ] && mkdir -p "$TMPDIR" for file in `find "$SRCDIR" -ctime -1 -type f -name "abc*pdf*"`; do cp $file $TMPDIR done cd $...
0
votes
0answers
268 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 ...
0
votes
0answers
254 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 ...