Skip to main content

Questions tagged [sftp]

The SSH File Transfer Protocol, (sometimes called Secure File Transfer Protocol, Secure FTP), or SFTP, is a network protocol that provides file access, file transfer, and file management functionality over any reliable data stream.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

WinSCP.SessionRemoteException: Server unexpectedly closed network connection || Timeout error

We have a functionality where files are transferring from server1 to SFTP server without any issue. It is using WinScp.exe utility to copy the files. In other environment, when files are copied from ...
surya's user avatar
  • 1
1 vote
0 answers
57 views

Why does the umask not change as expected in Ubuntu 24.04?

When I create a directory or a file in my website directory (/var/www) with sFTP on Ubuntu 24.04 the chmod is 775 for directories and 664 for files. I would like the permissions to be 755 and 644. I ...
Matthijs's user avatar
5 votes
1 answer
208 views

Variable of a space-containing path causing issues in WinSCP commandline

I'm trying to automate some WinSCP SFTP transfers in a PowerShell script, while still keeping a lot of the relevant data stored in variables. $outFileName = Split-Path $outFile -Leaf $outFilePath = ...
glueckgabi's user avatar
0 votes
0 answers
40 views

Mount SFTP directory in NFS Share

Here's my issue : I have setup an SFTP with chroot directory is /sftp/usersftp In this chroot directory i have two subdirectory IN/OUT On the same serveur i had created a user with $HOME=/data/...
Kain Taozia's user avatar
0 votes
0 answers
21 views

Cygwin SFTP connection closed after PubKey authentication when Match User is set up in sshd_config

I have problem during configuration of Cygwin sftp server on Windows Server. When I'm trying to change root directory of one user with Match User I got "Connection closed" after sftp to this ...
Hubert Lubaś's user avatar
0 votes
1 answer
65 views

Ubuntu SFTP Server Permissions

I'm trying to create a SFTP server using Ubuntu Server 24.04 LTS, and I'm having trouble copying to the folder I created: The sshd_config sets ChRootDirectory to \sftpsrv, which is a mounted disk ...
SIMOES's user avatar
  • 9
0 votes
1 answer
58 views

opkg install openssh-sftp-server is not working in openwrt 22.03.0-rc6

Using OpenWrt 22.03.0-rc6 r19590-042d558536 on a: Package architecture Target Subtarget Brand Model Version mipsel_24kc ramips mt76x8 GL.iNet GL-MT300N v2 I ...
Jonathan Eduardo Tito Ontaneda's user avatar
0 votes
1 answer
28 views

scp not working in a custom python shell script after migration from ubuntu 20.04 to debian 12

I have this backup server where various clients upload daily archives via scp. In order to protect the machine and to manage the backups, I have written a simple python shell script that only allows ...
velis's user avatar
  • 575
0 votes
0 answers
21 views

SFTP: Pull files from remote host without directly knowing that they are there?

I'm sure someone has encountered a similar problem to mine before but I can't seem to find a solution by myself: There are two Debian hosts - one within a DMZ, the other within a secure environment. ...
kandreijewsky's user avatar
0 votes
1 answer
43 views

SSH key works for FileZilla and Windows CMD, but not PuTTY

I upgraded Raspbian on my 6 Raspberry Pi units from Bullseye to Bookworm by: Updating /etc/apt/sources.list. sudo apt update sudo apt full-upgrade I didn't change anything in the upgrade. The ...
Sawtaytoes's user avatar
0 votes
1 answer
45 views

How can I configure OpenSSH to forward SFTP-Requests?

I have a two-server setup in which one is only reachable via the other. The corresponding client config looks like this: Host <actual_host> User root ProxyCommand /bin/bash -c "ssh ...
Shade's user avatar
  • 11
0 votes
0 answers
91 views

ssh_host_rsa key with two sshd configurations

I have a system on which passwordless SSH and SFTP has been working for years, no issues. I now have an important application that needs SFTP, but the hitch is that this application does not currently ...
Dennis 's user avatar
  • 151
0 votes
2 answers
144 views

How to Block File Manager Application from Connecting to SFTP Server

Operating System : CentOS Linux 7 (Core) File Manager : Thunar 1.6.16 Trying to achieve : Users should not copy files to other servers via SFTP. But the blocking mechanism should not block users ...
Arun's user avatar
  • 545
4 votes
1 answer
325 views

CURL fails with exit code 18 for SFTP with just few bytes remaining for file sizes less than120KB , but not when I add strace to sshd

There is weird issue with curl in Amazon Linux 2 server. It fails with exit code 18 with just about ~1MB bytes to read. So to troubleshoot the issue, I have setup local SFTP server. so my curl command ...
GP92's user avatar
  • 297
0 votes
0 answers
29 views

Tmux session disconnect does not preserve session content when reconnecting

I need to copy a 200gb+ file to multiple servers from one server. I have a sftp transfer running in multiple tmux sessions from the one server. When I press ctrl+b, d to exit the tmux instance and ...
user460178's user avatar
1 vote
1 answer
76 views

Solaris shd_config file resets after restart of ssh - how to prevent this?

How do i avoid this happening, i need the sshd_config file to contain Subsystem sftp /usr/lib/ssh/sftp-server oot@uln-pca-oracle-solaris-11-2023-10-16fqbbqv:/export/home/opc# echo "Subsystem ...
Ray's user avatar
  • 111
1 vote
1 answer
358 views

lftp for sftp is not working; stuck on `ls' at 0 [Connecting...]

I am having an issue with lftp where it gets stuck on `ls' at 0 [Connecting...] for an SFTP connection. Versions: Linux 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 4 14:55:32 EST 2024 x86_64 x86_64 ...
user3152289's user avatar
0 votes
0 answers
90 views

How to keep PSFTP from closing the window?

When I'm using PSFTP, if I let the connection timeout, the server will automatically close the connection. When this happens, any key press will cause the PSFTP window to close. Is there a way to ...
Sean Worle's user avatar
0 votes
1 answer
1k views

Windows Server 2022 openssh sftp change default directory

Windows Server 2022 Installed optional feature OpenSSH Server With FileZilla I connect to server as MyUser which opens to /C:/Users/MyUser/ which is the default directory. But what I want is for the ...
BaltoStar's user avatar
  • 189
1 vote
0 answers
154 views

Make sftp-server return a banner/disclaimer

I am deprecating sftp access in favor of a restricted ssh based API. I need the sftp-server (OpenSSH) to return a fixed message "SFTP access will be shutdown soon", preferably on STDERR, ...
oᴉɹǝɥɔ's user avatar
0 votes
0 answers
165 views

FileZilla stopped using keys from ssh-agent on macOS

I recently set up SSH access to my web servers on my Mac by following GitHub's documentation for Generating a new SSH key and adding it to the ssh-agent. After that, I installed FileZilla and the ...
kataba's user avatar
  • 11
0 votes
1 answer
337 views

SCP from server to local host failed

I am sure I was SCPing some files TO the server before, but now it does not work in opposite direction. I'm using: $ scp -v mysrv:/home/XXX/dir/app.rb app.rb.bak Authenticated to mysrv ([88.88.111.11]...
A.D.'s user avatar
  • 563
0 votes
0 answers
40 views

Looking to SFTP to a system which a client can access on a subdomain and forward that to their own backend servers

I am looking for a solution where I can setup a main "SFTP" forwarding server and send it to the relevant clients SFTP backend details so they get "forwarded" on sucessfully. It's ...
JasmeowTheCat's user avatar
0 votes
0 answers
66 views

Where does KNetAttach store connections?

I am trying to restore old ftp and sftp connections from old Kubuntu instances. They were set up using the "Add Network Folder" link in Dolphin which is apparently using knetattach to ...
Michael Scheffenacker's user avatar
1 vote
1 answer
169 views

Run SFTP client as "NT AUTHORITY\SYSTEM" in a scheduled task

I have set up a script to get some data into files and then upload them to a SFTP server. I have the command SFTP -i \path\to\.ssh\id_rsa -b \path\to\ftpcommands [email protected] the sftp ...
Andy T's user avatar
  • 13
0 votes
0 answers
129 views

How to download files to SFTP folder in Brave?

I am using Brave on Arch linux with Gnome and when I want to download files on a SFTP folder (mounted via gnome GUI). I manage to start the download process and I get the saving location dialog as ...
Aspiring Soot's user avatar
1 vote
0 answers
334 views

Add read-only user to a specific folder of an existing sFTP server

I have set up an sFTP server with a group sftp_only. The users belonging to this group can read everywhere within the folder structure /srv/sftp/project_data/ I used to add a user via the following ...
sylar_80's user avatar
  • 111
1 vote
1 answer
155 views

WinSCP gives a '/tmp' directory error while saving a changed file

Even when I'm logged in as a root user to my remote Ubuntu 22.04 server thru WinSCP 6.1.2, I get this error when I save a changed file (even though I found that the changes made by me are saved in ...
Bathinda Helper's user avatar
0 votes
2 answers
537 views

Can I access an SFTP server via an SSH tunnel?

I have a Linux server with IP 1.2.3.4 which can access an SFTP server 2.2.2.2. The SFTP only allows access from the IP 1.2.3.4. Now I also want to access the SFTP server from my Windows computer using ...
me.at.coding's user avatar
  • 1,587
1 vote
1 answer
1k views

How to avoid getting password prompt while using SFTP?

Need some help on an sftp code I am working on. I added the public key of my user@local_host to the remote_user@remote_server. The key is added to the .ssh/authorized_keys on remote server. What I ...
user avatar
0 votes
2 answers
1k views

scp -O (legacy protocol) option per config file?

I basically have the same problem as described (and solved) here: https://stackoverflow.com/questions/74311661/subsystem-request-failed-on-channel-0-scp-connection-closed-macbook This is: scp to some ...
Heiko Finzel's user avatar
0 votes
1 answer
282 views

Use WinSCP or any other program (cmd) to download from SFTP [closed]

How to use WinSCP or any other program (from command-line) to download files from SFTP with authorization key? This is for Windows versions 10 and 11. I am trying to download files from command prompt ...
Codename K's user avatar
0 votes
0 answers
119 views

Remove BOM mark in sftp username when using openssh

I'm running an SFTP server using openssh 1:8.9p1-3ubuntu0.1 on Ubuntu 22.04. A reoccurring issue with connecting clients is the username is prefixed with \357\273\277 one or more times. This is a UTF-...
kmiller's user avatar
0 votes
0 answers
123 views

lftp in shell script fails with "pseudo-tty allocation failed" only when run via cronjob

I am trying to create a shell script which copies a file to a foreign server using SFTP (because SSH is not available on the foreign server). The script works as expected when run via console, but it ...
Jan's user avatar
  • 101
2 votes
1 answer
787 views

sftp rename (mv) with wildcard

I use sftp to download files from a server nightly. Presently I batch download them with this sftp script: chmod 444 /home/sftpserveruser/.HL7 get MTB.HL7 /data/hl7/downloads/mtb/ I'd like to be able ...
a coder's user avatar
  • 483
0 votes
1 answer
146 views

Blocked server, SSH: How to revert the situation

I tried to use SFTP using sudo to make changes in a file, following instruction: Adding this line was a fix for me and comment the existing subsystem line: /etc/ssh/sshd_config: Subsystem sftp sudo -...
Michal Zielarz's user avatar
1 vote
1 answer
122 views

When using script for WinSCP it opens another folder

I am trying to automate process of downloading files from SFTP server using WinSCP. But I am having issues with the execution of one part of the code. When the connection is established instead ...
Ivan Aksentijevic's user avatar
1 vote
0 answers
317 views

curl sftp uploads empty file without error

How can I solve or better troubleshoot the following problem? I need to upload a text file using curl via sftp to a remote server. Authentication works, no error returned, but the file is created ...
Anton Yaniuk's user avatar
0 votes
0 answers
33 views

sftp connection from one server to another server [duplicate]

I want to connect to a sftp server from another sftp server.How do i do that.After i connect to a sftp server,at the sftp prompt i would need to connect to another sftp server.How can that be done and ...
Ritwik Mohapatra's user avatar
1 vote
1 answer
1k views

How do I get Windows SFTP (OpenSSH) users a unique directory for that user [duplicate]

I have a Windows 2019 server set up with OpenSSH version 7.7: $ ssh -V OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 I want to give each user their own directory; I have a user [fti] and want them ...
Velocedge's user avatar
  • 141
0 votes
0 answers
275 views

sftp user connection error Debian 11

I setup an sftp server following this guide and created a user sftpuser; https://citizix.com/how-to-set-up-an-sftp-server-on-debian-11-server/ It did work originally when connecting via ftp program ...
matrixebiz's user avatar
0 votes
2 answers
336 views

Secure transfer with ProFTPD - speed difference between sftp (OpenSSH secure file transfer) and scp (OpenSSH secure file copy)

After quite some network setting debugging on a EL8 Linux system, I found that the bottleneck with secure SFTP transfer actually was the CPU. The strange thing is that there are different transfer ...
mve's user avatar
  • 51
0 votes
0 answers
387 views

Outbound message too long when uploading files to apache sshd sftp server

The following error is thrown while trying to upload files (>=500KB) from linux sftp client to an sftp server implemented with apache sshd. Outbound message too long 262197 The same server works ...
Jonny Marotte's user avatar
0 votes
1 answer
430 views

How to allow Linux PAM Authentication for non-Local users

I'm trying to implement a SFTP server on Ubuntu where the users should be authenticating via an external identity provider (they provide a REST API to validate user credentials). I've done a POC using ...
Jonny Marotte's user avatar
1 vote
1 answer
919 views

How to run concurrent (parallel) downloads with lftp?

lftp supposedly supports downloading mutliple files concurrently using get -P: From the NEWS file: Version 4.8.0 - 2017-07-10 ... * get/mget/put/mput: add -P option for parallel transfers and long ...
Zilk's user avatar
  • 346
0 votes
1 answer
228 views

Is there a way to tell if my key pair is an OpenSSH keypair? [duplicate]

Our Oracle service is migrating servers to the Oracle Cloud. We need to change the host for our SFTP access. "The authentication via your SCP login name and SSH2 keys remains the same if your ...
Sarah Harrison's user avatar
0 votes
0 answers
106 views

SFTP won't launch when using custom script through ForceCommand on Win32 SSH

I've written a script to send an email alert when a user logs in via SSH. It is triggered through ForceCommand. This works fine when opening terminal windows but SFTP won't work (Bitvise log says &...
Mark Williams's user avatar
0 votes
1 answer
260 views

Http proxy server for unit test to connect to sftp through java

I am successfully able to connect to sftp over http proxy using paramiko library in python using ncat —proxy command Now I want to test it using java junit test. I am able to successfully create ...
abhishek bhardwaj's user avatar
0 votes
0 answers
32 views

Unable to connect to SFTP server using a Public IP address [duplicate]

I have setup a SFTP server on my Personal PC. I have started the service with the following configuration: # This is the sshd server system-wide configuration file. See # sshd_config(5) for more ...
Arjun Starz's user avatar
2 votes
0 answers
140 views

Provide SFTP access to all users to mounted s3fs directory on EC2 instance

I have created 10 SFTP users on the EC2 instance and I am able to login to the server. I have an SSH key for all users for authentication instead of a password. I am mounting the s3 bucket to one ...
Wagh's user avatar
  • 121

1
2 3 4 5
21