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
1answer
31 views

How to pull single file from multiple similar named file using sftp

I want to pull a single file from multiple similar named file using sftp. Eg. if my remote server is having below files, file_0722_005.dat file_0722_020.dat file_0722_033.dat file_0722_0022.dat I ...
0
votes
1answer
16 views

What does pasv_enable and related field s mean in vsftpd.conf

I just installed vsftpd according to these directions. I am trying to get ftp working on my Ubuntu box that is using Amazon AWS. When I first tried this directions, it did not work. I was trying to ...
0
votes
0answers
50 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
25 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
26 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 ...
1
vote
2answers
47 views

Log the output of Expect command

I have made the below expect script and I need to log the output of that script. SOURCE_FILE=`ls -l *.txt --time-style=+%D | grep ${DT} | grep -v '^d' | awk '{print $NF}' ` if [ -n "${SOURCE_FILE}" ] ...
0
votes
2answers
43 views

Set startup folder for SFTP to be other than /home/username is throwing me permission issues

I just installed a CentOS-based to serve as an SFTP server. I need all incoming files to go /mnt/inbound/ folder, so I want to ensure that every user from this host that logs in via SFTP gets /mnt/...
0
votes
1answer
35 views

Centos, uploaded files from application have different owner and group [duplicate]

I have an application that uploads a file via SFTP using sftpuser. Once the file is uploaded the owner and group is user1:user1. The owner of the parent directory is apache:apache. I can not figure ...
0
votes
2answers
44 views

SFTP to upload files at cronjob

I want to use SFTP to upload files from A to B. path for A: /tmp/A path for B: /tmp/B server B has own username & password. my cronjob will run every 10 mins to check whether there are new files ...
3
votes
1answer
71 views

Read only permission to sftp user in specific directory

I want to create specific SFTP user which will have permissions to only read all folders and subfolders in /var/www/vhosts. Any help on this ?
3
votes
0answers
44 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 ...
1
vote
2answers
86 views

Copy files that are created today without FIND command and SFTP to another server

I have a directory with 'n' number of files in it. I am trying to write a shell script which will list only the files created on the particular day the script is running, and will use sftp to move the ...
0
votes
1answer
31 views

How do I get SFTP/FTP setup

So I have another question, I would like to setup FTP/SFTP I know that ftp is not as secure but what I am trying to accomplish is to allow a user (web) to be able to login via sftp or ftp and upload/...
2
votes
1answer
37 views

Duplicity backup via sftp finishes without errors but no files transferred to remote host, why?

I want to use the following command to do a remote backup of /home: duplicity full /home sftp://user@hostname.com/home/user/backup When the command is run I get the following output: Local and ...
0
votes
1answer
39 views

Using a username starting “##” at a bash prompt

Some clown made me a sftp username that started with ##. Now I don't know if the command is wrong or the ftp server isn't responding for certain. Could someone please confirm for me that this should ...
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 ...
5
votes
2answers
53 views

Can you scp, sftp, or rsync, a pipe?

I want to tar and send a ~700GiB directory to a remote drive I don't control. I don't have the HDD space locally to create the tarball and then copy that over. The remote is also protected by rssh - ...
0
votes
0answers
40 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 ...
1
vote
3answers
69 views

How to list files and only files via SFTP?

I can list file names actually but a lot of unwanted stuff comes from there also. > echo "ls *.txt" | sftp user@host:/dir Connected to 1.1.1.1. Changing to: /dir sftp> ls *.txt 1.txt 2.txt 3....
1
vote
1answer
82 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
0answers
111 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 ...
0
votes
0answers
44 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
48 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
1answer
30 views

How to SFTP into a KVM VM on remote RHEL 7.2 server?

We have a RHEL 7.2 server which runs a virtual RHEL 7.2 machine on KVM. The only way to connect to this VM is to SSH to the server and then SSH again to the VM, using a user on server. How can I ...
-1
votes
1answer
72 views

AIX: How to find sftp file limit?

Can anybody please help to find sftp file limit on following version on AIX (7.1.2.3). I have following values set I am not able sftp a 110 KB file. ulimit -a time(seconds) unlimited file(...
1
vote
2answers
91 views

Can lftp read netrc for sftp-connections

I am trying to create a script to upload some files to a server via SFTP. I can do that manually by opening an interactive lftp-session and providing username and password there. For the script, I ...
1
vote
0answers
38 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 ...
0
votes
2answers
73 views

SFTP suppress all messages except errors

I want to 'put' a file from local system to FTP server using sftp (only) from bash script. I want to suppress all messages except errors: sftp $user@$server 2>&1 1>/dev/null <<EOF ...
3
votes
1answer
76 views

Can I use `internal-sftp` when using wrapper script with `ForceCommand` in sshd?

I use /etc/ssh/wrapper.sh script, like in tutorial, that filters which commands are allowed to be run via ssh and logs them. Currently when internal-sftp is required, I use /usr/lib/sftp-server. Is ...
0
votes
2answers
39 views

Copying script files using wildcards

We have an SFTP location which is shared by two processes. Now we have a situation when we need to filter based on the filenames before copying. ClientA12345.out ClientA44378.out ClientB23478.out ...
0
votes
1answer
36 views

Is there a command-line application that combines SSH and SFTP? [duplicate]

When I'm working on some remote host via SSH, I often need to upload or download files. With my current setup, I need to switch to another terminal and conjure up rsync or sftp, which can be a pain ...
0
votes
0answers
160 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
3answers
130 views

SFTP Automatic Login

I want to know how can I connect automatically using sftp with a password as an argument in the same command to get the automatic login an execute once. Example: I want to put it into a script, and ...
0
votes
1answer
40 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
81 views

SSHFS on Asus DSL-AC68U router

I have an Asus DSL-AC68U router. I can easily ssh to it: ssh router After having configured the proper options in .ssh/config: Host router Hostname ddnshostname User myuser KexAlgorithms +diffie-...
3
votes
3answers
151 views

Transfering files via ssh but without scp or sftp

I need to transfer files via ssh, but unfortunately scp and sftp are not viable, as the host I am connecting is just a "door" node that is redirecting me to a different machine available only on a ...
0
votes
1answer
73 views

I can SFTP but not SSH

This question is similiar, but I'm experiencing the reverse scenario. SFTP works but I'm not yet connected using SSH. I'm using a config file and I'm able to sftp to remote server. Local machine is ...
1
vote
2answers
151 views

ssh login works but sftp does not

I can use ssh to login-in Centos by Xshell, but I can not download files from Centos by FileZilla. I have tried to login-in in different network or computer, the result is still the same. However, ...
1
vote
1answer
37 views

How I can change the home directory of the sftp server on MAC OS X?

I'm trying to set up SFTP's home directory on a MAC OS X Mavericks for user my_user. Now, it looks like: /Users/my_user (i got it with sftp> pwd command) but I want it be: /Users/my_user/Documents/...
0
votes
0answers
85 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 ...
1
vote
1answer
212 views

How to disable SFTP for a user, but keep FTP enabled

I've created a user called "ftp-acc" and limited it to a single directory using VSFTPD. When I login to the account in Filezilla using FTP, it is successfully restricted to a single directory. ...
0
votes
1answer
49 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:...
4
votes
4answers
53 views

Transferring files to someone else via sftp

This is probably a dumb question, but the Internet wasn't very helpful... Someone else is giving me a dataset that is too large to send via email, Dropbox, etc., so I'm thinking we can use sftp or ...
0
votes
0answers
19 views

SFTP doesn't allow browsing for users (only root allowed) [duplicate]

I am trying to create the user which will have restrictions to get out of his home directory. Everything works fine with the "root" user, but other users have the problem. They're in "sftpusers" group ...
3
votes
1answer
67 views

kill user who is idle for more than 3 hours

I have a user who logs in via sftp but he opens a lot of sessions and keep them opened. This will make ssh and sftp very slow for all other users. I thought about using ClientAliveInterval number ...
3
votes
3answers
455 views

How to allow only machines with specified ip to login via ssh?

I want to allow only machines with allowed ip(s) to login to my system via ssh. For example, userA can use only ip xx.xx.xx.xx or yy.yy.yy.yy to login via ssh, and no other ip can login as the userA. ...
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 ...
0
votes
2answers
118 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
64 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
232 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 ...