Questions tagged [sftp]

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.

Filter by
Sorted by
Tagged with
4 votes
1 answer
7k 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. ...
A.J. Ruckman's user avatar
0 votes
2 answers
614 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: ...
meso_2600's user avatar
  • 163
4 votes
4 answers
1k views

Transferring files to someone else via sftp

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 scp. But how will she be able to do this without my giving her the password ...
Betterthan Kwora's user avatar
2 votes
1 answer
360 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 ...
Ahmad Abuhasna's user avatar
3 votes
3 answers
4k 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. ...
Marcus Thornton's user avatar
1 vote
0 answers
103 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 ...
Kem Mason's user avatar
  • 123
-1 votes
2 answers
11k views

How to do sftp via password [closed]

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 -f ...
anurag's user avatar
  • 362
0 votes
2 answers
2k 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 ...
user5603796's user avatar
4 votes
1 answer
3k 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 ...
Mark Perryman's user avatar
1 vote
2 answers
82 views

Moving files between two drives remotely

Any ideas on a OS X app or protocol that would let me easily move files between say... /home/user/Downloads and /media/user/External my attempts so far trying to use SFTP or SMB haven't worked. ...
Scott's user avatar
  • 11
2 votes
0 answers
2k 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 ...
T. Brian Jones's user avatar
0 votes
1 answer
6k views

Curl error (2) when trying to connect with sftp [closed]

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 trying ...
brentwpeterson's user avatar
-1 votes
1 answer
875 views

How to enable tab completion in sftp like Centos7 on Slackware?

On Centos7(and 6,5,and suse..) i see sftp has tab completion,like "readline" function,like bash. This not happen in Slackware,i have tried to recompile ssh "with-readline" "enable-readline" but ...
elbarna's user avatar
  • 12.7k
1 vote
2 answers
659 views

Sftp : local is remote?

I am trying to remotely connect to University to do some maths simulations, for which I am proceeding by... ssh -X mouser@remoteIPaddress then sftp mouser@remoteIPaddress All connections ...
NeutronBlast's user avatar
1 vote
1 answer
2k views

Executing a command in remote machine and redirecting output to a local file

I am uploading a file via sftp and just performing the safety test if the file is completely uploaded to the remote server. I am taking md5 hash of both(file in local and file in remote server) and ...
Deepak K M's user avatar
2 votes
1 answer
4k views

Limiting user SFTP only to their home directory

Ubuntu 14.04 I'm trying to restrict all users of a certain group to their home directory. They should be able to SFTP to the directory and read/write whatever they like within there. I have ...
BadHorsie's user avatar
  • 141
1 vote
0 answers
461 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 ...
brclarke's user avatar
2 votes
2 answers
5k views

Chdir fails even though the user has a home directory assigned

I'm facing this problem - when I ssh to the server, the user is authenticated correctly, but then the connection is closed with: Could not chdir to home directory /home/blazej: No such file or ...
luqo33's user avatar
  • 187
1 vote
2 answers
640 views

How is OpenSSH sftp jail/chroot working?

This question is actually too broad... What I really want to know is whether or not it actually chroots and, if so, how a SSH user deamon[1] can be launched in that jail in spite of the obvious lack ...
LouisTP's user avatar
  • 35
2 votes
1 answer
1k views

vsftp doesn't respect chmod setting when uploading outside my local network

Yo! I've a ftp server on my linux machine and I've set the following rules: I keep group and owner and chmod it to 775. When I use it at home (192.168.x.x) it's ok, files keep their group and user ...
Vertus's user avatar
  • 55
0 votes
1 answer
1k views

What is the best protocol to transfer large files over WAN? [duplicate]

I am running a Debian 8 machine that has 50mb/s download and 5mb/s upload(on a good day) connection and I need to remotely upload large video files upwards of 15gb over a Wide Area Network. I am not ...
Melona380's user avatar
36 votes
8 answers
83k views

How to copy symlinks as symlinks from one machine to another?

Let's assume I have two identical systems. On the first system I've created a symbolic link. On the second one I want to copy that symlink via sftp and the symlink shall work the same (i.e if the ...
TheHidden's user avatar
  • 808
0 votes
1 answer
160 views

Is it possible to sftp to multiple machines in single sftp command? [closed]

In my case, I want to sftp set of files to 3 machines using 1 sftp command in RHEL. Is it possible?
stany's user avatar
  • 591
6 votes
0 answers
3k 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 ...
Jonas Masalskis's user avatar
2 votes
0 answers
372 views

SFTP chrooted to home directory and users wanted to have a write permission to home directory [duplicate]

I have a new request from the user and these are the following requirements Request to have an sftp user account and disable shell access Sftp User should only see their home directory (ie.. /home/...
linux-dev1's user avatar
2 votes
0 answers
4k views

scp can't upload/download files even though ssh works [closed]

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 . ...
Kossak's user avatar
  • 649
1 vote
1 answer
1k views

passing sftp commands to sftp connection in a file

How can I pass a script to an sftp connection? e.g. I make the sftp connection thus: #sftpscript.sh serverIP="1.2.3.4" sftp $serverIP So far so good. Now I have a script the looks like this: #...
IGGt's user avatar
  • 2,457
24 votes
2 answers
26k views

nmap doesn't appear to list all open ports

My rental Linux server doesn't respond to nmap the way I thought it would. When I run nmap it shows three open ports: 80, 443 and 8080. However, I know ports 2083, 22 and 2222 should all be open, as ...
Peter David Carter's user avatar
5 votes
2 answers
1k views

Why does default setfacl fail for nested directories?

I am using sftp with the internal-sftp for debian. What I'm trying to acomplish is to jail all users to a specific folder which is working fine. I also need to have a single user that has "admin" ...
rafak's user avatar
  • 53
3 votes
2 answers
3k views

SFTP clients uploading files with too restrictive rights

I have the following setup: Ubuntu 14.4 server offering SFTP service in a front-end area. External clients have the ability to upload files. A back-end process (on another server) tracks uploaded ...
Olivier Dauby's user avatar
6 votes
2 answers
2k views

Can not create SFTP user Debian 7

I have a linode and I access via ssh throw terminal. I need to create an sftp user which his default directory (and the only he can access) is /var/www/xxxxxx.com/public_html/directory Now, I did it, ...
alfreedom's user avatar
  • 193
0 votes
1 answer
114 views

SFTP package for automation

I have various SFTP automation projects that I am looking to move to Linux. I could easily script this in via Python, bash or something similar. But is there a package or something of the sort ...
Zeno's user avatar
  • 263
3 votes
1 answer
2k 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 ...
onejerlo's user avatar
2 votes
1 answer
5k views

Specify anonymous ftp password in ftp command

I would like a simple (ideally one-liner, without separate script file) command to connect to an ftp server via anonymous login using my email address as the password. My attempt is based on the ...
Daniel Naftalovich's user avatar
1 vote
1 answer
689 views

Give access to only one directory that's not user's home

In my VPS account, I have a folder /home/xyz/public_html. This belongs to a customer who now wants their in-house developer to look into the code. How do I give SFTP access to only this folder? I ...
Souvik's user avatar
  • 11
1 vote
1 answer
475 views

SFTP access to different parts of the apache webroot for different users

I have a website running on apache with the web root folder at /var/www. I have different people managing different aspects of the website. Designers accesses /var/www/images and /var/www/media ...
Ferdi's user avatar
  • 11
1 vote
4 answers
4k views

All files are not getting downloaded by SFTP script

I have a sftp file script with below details,my server folder like BCP11,BCP12,BCP13,BCP14.....BCPXX. In which BCPDUMP folder have files. Filename : file_sftp.sh #!/usr/bin/expect spawn sftp user@...
user3548033's user avatar
1 vote
1 answer
5k views

Firewall blocking SSH/SFTP connections. How to cheat it?

Hi folks (sorry for the bad english) I'm a college student, and I live in the student's house of my university. I study computer science, and there we have the right to a space in a nfs server to ...
648trindade's user avatar
2 votes
1 answer
2k 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 this ...
Shikhar Baheti's user avatar
1 vote
1 answer
6k 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 ...
Alex26's user avatar
  • 11
25 votes
2 answers
41k views

sftp - how to only copy files from folder that don't exist in destination folder

I am wondering if it's possible to get files with sftp, but prevent it from re-downloading files that already exist in the destination folder?
anthonybell's user avatar
1 vote
2 answers
15k views

How do I pass a variable into sftp?

I'm trying to match a filename to a string, which is basically a timestamp, during an SFTP connection. How do I match part of the filename? I can't seem to declare a variable within an SFTP ...
simplycoding's user avatar
1 vote
1 answer
2k views

sftp command with '\' in username does not work

The end server expects the username to come as Usertype\username@IPaddress in SFTP. For e.g. command is given as stfp Admin\[email protected]. But it does not work. Is there any other option using ...
Jagadeesh's user avatar
0 votes
1 answer
87 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 *.tar....
Emilione's user avatar
2 votes
1 answer
3k 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). ...
Alexander's user avatar
  • 131
0 votes
0 answers
1k 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: https://i.stack.imgur.com/ZlbzJ.jpg https://i.stack.imgur.com/b1X4i.jpg https://i.stack.imgur.com/CgT4d....
Tim's user avatar
  • 102k
3 votes
2 answers
4k 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 ...
Ankit Vashistha's user avatar
5 votes
4 answers
68k 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. ...
shravani's user avatar
1 vote
0 answers
37 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 ...
das Keks's user avatar
  • 171
0 votes
0 answers
3k 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 ...
alexus's user avatar
  • 986

1
8 9
10
11 12
14