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
20 views

How to connect SFTP server using command line [on hold]

I wan to connect sftp server using command prompt.I tried following methods but its not working ssh username@remote_hostname_or_IP AND sftp username@remote_hostname_or_IP Its giving me following ...
0
votes
2answers
873 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
0answers
6 views

Key-based authentication from PyCharm / JSCH to OpenBSD fails

I am trying to configure PyCharm (java-based IDE) to connect via sftp to a new OpenBSD 5.6 machine with an almost-default setup. However, it keeps returning an error "Algorithm negotiation fails". I ...
3
votes
4answers
3k views

How to use SFTP on a system that requires sudo for root access & ssh key based authentication?

I want to be able to use SFTP to edit files that require root permissions. I'm using SSH Key based authentication - rsa key on smart card. If the system requires sudo to perform root level commands, ...
2
votes
1answer
497 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 ...
1
vote
2answers
81 views

Is there a reason for ssh and sftp being so unintegrated?

I am often working remotely with SSH and SFTP. The latter being basically a file copy protocol running over SSH, I am wondering whether there is a reason those two tools have not been integrated yet ...
3
votes
1answer
609 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: ...
7
votes
2answers
1k views

How do I sftp to a server if the username contains @ symbol

I have to sftp to a server to a specific port but the username contains the @ symbol. suppose the user is "user@domain.com" and the ftp server is just "domain.com" I will end with sftp -oPort:8777 ...
1
vote
1answer
43 views

sftp command to get/download .tar.gz file

I thought I was familiar with sftp commands in unix and upto my knowledge the command to used to download a compressed file from the server is sftp get filename.tar.gz But when I tried this ...
1
vote
0answers
62 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 ...
0
votes
1answer
560 views

using SFTP: Permission denied, please try again,

system info uzair@zaidi:~/Desktop/tftpboot$ uname -a Linux zaidi 3.11.0-20-generic #35~precise1-Ubuntu SMP Fri May 2 21:35:48 UTC 2014 i686 i686 i386 GNU/Linux uzair@zaidi:~/Desktop/tftpboot$ I get ...
3
votes
4answers
54 views

How to remove multiple files using sftp

This post is about removing muliple files from the remote server, when sftp password less connection is setup. I have the code as below. Only first file in the variable $file_list gets deleted, when I ...
1
vote
0answers
15 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
0answers
16 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 ...
0
votes
1answer
540 views

How to track SFTP's error

I have 1 script which is used for SFTP. I am getting error for permission issue on target server. I want to track this error in log file. How i can track the sftp's error. below is my code, sftp ...
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 ...
0
votes
0answers
15 views

Configure Key Based Authentication for ProFTPd

I was following this tutorial and stopped at this command sudo ssh-keygen -e -f ~username/.ssh/authorized_keys | sudo tee /etc/proftpd/authorized_keys/username. I tried with sudo, with su (super ...
0
votes
1answer
36 views

Setting up 3rd party sftp server to run on port 22

I'm trying to setup CrushFTP 7 on a RHEL 6.5 machine and am having issues. If I leave everything as default I can connect using port 2222 but I need to be able to have CrushFTP respond to requests on ...
3
votes
3answers
230 views

Chrooted SFTP user write permissions

I have a setup with sftp only users: Match Group sftponly ChrootDirectory %h ForceCommand internal-sftp AllowTcpForwarding no I get the following message in my secure.log: fatal: bad ...
7
votes
4answers
18k 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
449 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 ...
1
vote
1answer
104 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
2answers
93 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 ...
0
votes
0answers
43 views

Having Permission Problem over SFTP Pantheon File Manager

My linux distro Elementary uses pantheon file manager, it let me connect with my VPS using the sftp connection, looks like: Its a great feature, but i am facing permission problem in order to edit a ...
1
vote
1answer
44 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 ...
4
votes
1answer
258 views

Provide sftp read/write access to folder and subfolders, restrict all else

I need to provide user access to Ubuntu 14.04 Server, only limited to certain folder. To enjoy the ssh security and not to open up new service and ports (ie, ftp), I'd like to stick with sftp. ...
1
vote
1answer
45 views

Keychain SSH Key Manager prevents SFTP login on CentOS

I installed keychain and added this to my .bashrc in CentOs to help manage my SSH Keys: /usr/bin/keychain --clear $HOME/.ssh/id_rsa source $HOME/.keychain/$HOSTNAME-sh So on SSH login I am prompted ...
1
vote
0answers
8 views

How to SFTP through proxy if there is no netcat? [duplicate]

sftp -v -oProxyCommand="nc -v PROXY_IP_HERE PROXY_PORT_HERE %h %p" user@remote_sftp_server.com 22 How can I do this if I don't have netcat installed? I don't have permission to install it, even in ...
0
votes
4answers
329 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, ...
0
votes
3answers
83 views

Stat usage in truss command?

I want to get the access time and modification time of the file in unix solaris machine. The `stats command was not found in that solaris machine. Could you please suggest which is the alternative ...
1
vote
1answer
75 views

Limit access on external drive mounted and used by sftp

I've got a unix user "popolo" who is chrooted in /srv/ftp/ and I mount my two external drives by /etc/fstab in /srv/ftp so I have /srv/stp/dude and /srv/ftp/sweet. Popolo has access to those drives ...
4
votes
1answer
107 views

How do I share a mounted sftp drive?

My friend has a public server that he's given me read access to with SFTP. I've successully mounted it in Mint 17 with the command sshfs user-name@file-server:/location/I/want /mount/point/I/want -o ...
0
votes
0answers
95 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 ...
2
votes
3answers
937 views

Script for testing SFTP login status?

I need to perform an automated backup task that connects to an SFTP server. The first stage involves testing the server connection by connecting to it. To be absolutely sure that it is connecting to ...
2
votes
1answer
78 views

How to verify a file automatically over sftp?

I am trying to create a cron job to perform backup of a server over the internet using sftp. But before the actual backup is performed, I would like to verify that the server is connecting to the ...
1
vote
1answer
640 views

Can use Password authentication with SFTP even though “PasswordAuthentication no” in /etc/ssh/sshd_config

I have enabled SSH-keys based authentication on the Ubuntu 14.04 server, disabled root login using SSH and can connect successfully using SSH-keys based authentication with my user account blahblah on ...
0
votes
1answer
150 views

Connect psftp between Unix and Windows server

I need to transfer files from Unix to Windows server. After creating a folder in the windows server files need to be copied from Unix to Windows. I am using psftp to do this process.So, I am trying to ...
4
votes
2answers
667 views

How to pipe a remote file to stdout over scp or sftp?

Using ssh, it is easy to print the contents of a file using ssh host 'cat file.txt' When ssh is disabled, and only SFTP is enabled, running the previous command gives the following error: ...
1
vote
1answer
71 views

How could I retain special character without replacing it with underscore?

I'm working on a file transfer script where I encounter a problem, when the file name look like Dr' A. The transfer script will fail due to following error: sftp> put /path/Dr'\ A.tif Unterminated ...
3
votes
2answers
1k views

sftp from Unix server to Window

I am trying to sftp from a Unix box to my computer. I'm use the command: sftp userid@ipaddr where "ipaddr" is the IP Address of my computer. But I'm unable to connect. I tried with ftp and sftpg3, ...
1
vote
2answers
627 views

gvfs-mount auto password

I would like to make shortcuts for gvfs mounts (I prefer to mount from the shell). For this, it is quite necessary/convenient not to have to enter the password for the ftp:// and sftp:// connections . ...
0
votes
1answer
70 views

Setup SFTP in Ubuntu AMI

I want to setup SFTP on Amazon Ubuntu AMI. I can connect to the instance with PuTTY and access my project file through normal FTP (using Filezilla). For FTP access proftp is installed in Webmin. Can ...
6
votes
3answers
594 views

How to prevent “Last Login:” message from showing up when using sftp?

In Ubuntu GNU/Linux 12.04, I have a user johndoe that is part of an sftponly group, set up to sftp to a chroot jail using Subsystem sftp internal-sftp Match Group sftponly ChrootDirectory %h ...
0
votes
1answer
276 views

Unable to move files with SFTP

I'm trying to move files from one location to another on the remote server using sftp below: for i in a b c d do sftp $REMUSR <<EOM>>$OUT 2>&1 rename ...
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 { ...
3
votes
2answers
2k views

Chroot SFTP users who require access to multiple directories under same parent folder

I have a RHEL 6 server with a /Documents directory, and it has child directories 1 2 3 4 5.... right under the /Documents directory. Is it possible to create an SFTP chroot jail that only gives a ...
1
vote
1answer
33 views

How to correct error where 2 out of 3 users on chrooted network cannot gain write access?

I have an SFTP server running on Debian. The directory is chrooted and is set up with privileges as such: /sftp/+---testagent2----writespace 750 | 755 755 ...
3
votes
1answer
1k views

Why does the filename contains question marks when I run a script on my remote machine?

I have a tiny script that simply fetches the current date, runs a PHP script and redirect the output (and errors) to a filename containing the current date. DATE=$(date +"%Y%m%d") ...
3
votes
1answer
670 views

Unable to get the right exit code from a script

I have a script which connects to a remote server via SFTP and get some file from there. My script goes like this: /usr/bin/sftp USER@remote.server.com <<EOF lcd /dir1/dir2/dir3 cd ...
2
votes
1answer
178 views

Monitor SSH data transmission, and close connection if no data is flowing

For our file transmission and manual storage we have a simple RHEL server on which all other Linux clients are connecting by SSH. Whenever any client wants to access/store data, they connect to the ...