Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
48 views

ssh & sftp work with netns, but sshfs doesn’t

Here, I use netns to use a VPN, but sshfs doesn’t work properly. Here's what I tried: root@ubuntu:/mnt# ip netns exec secured sshfs -d -o sshfs_debug -p PORT USER@HOST: MOUNTPOINT SSHFS version 2.8 ...
0
votes
0answers
9 views

creating a chroot sftp user connecting to a different directory

I created a user and added it to its own group at the bottom of my sshd_config i added Match Group sftpusers ChrootDirectory /var/dir1/dir2 ForceCommand internal-sftp However, it gives ...
0
votes
0answers
27 views

Low internet upload speed in SSH [on hold]

I am facing problem with file upload speed(upload bandwidth). Although my internet upload bandwidth is 1 MegaByte/s but I am getting 60-80 KiloByte/s for uploading any files with ssh (sftp and scp) to ...
0
votes
0answers
37 views

problem listing files from sftp

I am having difficulties trying to list out files based upon file pattern with respect to files that have spaces. Below is my terminal status. What I want to do is get a list of files from a given ...
0
votes
0answers
10 views

Ubuntu SFTP upload permission

I have a ubuntu 16.04 server, where I would like to upload files only an exact folder. structure: files |_ static |_ xyz... |_ uploads I want an user to write/read only the uploads ...
-1
votes
0answers
25 views

Seamless SFTP tunneling / jump box - with chroot

Continuing a question from here: seamless-sftp-tunneling-jump-box where I asked how to tunnel an SFTP connection from a single jumpbox to machines in internal network. I have successfully managed to ...
1
vote
1answer
72 views

Restrict SFTP user to run only limited set of commands/action in Linux

How to restrict SFTP users to run only limited set of commands/actions. For users connected to shell there is a option to configure restricted shell. Once done user can run only allowed commands. e....
-2
votes
1answer
58 views

AWS transfer for sftp - Increase sftp session timeout from server

I'm using Aws transfer for sftp as sftp server, but when i connect to sftp from any client (winscp, linux, aws linux server) it keeps disconnecting after 3,4 minutes. But when i change ssh server ...
-1
votes
0answers
30 views

How can I check if a file is available on SFTP?

I'm writing a script where it should connect the remote host and then, connects to sftp and list the current day file I got to a certain point with what i wrote: #!/bin/bash key="keys/prod_key" date=...
0
votes
1answer
37 views

Host refused connection when using ftp

I need to connect to my server using FTP, but connection refuses. I have been using SFTP that is working just fine (both locally and externally). Using linux debian. I am able to login with ftp ...
0
votes
1answer
34 views

Transfer file from remote server to my server via sftp in bash script

I wanna transfer a big file (1.3G) from remote server to my server via sftp/ftp in bash script (not in separated commands). Just for instance: my server IP is 10.10.10.1 and remote server is 10.10....
3
votes
1answer
74 views

Seamless SFTP tunneling / jump box

I'm trying to set up a way for users to connect to the same gateway server for SSH/SFTP (SFTP a priority, SSH nice to have) and have that gateway server route the users to private servers inside my ...
0
votes
0answers
16 views

Starting openssh-sftp-server after installing with ipkg

The end goal is to mount a remote director via sshfs. A remote host (router) has the following packages installed: user@remothostE8:/tmp/home/root# ipkg list_installed asuslighttpd - 3.1.0.102 - ...
0
votes
1answer
100 views

SFTP over Midnight Commander still asks for a password

In linux command line, when I connect to sftp or ssh this, it connects using my public keys and doesn't ask me for a password. sftp user@host It also works when I do ssh user@host But somehow ...
0
votes
0answers
60 views

OSX SFTP with Sudo?

I have been given access to a server to do some legacy development work. The server is running RedHat Enterprise Linux 6 as its OS. To access this server, I must first SSH in with my username/...
0
votes
0answers
120 views

SSH works but not SFTP

I am working on a project for a client from which we are using multiple docker containers on a host machine. I need to copy some files from my computer to the host machine, but when using an SFTP-...
0
votes
1answer
22 views

SFTP - how to configure the path

I want to know how to configure the path of downloaded files via sftp in Linux (Centos 7.2 or 7.6). I tried to edit /etc/vsftpd/vsftpd.conf and I didn’t find any mention of a path. For example – I ...
5
votes
1answer
200 views

In what order does sftp fetch files when using “get -r folder”?

I'm doing a file transfer using sftp. Using the get -r folder command, I'm surprised about the order that the program is downloading the content. It looks like it would be selecting the files it ...
0
votes
0answers
65 views

SFTP upload directories and files to a VM

I have 2 directories and 4 files drwxr-xr-x 8 root root 4096 Jun 30 2018 apache2 <<< 📁 drwx------ 2 root root 4096 Jan 23 19:40 .ssh <<< 📁 drwx------ 10 root root 4096 Mar 12 ...
0
votes
1answer
15 views

mounting sftp with ssh-keygen: Remote execution disabled; possible workarounds, other methods

I try to configure my system so that I can mount an sftp server without my password. I tried to do this with ssh-keygen and ssh-copy-id, but got an error. $ ssh-keygen ... $ ssh-copy-id user@sftp....
0
votes
0answers
50 views

Trying to add an SFTP user without changing ownership to them

I'm running CentOS 6.9. I'd like to add SFTP users that can access certain directories. For one of them, I'd like them to be able to access everything (with SFTP permissions only and no shell access)...
0
votes
0answers
287 views

Transfer, rename multiple files using shell script via sftp

Need to transfer a file, rename it and close the connection for each file where I have multiple files using sftp. Server A - Source Server B - destination I need to transfer files form server A to ...
26
votes
4answers
2k views

Is it possible to grant users sftp access without shell access? If yes, how is it implemented?

I have an array of users who need to just upload files to their set homedirs. I think sftp would suffice, but I don't want them to login via shell. So is it possible? My platform is centos 7, user's ...
0
votes
1answer
16 views

How can I use SFTP to transfer a directory to my local PC, but make the transfered directory have a different name on my local PC?

I'm going to do a reinstall on my laptop and want to backup my .config. But the issue is that when I tried to do it I think it replaced my desktops .config because they both have the exact same path.(...
1
vote
0answers
12 views

restricting of Sftp users setup

i have created an sftp user and he is only restricted to use his own home directory but when the user connects using filezilla he still can see other users listed he cant access the other directories ...
0
votes
0answers
78 views

SFTP the latest file

I need to sftp to a remote server, find the latest file on the server, download the file, and rename the file so it's not used again. I have no control over the file naming convention, so I need to ...
0
votes
1answer
85 views

SFTP SELinux ssh_chroot_full_access

I always configured SFTP on Centos 6 like this: https://www.linuxtechi.com/configure-chroot-sftp-in-linux/ Where in the comment this item appeared: setsebool -P ssh_chroot_full_access on From the ...
0
votes
0answers
75 views

Cannot use SSH after one night

I am using CentOS 7 server. Yesterday's night, I lean using SSH and SFTP. Everything is ok. I connect to SFTP via File Zilla on macOS 10.14.3 SFTP: sftp://103.48.194.xxx user: root password: **** ...
1
vote
2answers
53 views

Finding a rogue script changing filenames?

I've got a server that is used as an SFTP endpoint and a script living somewhere else that periodically uploads to the server. At a particular time every day all the files in the upload folder get ...
0
votes
1answer
22 views

SFTP: chroot jail with different ownership

SFTP directory - /qon/app/report Ownership of the /qon/app directory is tom:qcc I cannot change the ownership to root:root as there are a lot of applications that depend on it. Is it possible to ...
2
votes
1answer
41 views

How to use bash process substitution for a sftp private key file?

With my team, we need to share a few private keys and we store them in a pass repository. So instead of extracting the key and storing it in cleartext on the filesystem, I am looking for a way to ...
0
votes
0answers
25 views

File Movement between server's that have the same case-insensitive filename

We have a table contains the file name's which are considered as inbound feed every week and one of the file name is as below File_name : FEB_MERC_DATA_??????.txt Sample inbound file which we got in ...
0
votes
0answers
69 views

Logging Chrooted Users SFTP Activity

So I'm having the issue where I can't seem to log users SFTP activity. I can see when a new session was created by a specific user, but can't see where they've been or what they may have dropped ...
0
votes
1answer
135 views

Krusader Configuration for SCP [duplicate]

A remote router is accessible via SSH: 16.04 scp copies files back and forth from the command line. ASUSWRT-Merlin RT-AC68U 384.7-2 Sun Oct 21 17:18:03 UTC 2018 USER@router:/tmp/home/root# # ...
0
votes
0answers
51 views

chroot multiple directories in linux using active directory groups

I have integrated a linux server with Active directory. I have multiple Active directory groups created sftpgroup1, sftpgroup2 and sftpgroup3. UserA is part of sftpgroup1 and sftpgroup2. I am trying ...
2
votes
3answers
81 views

Copying Hundred of Thousands Files from Remote Directory to Another Remote Directory

I have a remote directory (SSH enabled) on 11.11.11.11/:/path/from (an Ubuntu machine) that has millions of tiny .txt small size files, doing like simple ls command or even opening the /path/from/ ...
1
vote
0answers
24 views

How to troubleshoot SFTP/TFTP on Linux/Debian 7 Whitebox Switch

I am having issues diagnosing what the root of my problem is (is sftp/tftp not working due to a configuration issue on my local laptop or a configuration issue on my linux system). I have a Debian 7 ...
0
votes
0answers
66 views

linux sftp download of growing files

I am facing a problem when trying to download files through a linux sftp client when those files are growing dynamically while download is in progress. sftp server does not detect the end of file, and ...
0
votes
1answer
941 views

How to login to SFTP server using pem file which have password?

I have given below details of an SFTP server to login. ipaddress, username, password, port(8800), password protected ppk file. I tried the following command to login to server but unable to connect.(...
0
votes
0answers
39 views

Filezilla EOF SFTP Error

A router is accessible with Putty via SSH. A remote user was a to login from the command-line and scp a file. Attempts to login with Filezilla are met with errors: Error: Received unexpected end-...
0
votes
0answers
158 views

Chrooted upload-only SFTP account - what requests to blacklist/whitelist?

I'm trying to make a chrooted SFTP account which could allow only upload of files into an unique directory - ie. /upload/$timestamp. Let's imagine that it is a shared upload account where one can ...
0
votes
0answers
20 views

How to force rights on sftp share

i have a nextcloud installation on a ubuntu 18.04 where i have mounted a sftp share through the interface but when i create the files on share through nextcloud the rights are wrong. Is there a way ...
1
vote
0answers
318 views

sshd_config - StrictModes option - bad to disable?

My use case is to have a shared account for webmasters (named as domain) but only one of the webmasters is "owner" of main data and defines who can loging to the shared account via editing ...
1
vote
1answer
150 views

Trouble setting up an sftp chroot jail

I'm following the SFTP chroot wiki on ArchWiki and finding a huge snag: I can't get my sftponly users authorized. Output of tail -2 /etc/passwd (my 2 users): chris:x:1001:1002::/home/jail:/usr/bin/...
1
vote
2answers
342 views

How to get sftp to respect my umask setting

I'm trying to get sftp to give me a umask of 002 but it keeps behaving like the umask is 022. How do I get it to do that? Red Hat 7.4 /etc/ssh/sshd_config has the line: Subsystem sftp internal-sftp ...
0
votes
1answer
211 views

use chroot to lock down sftp access without root owning folder

Everything I am reading says that for chroot to work with sftp root has to own the folder. I want to make it so a user can only sftp to a sub-directory in their home folder like /home/user/some/folder....
0
votes
1answer
159 views

AIX sftp to IBM sftp server using proxy fails

We have support server where would need to upload the snap data to IBM using proxy connection. We have already whitelisted the Server IP Address on the proxy side, Tried the ssh -J proxyjump option ...
0
votes
2answers
58 views

Authenticate with a private key

Is it possible to authenticate myself with the private key at the public key? The scenario: I gave another company the public key so that I can authenticate myself with my private key at the sftp ...
0
votes
1answer
21 views

Deny specific users in VSFTPD

I have Ubuntu 18.04 LTS with VSFTPD. I want to deny certain users from connection via SFTP to my server. So far I have only found Q&A (here on stackexchange and on the internet in general) ...
0
votes
1answer
152 views

How to keep the user “www-data” when modify file logged in as root?

I gave permission to the user "www-data" in the entire contents of the "/var/www" folder. However, I work with the root user with a private key via SFTP, and whenever I modify a file, the owner of ...