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
22 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 ...
0
votes
0answers
11 views

Can't jail sftp user on a different directory [on hold]

I'm trying to restrict a user to a certain home directory /var/www/domain.com/public_html But I'm always getting a Write failed: broken pipe error. However upon changing the home directory to ...
2
votes
1answer
21 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 ...
-1
votes
0answers
72 views

Connection closed during SSH using default port only

I'm having a connection closed error on SSH if using the default port. I have a public key for authentication. I'm not encountering any connection closed issue if using password authentication but I ...
0
votes
0answers
27 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
33 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
28 views

How to create sftp user that only has access specific existing Folder

I want to add ssh user who only has permissions to access specific directory: /home/apps/archived_log This is an existing directory, I want new user to only have access to archived_log
0
votes
0answers
50 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
17 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
34 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 ...
-1
votes
0answers
20 views

get command not found-unable to send file from ubuntu desktop to ubuntu server

I am currently trying to send files between my server ubuntu vmware machine and my desktop vmware ubuntu machine which are under different ip addresses and usernames. I am able to send to the desktop ...
0
votes
1answer
38 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
3answers
56 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
54 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 ...
0
votes
1answer
49 views

Cannot make vlc from source: libssh error

I tried to install vlc-2.1.5 from source code using following configure command. ./configure --prefix=/usr/ --disable-vlc --disable-lua --disable-mad --disable-swscale --disable-postproc ...
0
votes
1answer
47 views

How to sftp one server to another password protected server without interactive?

I want to sftp files from one server to another server and this thing I want to include in a script. But the problem is the Destination server is a password protected server. So Password needs to be ...
0
votes
1answer
92 views

How to get SFTP on Ubuntu working again? Should I try to fix it or reinstall?

Update: Added output from two more logs, and am now only tailing the last twenty lines...so you can see the relevant lines. After six months of working perfectly, SFTP on my Ubuntu machine has ...
1
vote
2answers
131 views

Get files from SFTP server and manipulate in memory

Is there a BASH way that is able to access a SFTP server, "access" a file and without downloading it read it in a buffer, manipulate the content and then store it locally. I know this can be done ...
0
votes
1answer
58 views

How To Access SFTP on Ubuntu

I inherited a linux server and I am attempting to access SFTP for a specific user. I can access a shell with no issues using an admin account "admin" and I can also access the filesystem with ...
0
votes
1answer
19 views

Migrate SSHD sftp Logging

currently my messages log file is filling up with Dec 19 08:46:43 XXXXXXXXX sftp-server[32357]: closedir and similar messages - is there a setting that I can move all sftp-server messages off to ...
1
vote
0answers
17 views

SFTP/SCP only and chroot [duplicate]

We have a SFTP Server and a bunch of users. The users share files over the SFTP Server with us (not the best solution, I know). Every user is chrooted into a different directory to prevent them from ...
1
vote
0answers
45 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 ...
2
votes
3answers
102 views

Is it possible to detect when a file has been downloaded?

We have a server where another script sFTPs and downloads files everyday. Question: Is it possible to detect that the file was downloaded and then for me to automatically archive the file after they ...
1
vote
1answer
40 views

how to know on my linux machine if connection VIA sftp is active

I have Linux machine red-hat 5.X please advice - which what command I can identify if someone is tiring to copy files from my machine VIA sftp or ftp is it possible to verify this on my Linux machine ...
1
vote
0answers
114 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: ...
0
votes
0answers
450 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 ...
1
vote
2answers
95 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 ...
1
vote
1answer
258 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
294 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 ...
3
votes
4answers
1k 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
30 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
38 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
0answers
97 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 ...
1
vote
1answer
71 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 ...
1
vote
1answer
140 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 ...
0
votes
0answers
82 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
104 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
625 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
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 ...
1
vote
1answer
68 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
votes
4answers
4k 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
2answers
273 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
3answers
199 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
125 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
237 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
115 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
2k 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
123 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 ...
3
votes
3answers
1k 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 ...
1
vote
1answer
1k 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 ...