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

learn more… | top users | synonyms

0
votes
0answers
17 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
0answers
11 views

Use ssh config localcommand to auto scp file from proxy to remote destination

I connect to a work proxy, from my home, to get to a work destination. This proxy is a jump host. I want to share my bash configs from the proxy(as master) to all the sub hosts i connect out to. Im ...
-1
votes
1answer
30 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
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? ...
1
vote
2answers
1k 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 ...
25
votes
4answers
16k 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
21 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 ...
0
votes
1answer
17 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
39 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
64 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
15k 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
16 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.
18
votes
1answer
16k 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 ...
30
votes
3answers
23k 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
19 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
14 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
24 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 ...
5
votes
3answers
35k 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
644 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 ...
26
votes
4answers
32k 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
20 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
22k 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
31 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
12 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: ...
53
votes
3answers
29k 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
7 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, ...
12
votes
4answers
30k views

scp doesn't work but ssh does

If I want to send something via scp to server: $ scp file server: _____ _____ _____ $ , then three lines are printed and file is not copied. However I can connect to server via ...
19
votes
6answers
9k views

Is it possible to SCP from a remote to local whilst logged into the remote and without knowing the local's IP address?

I regularly find myself wanting to copy a file from remote terminal session to my local machine. Usually I log out of the remote session and call an scp transfer from local to copy the file from ...
39
votes
6answers
48k views

scp to remote server with sudo

I have a file on server A (which is behind a NAT so not directly addressable). The file needs to be copied to server B in a directory restricted to root. I have an account on server B with sudo ...
1
vote
2answers
127 views

SSH working but SCP permission denied using the same password

I can successfully SSH into my remote sever (amazon web services if that matters, I'm on a mac) using ssh -i mykey.pem ubuntu@??.??.??.??? But when I try to use scp scp -i test.php mykey.pem ...
31
votes
6answers
6k views

Can the server admin see what I copy via SCP?

Say I am connecting to a server via SCP and copying some files from the remote server to my home computer. Can the server admins tell that I have copied something, see what was copied, or know who ...
2
votes
2answers
125 views

Using scp with an ssh connection - can I copy files directly between remote machines?

I have ssh'd into a remote machine and on that machine run scp to copy files from another remote machine. I assumed that the files would be copied directly between the two remote machines but the ...
-1
votes
2answers
24 views

How to copy a file into Linux back from the server (30ngs) using scp command

how to copy a file into Linux back from the server (30ngs). I am using scp command. The command i used to copy a file from Ubuntu to Server is as follows. And it work well. tahir@D3C1209-VIRTUAL:~$ ...
2
votes
1answer
68 views

How is WinSCP able to provide a sudo user for executing scp?

The tool WinSCP is able to perform a sudo on the remote machine to perform the scp as the sudo user. That leads me to think that this must be possible with the command-line version of scp as well. ...
0
votes
2answers
109 views

Log in using SSH without password

On my server, I've got openssh-server and a special account without password. I'm creating a shell script, that must be used without user input. For example $(ssh dummyUser@dummy.com) I need script ...
31
votes
10answers
28k views

Scp over a proxy with one command from local machine?

I have my local.machine, the proxy.machine and target.machine. local.machine doesn't have direct contact with target.machine, but needs to go through proxy.machine. I want to scp a file from ...
0
votes
1answer
30 views

Transfer file from local machine to port forwarded machine

I have to transfer a file from my local machine to remote server 2 from remote server 1. I have port forwarded the remote server1(Amazon Ec2) port 2222 to remote server2(Amazon Ec2). I am connecting ...
2
votes
0answers
38 views

msys2 network performance woes

With a fresh install of msys2 32-bit (needed for git-annex) from https://msys2.github.io/ on Windows 7 SP1 64-bit, I'm seeing incredibly slow network transfer speeds on wget, ssh, rsync, etc. For ...
14
votes
3answers
21k views

Allow incoming SCP connections on Mac

How can I allow incoming scp connections on my Mac (OS X 10.6.4) from other machines on the same network? Every time I’m trying to scp something on the machine I get a Connection refused error. ...
1
vote
1answer
67 views

Are there any current multi-threaded sftp Windows clients? [closed]

I found bitkinex.com had one, but is rather old and doesn't support the latest encryption. winSCP has it on it's plan, some time way into the future, but doesn't seem likely to happen.
100
votes
3answers
94k 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
votes
1answer
77 views

WinSCP/PuTTY: Cannot move file on server via sudo: Permission denied

I have uploaded a file to a remote Linux server. current directory is: /home/user/file.war Now i want to move the file into tomcat webapps folder and overwrite the existing version: The directory ...
0
votes
0answers
280 views

stty: standard input: Invalid argument error when scping files

When I try to scp a file to my remote server I get the following error: stty: standard input: Invalid argument This is caused by a line in my .bashrc file: stty -ixon If I remove that line, the ...
0
votes
2answers
93 views

Tab Completion Broken on SCP with OpenSSH 1:6.2p2-6ubuntu0.1

Here is my scenario: I want to transfer ~/foo.txt to a server aoneill@bar. I start typing in my command line: aoneill@aoneill-Laptop:~$ scp fo At this point I hit <tab> to complete the file ...
30
votes
4answers
22k views

How to copy a file without using scp inside an ssh session?

I have logged on to a system with ssh and there is no scp present on both the systems. How to copy a file without using the scp program.
0
votes
2answers
26 views

Moving data across environments

I have a very lame situation at the moment about moving data across environments at work. These data are database dumps, Solr indexes or simple images. Our process is: "tarball the data" + ...
0
votes
1answer
80 views

scp copy to external hard drive ambiguous target

I try to copy files from a linux (ubuntu) machine to an external hard drive mounted on a mac but got an error message : scp: ambiguous target What I did is, I'm on a mac, ssh to the linux machine ...
2
votes
2answers
56 views

copying a file from remote node to my own system

I am using the following command to move a file (sender.log) which is on a remote node to my own PC: scp linux-Vostro-1014@example.com:sender.log /root/Desktop When I use this command it asks: ...
1
vote
2answers
2k views

WinSCP error setting up directory

I am getting the following error: Reading Remote Directory: Error changing directory to '/script=E:\Data\GmousCR12\bin\Get.sftp' Cannot get real path for '/script=E:\Data\GmousCR12\bin\Get.sftp' No ...