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
1 vote
1 answer
107 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 ...
0 votes
1 answer
5k views

SFTP connection successful but can't transfer large files

I'm using SFTP to transfer files between a server and a node. Session from server to node is fine, there is no permission or path issue either. And between the two devices I can put/get file of size ...
0 votes
0 answers
79 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 ...
0 votes
2 answers
113 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 ...
4 votes
1 answer
236 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 ...
1 vote
1 answer
49 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 ...
0 votes
0 answers
22 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 ...
0 votes
1 answer
8k views

How to connect to SFTP server using ssh key from command line. What's the command I can use?

I am trying to connect to SFTP server with ssh key. I can't use FileZilla because we have an additional layer of security which doesn't allow me to use Filezilla. I have copied the ssh key over the ...
66 votes
3 answers
95k views

Using SCP or SFTP with my SSH config file?

I'd like to connect and upload a MySQL dump file via terminal using SFTP or SCP to my remote server using my SSH config file. According to the documentation I've found, I should be able to do this: ...
19 votes
6 answers
48k views

Command to copy client public key to Windows OpenSSH SFTP/SSH server authorized keys file

I have a Linux machine, and I need to sftp to a Windows SFTP server. So for first step, I create my own id_rsa file and the id_rsa.pub in my Linux machine. Then I copy the text in the id_rsa.pub into ...
1 vote
1 answer
4k views

Unable to connect via SFTP2 using SSH Tectia Client

I have been using SSH Tectia Client for SSH and SFTP to my UNIX machine. There is not private authentication added for this profile. Recently, this machine OS has been re-imaged. So, the host-key has ...
0 votes
4 answers
5k views

Redirect user to dir upon SFTP connection

I have an FTP user which i log in into the server via SFTP and a key file. Right, lovely, works like a charm. Now, by default the user logs to /home/ftp which is not cool. I'd like to know if there ...
11 votes
5 answers
10k views

Get file from remote over ssh, with simple "get file"?

Is there a way to get a file from a remote server you are connected to via ssh, by simply running a command like get file within the ssh session? Is there a method, or pre-existing tool, to do this? ...
3 votes
4 answers
23k views

Why do I get a “Connection to [host] closed by remote host” error over SFTP connection?

I'd like to connect as user to a remote host through SFTP. Moreover, I'd like to land into a specific directory (say /home/user/dir). I've created user with default working directory as /home/user/...
0 votes
1 answer
4k views

How to create an SFTP folder shortcut in Windows Explorer?

I'm currently running a Windows Server 2012 VM in Windows Azure and I need to create a shortcut in Windows Explorer for a remote Ubuntu SFTP server. Usually I can just connect to "mywebsite.com" in an ...
278 votes
11 answers
746k views

How do I get an entire directory in sftp?

I'm just learning to use sftp, and I want to copy a directory from the remote computer to my local computer. If I try get [directory] it gives me this error: Cannot download non-regular file: /home/...
0 votes
3 answers
2k views

Unable to Connect to SFTP with Public Key

We use Copssh and we are having an issue getting Public Keys to properly work when connecting our SFTP. I've looked up as much as I could related to permissions, steps, etc. but I get a "Server ...
1 vote
1 answer
9k views

How do I setup ftp/sftp on aws

I want to shares files with a client over the internet and am looking into ftp solutions on aws. I have tried aws sftp, but setting role policies is awkward and the service seems a bit costly for my ...
0 votes
0 answers
40 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 ...
0 votes
3 answers
2k views

Move all files in local directory to remote SFTP directory

I want to move all files in local directory to remote directory. And I am using this code to achieve it SOURCE_FILE=/var/www/oneserver/* TARGET_DIR=/var/www/anotherServer ARCHIEVEFILE=/var/www/...
0 votes
1 answer
432 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 ...
1 vote
0 answers
94 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, ...
0 votes
1 answer
7k views

Failed to download files from a remote machine using MobaXterm

I am connected to a local VM linux machine using MobaXterm SSH with no problems. The problem is I am not able to download files from that machine. MobaXterm shows that dowloading is in progress, but ...
4 votes
1 answer
4k views

Tab Auto-Completion in Mac OS X when using sftp in terminal

i have been getting very frustrated lately since the readline functionality has been removed from MacOSX and Tab Auto-Completion doesn't work anymore. So i was wondering if anyone knew a good ...
1 vote
1 answer
4k views

Access /var/www/html/website symbolic link from home user folder

I have a VPS OS: ubuntu 15.04, in which i have one website in /var/www/html/WEBSITE /var/www/html/WEBSITE have www-data:www-data as user:group I created a symbolic link with ls -s /var/www/html/...
1 vote
1 answer
15k views

SFTP: Connection closed

I'm trying to connect via sftp to my Synology NAS 215j running sftp server. The sshd works great for root user, but when I do sftp as root, I'm getting Connection closed just after typing correct ...
0 votes
0 answers
92 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 ...
11 votes
1 answer
45k views

How to find public key of the server using any SFTP/SSH client

Is there any way to get SFTP server's public key from any Sftp client or by using any tool? I have access (username/password) to connect to production SFTP remote server and I would like to find the ...
12 votes
4 answers
50k views

Configuring an SSH tunnel with FileZilla

Is there any way to configure FileZilla on Microsoft Windows so that it connects to an SFTP server through some SSH tunnel? E.g., with WinSCP, I can do the following: I don't want to have to launch ...
0 votes
1 answer
151 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]...
0 votes
0 answers
32 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 ...
1 vote
1 answer
4k views

sFtp with key authentication prompts password

A newbie about sFtp and and authentication via key files. Here is my problem; 1- I have an .p12 certificate(provided by the host owner); which I used openssl to extract my private key(.pem) file out ...
0 votes
2 answers
7k views

sftp limit user to directory

I need to limit sftp for a user to a certain folder. So far I have followed this tutorial to the letter: http://shapeshed.com/chroot_sftp_users_on_ubuntu_intrepid/ It works in the sense that I can ...
1 vote
1 answer
4k views

XBMC unable to connect via SFTP to server

I have a raspberry pi xbmc server set up at home that I use to stream videos over my local network, but I'd like to be able to stream videos over the internet. I am able to SSH and SFTP into my ...
0 votes
2 answers
5k views

SFTP server for Windows with its own users and folders?

anyone knows if there's a SFTP server for Windows, with these features? 1. sftp users db is separate from windows users (preferably a simple text file with user/password pairs or some kind of db with ...
0 votes
2 answers
260 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 ...
1 vote
1 answer
473 views

SFTP connection hangs on "SSH2_MSG_KEXINIT sent"

I am struggling to connect via SFTP to my AWS test account from my on-prem server. When I cd into the directory where my private ssh-key and run sftp -v -i <private_key_file> <client>@<...
0 votes
0 answers
56 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 ...
0 votes
2 answers
17k views

bad ownership or modes for chroot directory "/var/www"

I am getting following error in auth.log when trying to connect to site using SFTP. fatal: bad ownership or modes for chroot directory "/var/www" ls -ld of this directory shows this: drwxrwxr-x ...
3 votes
2 answers
8k views

Failed to connect to SFTP on Windows Server

I used this guide to install OpenSSH from WinSCP's website. I used the msi installer that is listed on the github page https://github.com/PowerShell/Win32-OpenSSH/releases. The server seems to be ...
5 votes
4 answers
36k views

Copy file on SFTP to another directory without roundtrip

I tried this, but of course it doesn't work: sftp> cp baz.txt foo/bar/ Invalid command. Is there a way to do that with an sftp connection? Of course, I realize that this is trivial if I connect ...
0 votes
1 answer
3k views

Error "Software caused connection abort" that doesn't appear when using hotspot?

I'm trying to connect to a server through FileZilla via SFTP, but I encounter a problem. Logs: 14:07:10 Status: Connecting to 178.62.11.187... 14:07:11 Trace: CControlSocket::SendNextCommand() ...
3 votes
1 answer
6k views

How to install public key in host windows server 2012

My user from another server gave his public key to me and asked me to install this public key into my server so he can connect to my server. Did some research and I have to create a directory called ....
3 votes
2 answers
6k views

Error executing sftp with curl

I'm using IBM's Data Explorer to import certain data, but am getting this error: Protocol sftp not supported or disabled in libcurl. So from Red Hat I manually ran the command: curl -user sftp://...
1 vote
1 answer
121 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 ...
0 votes
0 answers
104 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 ...
1 vote
1 answer
126 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 ...
1 vote
0 answers
219 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 ...
1 vote
1 answer
5k views

Does SFTP put operation have size limit?

I use SFTP to transfer file from local to remote Linux machine. However it fails. I tested it and come to a conclusion that, when transfer file is bigger than testScp.txt1, it fails and the machine ...
4 votes
1 answer
3k views

Can't write or download to SFTP on Ubuntu Server 10.04

I'm having a problem setting up SFTP with an Ubuntu Server 10.04 LTS x64. I use openSSH with public key authentication, I can login with SSH perfectly with the keys no problem. I can also connect to ...

1
2 3 4 5
21