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,039
questions
280
votes
11
answers
757k
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/...
199
votes
5
answers
220k
views
What's the difference between SCP and SFTP?
Usually, I use the scp command to transfer files on *nixes.
What's the difference between SFTP and SCP? Don't they both work on SSH?
66
votes
2
answers
98k
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:
...
50
votes
3
answers
49k
views
FTPS versus SFTP versus SCP
I would like to know exactly what the difference is between the following protocols:
FTPS, SFTP, and SCP. For instance Unix has an scp tool, FileZilla offers FTP and SFTP,
whereas JetBrains PhpStorm ...
37
votes
1
answer
50k
views
Notepad++ and sFTP Support
Anyone knows of a sFTP plugin for Notepad++ ? I just checked FTP_syncrhonize and it doesnt support sFTP. (please no "use filezilla/winscp/putty" answers).
34
votes
6
answers
219k
views
sftp: upload all files, directories and sub-directories contained in a folder
On machine A I have the folder
/home/a/
On machine B I have the folder
/home/b/
I wish transfer all files, directories and sub-directories of /home/a in /home/b with sftp
On machine A I tried the ...
33
votes
4
answers
162k
views
How do I use my keyfile to sftp transfer data from one server to another
I cant scp, the other server only takes sftp connections.
Currently, I am trying to do
sftp [email protected]:/files> put -r ~/
-i keyname does not work, just resolves with illegal option -- i....
31
votes
3
answers
32k
views
sshfs is failing with "remote host has disconnected"
I'm running sshfs with the following:
sshfs [email protected]:/var/www/myapp /home/basicuser/code -o sftp_server="/usr/bin/sudo /usr/libexec/openssh/sftp-server"
I have also created RSA keys ...
30
votes
3
answers
142k
views
Connect to server using SFTP and a public SSH key using FileZilla on Windows
Is it possible to generate an SSH key on a Windows machine and then use that key to connect to a server using SFTP via FileZilla?
This is all working with my Mac, but I have a client that is stuck in ...
29
votes
7
answers
156k
views
No supported authentication methods available in FileZilla
I'm using FileZilla to connect to my SFTP server. But when I'm trying to connect, it gives me this error
Error: Disconnected: No supported authentication methods available (server sent: ...
24
votes
6
answers
192k
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 ...
24
votes
2
answers
38k
views
permission denied on AWS Transfer on SFTP server
I can log into my server with cyberduck or filezilla but cannot read my homedirectory. s3 bucket "mybucket" exists. In cyber duck I see
"Cannot readdir on root. Please contact your web hosting ...
24
votes
2
answers
28k
views
Getting `sshfs` working on WSL or finding an alternative
My university's CS department has its own server used for development (from here on out, dev.univ.edu). I have SSH and SFTP access to this server, and I was hoping to do some heavy work on my Windows ...
23
votes
5
answers
46k
views
Windows SSH server refuses key based authentication from client
On Windows 10 1809, I have enabled the in-built SSH server, and have configured it.
On another machine, I have used WinSCP and PuTTy generator to generate an authentication key. I copied the public ...
23
votes
2
answers
70k
views
why is sftp rmdir not working?
I'm trying to remove a directory with lots of files and folders from my private server space. I'm logging on via SFTP fine; I can access the entire directory no problems; I can even delete individual ...
22
votes
2
answers
19k
views
FileZilla on Mac OS X can't open .ssh directory to get my keyfile
I'm trying to log on to my Amazon EC2 cloud server instance with FileZilla,
To do this I need to specify a keyfile for SFTP over SSH,
However, FileZilla in OS X can't open files in hidden ...
20
votes
3
answers
221k
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 ...
19
votes
6
answers
53k
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 ...
17
votes
7
answers
20k
views
SFTP as a folder on Vista
Is there a program available for Vista, that allows me to set up a folder as an SFTP connection to a remote server?
The use case is to have a folder on my desktop, where I can drag/drop/edit files ...
16
votes
3
answers
19k
views
SFTP over double server hop
I'm trying to work out a method to allow me to access files on an SFTP server than I cannot access from my local machine. Currently, I have to SSH to a remote server (it is in a certain IP block that ...
14
votes
5
answers
19k
views
Must I sftp to an intermediate server?
I can't sftp directly into a particular host. To move a file from my home machine to the host, I must sftp a file to an intermediate host; ssh into the intermediate host; and sftp the file to the ...
14
votes
1
answer
120k
views
What is the meaning of the "spawn" command in Linux (Centos6)
I need to know how to set up a cron job that automatically connects to a remote server, then changes to a directory and downloads all the files in that directory to local.
I think I have to use SFTP ...
13
votes
3
answers
47k
views
How can I see if users are logged in over sftp?
I run a linux file server for my office and we user SFTP for remote partners to login and download files. Is there a way to see if there are any active connections or logins so I can know when it is ...
13
votes
3
answers
6k
views
NetBeans IDE 6.9[.1] - Upload files on save - re-enable for session
Periodically, when I am saving files, I get the error dialog Upload files On Save failed. Disable this functionality for this session?. Sometimes I accidentally select 'Yes'. How can I re-enable that ...
13
votes
4
answers
14k
views
Command line history & tab-completion for sftp in OS X Terminal.app
I use Terminal.app constantly. When connecting via ssh to remote *nix systems, I can continue to use tab to complete command names and arrow-up/down to navigate the command history. However, with sftp ...
13
votes
1
answer
31k
views
Which internal-sftp options are available?
I had to create a chroot environment in a RHEL 6 box and I used the internal-sftp server of OpenSSH. The following OpenSSH configuration lines are working:
# override default of no subsystems
#...
12
votes
4
answers
24k
views
Is it possible to rate-limit an scp/sftp/rsync/etc transfer from the command-line? ie, manual QoS on a single command?
Specifically, I am looking to rate-limit an scp or sftp session (or other arbitrary network call) in the call itself.
For example, let's say I want to copy 100MB to one server, and 1GB to another. I'...
12
votes
1
answer
17k
views
chrooted sftp user with write permissions to /var/www
I am getting confused about this setup that I am trying to deploy.
I hope someone of you folks can lend me a hand: much much appreciated.
Background info
Server is Debian 6.0, ext3, with Apache2/...
12
votes
5
answers
33k
views
Edit-text-files-over-SSH using a local text editor
I am working in various Linux and UNIX environments.
I'd like to elegantly solve the problem of editing remote configuration files over SSH. Instead of using terminal editors (nano), I'd like to open ...
12
votes
4
answers
51k
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 ...
11
votes
5
answers
13k
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? ...
11
votes
4
answers
42k
views
where does the "get" command in PSFTP (PuTTY) save the file?
I'm used to running ssh on a Unix command-line and am working for the first time with PuTTY on Windows. When I type
get file.txt
on the PSFTP command line, where does file.txt go? PSFTP returned:
...
11
votes
1
answer
48k
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 ...
11
votes
4
answers
5k
views
Need a non-GUI SFTP tool better than "sftp" [closed]
'sftp' is seriously lacking relative to, say, ncftp: it has no command memory, no Tab-completion of file names, and so on. Is there a non-GUI tool for SFTP that people recommend?
11
votes
2
answers
7k
views
Using sftp like scp
As OpenSSH guys said "The scp protocol is outdated", it's time to think about post-scp days.
However sftp seems to be designed to interactive operation.
Is there good way to use sftp command like scp?...
11
votes
2
answers
56k
views
FileZilla: Transfer file remote server to remote server from a local computer
Using FileZilla, is it possible to transfer files between two remote servers (say Server A and Server B) while accessing them from a local computer (say computer C)?
The way I currently do is, using ...
10
votes
3
answers
40k
views
SFTP ChRoot result in broken pipe
I have a website that I want to add some restricted access to a sub-folder. For this, I've decided to use CHROOT with SFTP (I mostly followed this link : http://shapeshed.com/...
10
votes
3
answers
10k
views
How can I set in the bitvise ssh client, the tunnel automatic connect if open windows or restart windows?
Now the tunnel works if I open the bitvise application and click the login button. I want to change that. I want the tunnel automatic open if open windows or restart windows
Where I can set the ...
10
votes
1
answer
42k
views
How can I setup the openSSH SFTP server on Linux?
I want to configure sftp-server to share a directory but I don't know how to modify /etc/ssh/sshd_config.
My requirements are:
1) Login shall not use certificates, only password (i.e. authorization ...
9
votes
2
answers
33k
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 ...
9
votes
1
answer
19k
views
lftp - mirror and wildcards
Is there anyway to use wildcards ("*") when using mirror command? I know there is a mget command, which is simply the same as get, but one can use wildcards with it. Is there something equivelant to ...
9
votes
3
answers
34k
views
Accessing SFTP folders transparently in Explorer on Windows 7
One feature available on Linux (using Nautilus from Gnome) that I really like a lot is the ability to access remote servers via SFTP just by typing sftp://server/folder and saving those as bookmarks.
...
9
votes
3
answers
8k
views
Secure remote editing of root-accessible files over SSH
As per security best practices one should not allow root login over SSH with password or keys. Instead, sudo should be used.
However, if one wants to use SSH (SFTP) for remote editing of server ...
8
votes
5
answers
52k
views
In sftp, how to set the default permission for all files in a folder?
I want to set the default permission for all files in a folder, including newly uploaded ones, to a certain value, say 644, instead of doing "chmod 644" all the time.
Is there any command making ...
8
votes
6
answers
52k
views
Accessing Amazon EC2 in Filezilla SFTP
I need help/guide how I can open my ssh access from a GUI or Filezilla.
Here's the scenario my developer just left me with the login info to my Amazon EC2. Now I am finding difficulties in ...
8
votes
1
answer
4k
views
How can I resume a broken SFTP download in Window 7 console?
In my Windows 7 console, I can download file from SFTP with the command
d://putty//pscp -P 22 root@serverip:/root/movie c://movie
How can I resume a broken download in Window 7 cmd console when ...
8
votes
1
answer
12k
views
sftp client with cygwin, is it possible?
Is there any sftp clieant for cygwin? From what I read on the web, all I can find is instruction on how to install the server/ how to use putty/ how to use filezilla.
Is there a terminal client for ...
8
votes
4
answers
26k
views
file permissions and group ownership using sftp
Is there a way to have all files created by a particular user under sftp to have a specific group and file permissions? The user in question, of course, will be a member of the group, but it is not ...
8
votes
1
answer
8k
views
How to add pointers to filesystems outside the chrooted environment - using chrooted SFTP via OpenSSH
So, I'm pretty sure this is true, but I haven't found a specifically detailed independent reference that directly answers my question. Question being:
How can I add access to a resource that is ...
8
votes
3
answers
2k
views
Scripting an sFTP batch upload every 1 minute
I am wanting to record video of part of my house with a webcam while I am away for a few days to try and ensure any burgalers are photographed and the photo uploaded to my server before they even ...