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.

0
votes
0answers
12 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
29 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
19 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
58 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
14 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
131 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
28 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
11 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....
-1
votes
0answers
30 views

How to get return value of open sftp command

How do I get the return value of below unix statement open sftp://ftpssh.xyz.com user ams abc@2019 Actually, I want to know whether connection is successful or not.
0
votes
0answers
44 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
81 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
15 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
26 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
39 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
45 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
48 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
16 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
34 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
21 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
38 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
58 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
28 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
78 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
21 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
37 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
185 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
18 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
71 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
18 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
139 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
100 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
205 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
104 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
91 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
56 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
20 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
135 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 ...
0
votes
0answers
81 views

sftp get not working as expected

I'm trying to download a folder from a remote server to my local server but I'm getting unexpected results. I used this to sftp: $ sftp -P [the_port] user@remote_ip this got me into the server. I ...
9
votes
1answer
183 views

sshfs: chroot all non-root users to specific directory

On a server I need unrestricted ssh access for root, and restricted for all other users. I would like to restrict all non-root users to: no ssh login only allow mount /mnt/data/ using sshfs I see ...
-1
votes
1answer
72 views

How consider home folder as root folder?

I create users who each have their own home directory, normal. Currently I create my user as follows: adduser -d / home / ftp / myUser myUser My users need to connect to SFTP (open ssh installed on ...
0
votes
1answer
52 views

Is there a way to trigger a script on sftp session exit?

I'm looking for a way to start a shell script after a sftp session exited. Is it possible to trigger /home/user/.bash_logout via sftp, how does it work? I tried to set RequestTTY force in ~/.ssh/...
1
vote
0answers
30 views

Unintentional bandwidth throttling — where else to look?

This is embarrassing, but I seem to have inadvertently set a persistent bandwidth throttle on SSH connections from my Ubuntu machine. When transferring files from a remote server via scp, sftp, or ...
0
votes
1answer
38 views

SFTP - give one user in SFTP Group special temporary access

I've set up a SFTP server and the group "sftponly" and they are all chrooted to the same dir. I'd like to give one of those user exclusive access to a specific folder for a short time. Can that be ...
1
vote
2answers
1k views

SFTP mget and get command to copy multiple folders or files to one server directory

I needed to copy multiple folders of same directory using one command. So I did this first, sftp >mget -r folder1 folder2 This command copied folder1 to the destination server but renamed it to ...
0
votes
0answers
86 views

QEMU: How to set up SSH File Exchange (SFTP) between Linux Host and Windows Guest?

Assumed I run a isolated virtual network bridge without public internet access (based on this solution): How can I set up a SFTP file exchange (e.g. via WinSCP) between guest machine and host machine ...
1
vote
2answers
454 views

How to get counts of the files present in remote directory using sftp command

I have a sftp server (Dbprd@101.102.130.23) .I am trying to connect to the below sftp server and search for the files which contains .txt in (/files/base/incomming) path and get the count of lines in ...
0
votes
1answer
77 views

Problem with SFTP on Arch-ARM

I have installed Arch ARM on a Raspberry Pi 3 and created a new user. Pretty much everything is working; I have copied my public/private keys and can ssh into Arch on the Raspberry Pi. NOTE I am only ...
1
vote
1answer
206 views

Using korn shell to compare local and remote MD5 over sftp

I am in need of creating and checking checksums between a local file, and the remote file I just pushed. If the MD5 checks, continue, else break. This needs to be in KORN shell scripting because we ...