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.
1,028
questions
0
votes
1
answer
1k
views
How to take back directory permission granted to a user?
I was setting up a sftp server and have given permission to the root directory to a user by mistake. Due to which I am getting following error:
sftp sshd[5234]: bad ownership or modes for chroot ...
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 ...
1
vote
1
answer
392
views
SublimeText fails to save file over sftp after apparent timeout
I am running lubuntu in a VirtualBox. In my file manager (PCManFM-Qt) I navigate to
sftp://myusername@myremotehost:/mydirectory
and open myfile.txt with SublimeText. I can edit and save this file ...
0
votes
1
answer
9k
views
sftp fails: “client_loop: send disconnect: Broken pipe”; log shows: “forced close”
sftp transfers fail in about 1/5 times and report client_loop: send disconnect: Broken pipe in my case. the sshd log shows: forced close instead of closed and files may be smaller then expected. in ...
0
votes
1
answer
666
views
Where does SFTP store partial files?
I was trying to copy a large file to a remote host using SFTP, but unfortunately the process crashed.
I'm assuming that the SFTP put command works by creating some temporary file on the remote host, ...
2
votes
2
answers
461
views
Redirect user to someone else's home folder - SFTP Filzilla connection
Created an SFTP server with chrooted users. Upon login using FileZilla users can only see their incoming/outgoing folders, basically they are jailed inside their home folders.
Now a special user "...
19
votes
3
answers
193k
views
How do I connect to SFTP with provided SSH Key?
I was redirected to this StackExchange, it is my first time here. The extent of experience I have with SSH keys begins and ends with the one time I setup the ability to push code to GitHub.
I need to ...
1
vote
2
answers
5k
views
How to download a single large file over sftp or http etc using multiple simultaneous connections [closed]
Is there a command line tool which supports both multiple simultaneous connections and multiple network protocols (ftp, http etc)?
Here is a practical example:
I have a large backup file on an ssh ...
0
votes
1
answer
2k
views
SFTP connection works from Windows (WinSCP) but not from Linux, why?
I'm trying to connect to a remote linux server using a public key (it's not my server). I was given the public key and verified that I can connect just fine using WinSCP from a PC. However, the real ...
1
vote
2
answers
1k
views
Linking local file to remote file path for FTP
I'm currently using FileZilla for FTP from my local machine to my server. Every time I want to transfer a file I have to select the file path that I want by navigating through the directory tree in ...
1
vote
0
answers
189
views
Restricting user group to specific folder in Win2016 server (SFTP)
First off, I am new to this things so my technical vocabulary may not be on par with everyone.
I have created a Windows 2016 server and installed OpenSSH SFTP server successfully. Unfortunately when I ...
1
vote
0
answers
241
views
How to authorize a key to sftp only, and only to a subdirectory?
I need to allow sftp-only access to an account on a machine, where I do not have root, so that a remote user can upload (put) files to a subdirectory, and nothing else.
Not having root-access prevents ...
1
vote
1
answer
1k
views
Lftp --newer-than is downloading empty directories
I am trying to use lftp to download only new files files from a remote sftp server to the local server
This is what I am doing:
lftp sftp://user@remoteserver
cd to the directory then:
mirror --newer-...
1
vote
1
answer
711
views
Ubuntu SFTP no longer works after server reboot
I was setting my entire LAMP server on ubuntu server 20.04 with guides from this site: https://devanswers.co/
Finally I managed to make everything work, including sftp based on https://devanswers.co/...
1
vote
1
answer
515
views
SFTP from another network?
I've been using SFTP to access and modify the contents of a Raspbery Pi web server. I'll be moving it off my internet connection and onto someone else's, and I was wondering if there is still a way I ...
0
votes
1
answer
1k
views
Securely remotely access files on a HDD attached to a router?
I'm looking for a simple but genuinely secure way to remotely access files on a hard drive attached (via USB 3) directly to my router. (Currently using ASUS RT-AX56U.)
Many routers with USB ports ...
0
votes
1
answer
100
views
SFTP-based client to auto-open files from different folder
I am working on a programming project that has multiple text-based files (.txt, .py, .sh, etc.). The files are stored on a remote server (specifically AWS EC2). I can access them with WinSCP via SFTP ...
0
votes
0
answers
853
views
Renaming a file through SFTP
I currently have a atmoz/sftp docker container setup with one user. I can create/move/delete files but when I try to rename a file I get error code 3 permission denied. This is using winscp and the ...
0
votes
0
answers
212
views
Unable to access rclone mount in Powershell
I've mounted my server using SFTP (as F: drive) on Windows 10, but Powershell can't access the drive and as a result I must open all files via Windows Explorer which loads extremely slowly.
When ...
1
vote
1
answer
305
views
WinSCP Plugin for Altap Salamander
Based on these two pages:
https://www.altap.cz/salamander/help/winscp/ui_login_sftp/
https://winscp.net/eng/docs/salamander#opening_winscp_plugin
I can see there is an WinSCP plugin for Altap ...
0
votes
0
answers
25
views
SFTP issue PAM drops session REDHAT
I'm currently troubleshooting a issue with a sftp server, users aren't able to log into the server and I don't see anything wrong with the sshd_config file. When users try to log into the service they ...
8
votes
2
answers
31k
views
How do I restrict users to sftp in OpenSSH on Windows Server?
I am working with OpenSSH downloaded from https://github.com/PowerShell/Win32-OpenSSH/releases.
My goal here is to setup an ssh server that allows sftp files transfer without ssh access. According to ...
0
votes
1
answer
345
views
Bitvise SFTP server On-upload command batch file
I am trying to get bitvise SFTP server to run a batch file once a file is uploaded Should the command just be:
cmd/c D:\DataImport\data.bat
Do I need to configure something in the working directory?...
0
votes
0
answers
157
views
cannot use sftp in case of usb tethering (NAT)
Summary:
I'm trying to connect from my laptop to my Desktop to transfer files using
sftp username@localIP but it gives me connection timeout
Case:
Both machines are using Linux and connected to the ...
0
votes
1
answer
1k
views
FTP Server file download issue
I am trying to download a from FTP server from Unix command prompt but getting "Connection closed by remote host" exception.
Same exception I am getting while trying from Window command prompt as ...
1
vote
1
answer
880
views
Sync servers using FTP
I am trying to synchronise three VPS servers. My idea is something like this:
Download all files from server A
Upload downloaded files to server B and C
This does not need to happen automatically (...
1
vote
1
answer
135
views
Meaning of ForkLift Name and BaseURL options and their equivalent in WinSCP
What is the meaning of Name and Base URL options of ForkList.
See the video https://www.youtube.com/watch?v=dtplr6LYXLs - 3:21 - 5:00?
And where are they set in WinSCP?
0
votes
1
answer
641
views
File transfer on hamachi without ftp server: is this possible?
Is it possible to transfer files with protocols like ftp on a hamachi network without any permition or requirement to a ftp server?
Thank you.
5
votes
3
answers
2k
views
SFTP from MacOS to Ubuntu does not support arrow keys, backspace, or tab completion
When using sftp from a Mac to an Ubuntu machine arrow keys, backspace and tab completion do not work. Specifically, arrows keys and backspace result in character sequences and tab just inserts a tab. ...
1
vote
1
answer
19k
views
How to SFTP without prompting password?
I am using ubuntu (release 4.15.0-72-generic).
I have written multiple shell scripts to connect to a destination Linux server using sftp. But sftp is prompting me for a password.
Is there any way to ...
1
vote
1
answer
296
views
WinSCP capabilities dialog and disk space calculation in SFTP
SFTP servers can expose disk space utilization for a device - a volume or disk, by either implementing the space-available extension or by OpenSSH proprietary [email protected] capability.
While ...
23
votes
6
answers
174k
views
Windows: Connect to SFTP server using Windows File Explorer
I require one of my client to connect to a SFTP server using Windows File Explorer.
The Explorer has an option to connect to a FTP server but not a SFTP server. In the Add new network connection ...
2
votes
2
answers
2k
views
SFTP using Ciphers and Key Exchange
Previously I was gaining access and transferring files (SSIS execute process task) with a .txt file configured as:
option batch on
option confirm off
open sftp://Username:[email protected]:22 -...
0
votes
1
answer
5k
views
About LFTP and SFTP
Hi I only know about simple FTP command, but I came to know simple command is not that secure, so i had my reseach about FTP and came across below syntax, but I cannot get what it is doing so, can ...
0
votes
0
answers
3k
views
SSH works but SFTP does not, Exit status 127
I've read a bunch of other similar questions, which suggest setting Subsystem sftp internal-sftp in sshd_config, which I did. I am able to connect to my remote machine via SSH normally, but SFTP fails ...
0
votes
1
answer
1k
views
Ubuntu 18.04 sftp user cant access /var/www
OK, I'm a Linux newbie...
I followed this tutorial https://linuxconfig.org/how-to-setup-sftp-server-on-ubuntu-18-04-bionic-beaver-with-vsftpd
My objective is to create a new user with access vía SFTP ...
1
vote
0
answers
386
views
SFTP/SSH/Filezilla connects from Windows, but not from linux
I have two networks in neighboring households.
One is 192.168.1.0-191/24 and the other one is 192.168.1.192/26.
Internet <-> (1st) 192.168.1.0-191/24 <-> (2nd) 192.168.1.192/26
Not entirely ...
0
votes
1
answer
2k
views
Why does OPENSSH try to open C:\Windows\.ssh\authorized_keys instead of user directory?
Using OpenSSH for Windows, I'm trying to set up an SFTP using the public key.
My error log shows this:
12080 2020-03-20 11:51:02.136 debug3: Failed to open file:C:/Windows/.ssh/authorized_keys ...
2
votes
1
answer
1k
views
Allow a SFTP user to create new files, but not modify or delete them
I am setting up a server to host my restic backup. The backup will be done via SFTP. During backup, restic has no need to delete or modify any files, so I decided that I would like to protect against ...
3
votes
0
answers
837
views
ssh tunneling for sftp in MobaXterm in Windows system
How to set ssh tunneling for sftp in MobaXterm?
I know PuTTY can set ssh tunneling for sftp when there is a gateway between your local computer and the remote server.
But I can not find the same ...
1
vote
1
answer
1k
views
Mounting SFTP to Files on ChromeOS using Secure Shell App but no files are showing up. Am I doing something wrong?
I've installed the Secure Shell App on my Samsung Chromebook Plus v2 and connected to the server. When I click "connect" it works and I can use the shell app to edit files with vim, but want to use ...
0
votes
0
answers
2k
views
Capturing SSH_ORIGINAL_COMMAND in script for initiating SFTP session in OpenSSH for Windows
I'd like to execute a script on Windows OpenSSH server, and then allow the execution of whatever original command was issued (most likelySFTP). On Linux, it just involves using the ForceCommand ...
0
votes
0
answers
109
views
Send files created in last minute with sftp one line?
I would like to SFTP files with a .json only files created in the last minute.
For context: the machine I'm using has no internet connection, so I cannot install additional packages through yum, the ...
1
vote
0
answers
2k
views
Identify incomplete SFTP transfers
I'm writing a shell script which would use inotify to monitor certain directories for incoming SFTP uploads. When a client is done uploading a file, the file would be handed over to another script ...
1
vote
1
answer
760
views
Create a ssh user in CentOS for FTP using WinSCP
I want to create a new ssh user for file transfer and remote access using WinSCP. I am using CentOS 7. I have created a new user with a password. Also allowed the PasswordAuthentication in /etc/ssh/...
1
vote
2
answers
2k
views
"put -r" in sftp fails with "Invalid flag"
I'm using Linux server and want to transfer some directories into another server which has Solaris as OS. when I'm connection to server using sftp and transferring it is showing error:
sftp> lpwd
...
1
vote
1
answer
2k
views
Call internal-sftp as shell call after ChrootDirectory in ForceCommand script
In my SSH / SFTP implementations, for a certain group of users, I'd like said users to be restricted to their home folders after login, and check for some other conditions before granting SFTP ...
1
vote
1
answer
3k
views
Send files with sftp then delete afterwards one line?
How can I send files using sftp then delete them afterwards?
I have managed to get this far with sending all files with a set extension from a directory,
sftp user@remote <<< $'put -r /path/...
3
votes
1
answer
2k
views
Does `git push` use ftp/sftp to send data to Github/Bitbucket?
I am trying to understand more about the internals FTP/SFTP and the underlying technologies (complete noob alert!) Like many developers I use Git and Github in my workflow, and while learning about ...
0
votes
0
answers
65
views
sftp and chroot on debian
I am experimenting with a server running Debian. It should replace my aging Apple server (and since the new Apple server is not a server anymore that is no longer an option).
So far everything goes ...