SCP (Secure Copy) is a secure protocol based on SSH used for transferring files between computers.

learn more… | top users | synonyms

50
votes
17answers
88k views

Map remote drive in Windows over SSH

Does anyone know of a good (hopefully free) tool that can be used to map a Linux server accessible over SSH/SCP as a Windows network drive? EDIT: SFTP not supported EDIT2: Windows File Sharing/Samba ...
1
vote
2answers
602 views

Authentication with ssh and scp works but not WinSCP

I have a Ubuntu server with 3 user accounts (root, user1, user2). user1 has access via WinSCP, scp and ssh. No problems here. Then I've created another user2 but with this user I can't access the ...
8
votes
4answers
11k views

why is WinSCP so slow

the interface is handy but the file transfer rate is freakishly slow compared to pscp or scp in my VM on the same windows machine. i'm only getting about 17kb/s when my overall connection speed can go ...
0
votes
1answer
26 views

How do I copy a file from one server to another without downloading first?

Is it possible to copy a file from one server to another without downloading first? I have a backup file that is 10gb that I'm wanting to copy from my production server to my staging server. ...
44
votes
2answers
154k views

How do I SCP from remote machine to local machine when I am outside of my home network?

While I understand how to scp files to and from my server from within my home network, how can I scp a file from my server to my local machine when I am on the outside, say at Starbucks? While I am ...
6
votes
2answers
136 views

Why does rsync over SSH give me 10x the throughput of SCP?

scp user@aws-ec2:~/file file rsync --partial --progress -Pav -e ssh user@aws-ec2:~/file file scp only gives me 200K/s, but rsync gives me 1.9M/s I tested several times, all same results. rsync ...
4
votes
6answers
17k views

SSH from Windows to Linux without entering a password

I am trying to use ssh/scp from Windows to Linux without having to enter a password. This is what I have done, and it doesn't seem to work: generated public and private keys using Putty Key ...
3
votes
1answer
62 views

scp “no such file” when the file exists?

I'm trying to copy a folder from my local computer to a remote server, but it only seems to be catching half of the files within the folder. Here's my scp command: scp read_tree name@server.school....
110
votes
4answers
101k 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?
1
vote
3answers
39 views

File synchronization on Linux over network: scp or rsync?

I have two Linux (Debian) machines "A" and "B" connected to each other wireless over the router. On the machine "A" I run a script that generates every 5 seconds a new 1MB file in the specific ...
0
votes
1answer
53 views

Connect server to internet over local machine

Ive got access to a server over ssh to run some experiments and need to download some packages over the internet to perform these. Unfortunately, the server has no connection to the internet, or ...
1
vote
2answers
15k views

scp error: “Permission denied (publickey). lost connection”

I tried to scp an svn dump to savannah, but I got the following error at the end. Permission denied (publickey). lost connection The scp command and verbose output are below. Any ideas? [wcyang@...
9
votes
4answers
8k views

How to copy a sparse file using scp?

Do we have any option in scp that I could copy a sparse file ? The following command works with ssh, But I am looking for an option in SCP which copies a sparse file. tar -Szcf - /home/myself/test/ ...
3
votes
6answers
79k views

How do I transfer a file to my server using PuTTY?

when calling SCP in PuTTY on my Win7 box, it doesn't let me use C:/, but I also have no idea where on my local machine it will look for files by default. None of program directory or user directory ...
1
vote
1answer
41 views

Using GNU Parallel to scp huge file splitting it by chunk per host

I'm using Ansible to set up some configuration on several nodes, and as part of this setup I need to split one big file by n lines and copy each part to a remote file without creating local copy of ...
2
votes
0answers
145 views

warning message “kex protocol error: type 7” during scp, rsync or shell work

Lately, I get lots of these errors on my home server. Their occurrence seems proportional to the traffic, so if I am working in a shell on the server I may seem 1-2 a day. But If I start some rsync, ...
0
votes
0answers
14 views

AWS EC2 Instance SCP: tput: No value for $TERM and no -T specified

Hello SuperUser Heroes, I have been using my system's terminal (Mac OS X El Capitan) and have never had issues with it. Today, wanted to upload some folders to some EC2 machines (which I used to do ...
0
votes
1answer
21 views

How to be made secure copying between remote machines on different ports by local machine

I have a cluster with 4 machines. One of them is cluster manager. When cluster manager start a backup, each slave cluster creates cluster backup files in it's own file system. After cluster manager ...
1
vote
1answer
62 views

cisco, boot code update via SCP fails “no matching key exchange method found.”

Trying to update CISCO SF200-24 boot code via SCP, but all I get is fatal: Unable to negotiate with <IP> port 5939: no matching key exchange method found. Their offer: diffie-hellman-group-...
0
votes
1answer
31 views

Access Denied using SCP; SSH is working

I am trying to SCP from an ec2 instance to my laptop, ssh is working. scp -2 ~/Downloads/NTLLSMON_TEST.pem ubuntu@publicdns.ap-southeast-2.compute.amazonaws.com: /mnt/UAV_Images_Leith/...
1
vote
0answers
18 views

Using two bonded network interfaces in Ubuntu14.04

I have 6 ethernet cards in my server. 4 of 1Gbps and 2 of 10Gbps, So I have configured all 4Gig cards as bond0 with static IP 144 and 10Gig cards as bond1 with IP 122. The problem I'm facing is that ...
27
votes
3answers
68k views

scp'ing using key file as a parameter, How can I do that if possible?

scp -i ~/.ssh/id_rsa.pub events*$date*_QA.log $remote_user@$remote_server:$remote_location Is the aforementioned script incorrect? Am I not doing it correctly? I went to the .ssh directory and saw ...
11
votes
3answers
62k views

How to SCP from linux server to Windows client

I'm SSHing into a Linux machine using PuTTY and trying to copy a file down somewhere (anywhere) to my local machine. I figure SCP is the best candidate for the job but don't really care, so long as ...
0
votes
1answer
32 views

Transfer files over an established ssh connection

I'm wondering if there's any way, while in an established ssh session, to copy files to and from the source computer, without having to use sftp or scp to create a separate connection, requiring more ...
1
vote
1answer
43 views

Linux ssh/terminal program with built-in file browser [closed]

I've moved back to using Linux after a stint on Windows. While there, I had discovered and heavily used MobaXterm for ssh (and the occasional X session). The standout feature for me was that when ...
0
votes
0answers
41 views

scp from remote to local, where is my file?

I'm copying (or at least trying) a file from a remote server to my local pc (Windows) using the following command: scp user@host:/usr/filename.txt / It copies the file, but I have no idea where it ...
-1
votes
1answer
44 views

Linux - Copy a folder including the subfolders, BUT don't copy any file that is over 5MB

I'm managing 2 linux servers and looking to copy the data from one to the other. I'm looking to just copy these files on one server first then zip it and then scp it over. I need to copy a 100GB ...
1
vote
2answers
2k views

Using scp to transfer a .txt file list of files

I have 1.6 million files on server A, and only about 20k of them need to get to server B. The destination, server B, is on GoDaddy shared hosting, so I'm just about limited to scp for transferring ...
29
votes
4answers
18k views

scp files via intermediate host

I have access to 3 machines, A, B, and C. The only possible (ssh) connections are: A -> B B <-> C I need to get files from A to C, so I could scp the files from A to B, and then scp them ...
0
votes
3answers
23 views

scp copy all files in a directory with some exeptions

I want to remote copy a directory (multiple actually but this is a simple example), but I want it to NOT copy any .dat files that it find the there. I am currently using: scp -r remotemachine:/...
0
votes
1answer
39 views

Copying a large number of files from a remote device without creating an archive

Normally, if I wanted to copy files from a remote machine I would do scp user@remote.device:/folder/* . However, in this case there are so many files that get I the error bash: /usr/bin/scp: ...
0
votes
0answers
59 views

Transfer file to Windows Server 2008 R2

In a LAN, I have a Windows Server 2008 R2 machine; access to server through Remote Desktop is granted both 1) from a LAN host 2) from the internet, thanks to a virtual server configured in the ...
0
votes
1answer
72 views

SSH Find current LOCAL MACHINE directory

I am attempting to upload a file from my local machine to my server using: scp Users\MyName\Desktop\myzipfile.zip user@host:/path/to/whereyouwant/thefile I have a zip file on my desktop that I am ...
7
votes
2answers
17k views

Is there a tool like WinSCP for MacOS?

I used to use WinSCP to log into my remote server. I need to login with an ssh key and move the files from and to the remote server. So far I have not find any tool with the same features for MacOS. ...
0
votes
0answers
50 views

Does scp should be in MinGW?

So I have installed Mingw with msys. But I can't find scp, ssh-keygen in it. When I type scp - windows shell says 'command not found'. Also there is no scp.exe in ming win folder.
19
votes
1answer
17k views

Using SCP or SFTP with my ssh config file?

Perhaps my google-foo is failing me here... 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 documentation I'...
31
votes
3answers
25k 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 ...
1
vote
1answer
35 views

Write file from remote server to local directory?

I want to do some grep-magic to a logfile on a remote server and write the result to a local file on my computer. Is there an easier way than my 3 step solution: do grep-magic and write file on ...
1
vote
1answer
16 views

Trying to get pip onto UnixWare

I have an installation of UnixWare 7.1.4 for which I'd like to add (python's) pip. I know that get-pip.py is at https://bootstrap.pypa.io/get-pip.py My problem is that the only tools I have to get ...
1
vote
0answers
42 views

rsync/scp without root password and without allowing root ssh login

This is the scenario. We have a multitude of servers, currently we simply ssh in as root using our keyfile and then when we need to rsync we use the root user. All very easy. What we would like to ...
6
votes
3answers
40k views

How to use PSCP to copy file from Unix machine to Windows machine where target path has spaces?

I am having a problem using PSCP in a C# program to copy a file from a Unix machine to a Windows machine. The problem only happens when the target folder on the Windows machine has a space in it. ...
1
vote
4answers
729 views

scp files between hosts through intermediate

I have access to 3 machines, A, B, and C. The only possible (ssh) connections are: A -> B A -> C I need to get files from B to C, I can only scp the files from A to B (on A: scp remote local), and ...
28
votes
4answers
33k views

scp -r … but leave out (exclude) a specified subdirectory

Here's the directory structure: /a/ /a/b/ /a/c/ I want to copy everything, EXCEPT for the /a/c/ subdirectory. scp -rp myserver:/a . # this will copy everything Q: How would I specify a ...
1
vote
1answer
26 views

Reauthentication behavior of SCP with curly braces

I have the following files on a server: A_Hello.txt B_Hello.txt C_Hello.txt A_World.txt B_World.txt C_World.txt A_SU.txt B_SU.txt C_SU.txt A_IDONTWANTTHISFILE.txt If I try to download the desired ...
8
votes
3answers
26k views

How can I get the scp command to overwrite the destination folder

I am using the scp command to copy some files to a remote pc, as you do with scp :) I note that the default behaviour of an scp copy for files is to overwrite any existing files. Now I want to copy a ...
0
votes
2answers
33 views

FIle Transfer broadcasting

I am curious are there implementations where one can send a file over a broadcast address like in IPv4 addresses to multiple end hosts? For instance can scp perform a file Broadcast to multiple hosts ...
0
votes
0answers
16 views

Setting up Cluster on Vagrant using Bro Network

I'm trying to set up a cluster in vagrant. What I want is pretty simple, I just want 1 master and 1 slave. Inside the master I already installed Bro Network to use broctl. This is my Vagrantfile: ...
62
votes
3answers
33k views

scp between two remote hosts from my (third) pc

I have two remote hosts. host1-> 10.3.0.1 host2-> 10.3.0.2 Both run an ssh server. The ssh server listens on port 22 in host1 and on port 6969 in host2. Now, using my local machine, I need to copy ...
2
votes
3answers
4k views

Copy data from a remote Linux box to my Windows desktop

I use Putty to login to the remote server and then set the environment and change the path to a particular directory. Now from this dir, I need to copy a folder to my desktop which is Windows? How ...
0
votes
0answers
10 views

scp between two remote servers (B, C) which are accessible via a third server A [duplicate]

I found solution for transferring files between the two servers B and C from a local machine without logging into the servers using scp, if both B and C are accessible from the local machine. However, ...