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

learn more… | top users | synonyms

1
vote
2answers
21 views

Copy multiple sources to multiple destinations simultaneously

Suppose I need to copy files ~/path/to/file to user@remote:/path/to/file ~/path/to/another/file to user@remote:/path/to/another/file ~/path/alternative to user@remote:/path/alternative Is there is ...
1
vote
0answers
18 views

Copy text file from a isolated server

I have a linux remote machine which is isolated from the rest of the world. To access to it I have first to connect via ssh to a gateway. When connecting to the gateway I have no prompt, but I must ...
26
votes
17answers
35k views

Best way to copy millions of files between 2 servers

I have roughly around 5 million small (5-30k) files in a single directory that I would like to copy to another machine on the same gigabit network. I tried using rsync, but it would slow down to a ...
0
votes
2answers
34 views

How can I copy-paste a directory from my computer to another computer using ssh?

Watching this video I have learned how to copy-paste from an external computer to my computer using ssh by doing scp name@IPadress :/what/I/want/to/copyPaste Now, my goal is to do the opposite, ...
0
votes
1answer
3k views

scp No such file or directory

I've a confusing question for which superuser doesn't seem to have a good answer, and neither google. I'm trying to scp a file from a remote server to my local machine. The command is this scp ...
2
votes
3answers
3k views

Any faster scp or rsync?

How can I transfer a large file quickly, when I don't really require a secure connection? Often I would like to copy a large file from local machine to remote machine. The file does not already ...
0
votes
2answers
29 views

How can I scp a file across two servers in one line? [duplicate]

I'm using Mac 10.9.5 and bash shell. In our environment, we have to go through a proxy (a CentOS machine) to SSH properly into a destination machine (another CentOS machine). What I would like to do ...
0
votes
1answer
30 views

scp returns a content of PATH variable instead of working

I can't make scp work anymore. I enter in my terminal: scp myfile user@ip_address:/Users/user/myfile It asks me my password and having entered that, it displays this line without copying ...
0
votes
1answer
23 views

Automated file transfer using challenge-response authentication method [duplicate]

Doing SCP to a remote server to put the files. While we do that, we need to authenticate to the remote server using the challenge-response authentication method where we have a separate authentication ...
0
votes
0answers
11 views

Resume SCP download when using .pem file with rsync

I have a large file to down form a ssh server, however the connection keeps cutting out. I know that rsync can be used to resume the download however I can not find how to do this when I am using a ...
37
votes
14answers
57k 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
1answer
22 views

Issues using scp to copy a file in Unix

I have a script where i need to get the cksum of the files in a directory from another host. I was able to do ssh to another host and create the file.txt. what i need to do now is to scp the file ...
5
votes
1answer
718 views

How to continue scp transfer from last file

I was transferring large files using scp, but I got this error: write failed: Broken pipe lost connection. Now I need to re-launch scp but tell it to continue from where it left off. I looked into ...
3
votes
2answers
3k views

scp “lost connection” but ssh works fine

A server I can ssh into fine has begun refusing to scp. $ scp ~/tmp/foo user@some.example.com:~/tmp/ lost connection With scp -v -v I can see the connection succeeds and the transfer appears to ...
0
votes
0answers
21 views

scp whole folder recursivly while using sshpass

I am aware of this answer How to scp a folder from remote to local? But when I try to join it with sshpass the results is that inside /Users/andi/media it will start creating also recursive copy of ...
0
votes
1answer
25 views

Permission denied (publickey) error when using scp

I had created 3 linux instances on the Amazon EC2 cloud without a passphrase for the private key. I had stored the private key in a file id_rsa in one of my instances(the master) to allow it to ssh ...
2
votes
2answers
4k views

How do I replicate the directory structure to a remote Linux server?

I want to replicate a complex directory structure from one Linux server to another remote server start at a certain sub-directory. I don't want the contents of the files, I just want to preserve the ...
1
vote
3answers
36 views

Copying multiple files on linux

I have a linux machine with folders named numerically. How can I securely copy ranges of these folders to another server? The source machine runs tcsh, the target bash. At the moment, from the ...
2
votes
1answer
48 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 ...
1
vote
4answers
299 views

Sending files between computers [Cloud Server <-> Home Computer]

I'm using a cloud server which runs ubuntu, I can send files from my computer to the server using scp, but the opposite side doesnt work, I know it could be due to closed ports or something else. ...
2
votes
3answers
766 views

How to evaluate environment remote variables in SCP?

Is there a way to have environment variables on a remote host evaluated when using SCP? For instance, let's say I have $FOO= /mydir on host A; how would I do something like: scp ...
53
votes
2answers
52k 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?
3
votes
2answers
5k views

scp a folder to my ubuntu server

I have a folder on my mac that I need to move over to my server. I can ssh in the server but how do i get this folder up.... say I am on my local computer and the folder is named shared and I want to ...
0
votes
1answer
22 views

Download system file with PermitRootLogin no

I have a remote server with root and regular user access to it, however the direct root access is forbidden using PermitRootLogin no in the ssh configuration file. So I'm left with no option to ...
1
vote
3answers
553 views

Easiest way to automatically copy files between computers

I am trying to write a script which will essentially copy and file in a certain folder to a folder on another computer. My first thought was SCP, but I don't know if I can automate SCP by adding a ...
7
votes
3answers
9k 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. ...
4
votes
12answers
2k views

How do I push a file from a Linux box to a Windows Box?

How do I push a file from a Linux box to a Windows Box? Which versions of Windows have a built-in SSH server that a Linux box can "scp" (secure copy/ssh) to. I'm looking at freesshd right now. Any ...
0
votes
0answers
19 views

Is there a simple way to automatically send through scp any file modified in a folder to a remote folder?

Put it simply: I have a folder full of files and subfolders with more files. I would like to have a mirror of that folder in a remote server so anytime a file is modified on my machine it gets ...
13
votes
4answers
11k 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
4answers
2k views

scp a little slow? windows vm ubuntu and mac leopard

I am running ubuntu under VMware. I connected my USB drive directly to ubuntu instead of through windows XP and i started transferring files from my mac leopard to ubuntu/usb HD Most of the time the ...
1
vote
2answers
235 views

SCP remember password

On debian, is there anyway for scp to remember the password I've typed in for the duration of my ssh logon, similar to how sudo does? i.e. PC ---ssh(putty)---> server 1 ---scp---> server 2 ...
1
vote
1answer
318 views

How to scp without password prompt without storing private key

Here is my current setup: Connect to a Ubuntu server (Let's call this the server) from Windows Do something interesting. Send files from server 1 to another Ubuntu box (the box). I used to store ...
1
vote
2answers
1k views

scp over ssh tunnel

I want to copy files from a remote computer (W) to a private host computer (P) via scp. Since i can't connect to machine W directly i use an ssh tunnel over 2 different machines with port 22. What i ...
0
votes
1answer
28 views

Codeblocks - upload binary to server after compilation

I'm running Debian 7.6 on VirtualBox and I also have a Debian VPS. Is there any way to setup Code::blocks to automatically scp the binary after compilation to my VPS?
23
votes
2answers
66k 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 ...
-1
votes
1answer
117 views

Copying entire dir using SFTP [duplicate]

In sftp> put * or get * doesnt get the hidden files or directories inside the dir. What to do if I want to use sftp to copy entire dir,along with subdirs that are hidden also? For example a .git ...
0
votes
0answers
45 views

Error EOF using pscp to transfer files to windows server

I am using pscp to transfer files from my computer to a windows server but it doesn't work. here is the command I'm using and the result pscp -v -scp file_test.txt LOGIN@HOST_ADDRESS:C:.\ Looking ...
0
votes
2answers
37 views

Perform scp-then-ssh in one connection

Both at work and at home I tend to do the following very often: $ scp "SomeScriptIJustCreatedOrModified.sh" some-server: $ ssh some-server ./SomeScriptIJustCreatedOrModified.sh arguments And ...
0
votes
2answers
131 views

How to scp across two ssh

I have three computers HOME, WORK and SERVER and I am connected from HOME to SERVER by: ssh -t <WORKusername>@<WORK> ssh -p23456 <SERVERusername>@localhost I need to transfer the ...
0
votes
0answers
35 views

SCP error 'unable to open'

So, I set up a SSH server (freeSSH, win7) and can connect to it just fine with PuTTY. I then tried to use pscp to transfer a file (foobar.txt, from client to server). I cd-ed to the dir pscp.exe was ...
1
vote
3answers
97 views

How to check for incoming SCP connections on Linux?

I want to view if any SCP connections are coming to my Linux machine. How can I view those?
0
votes
2answers
87 views

crontab is not working

I am using Linux Fedora. I want to create a crontab with SCP command, but it's not working. [shiv@db2 ~]$ crontab -l #this is server to server copy... */2 * * * * date >> ~/$ scp ...
0
votes
2answers
855 views

scp to remote server message.."Hello, I'm freeFTPd 1.0

I'm trying to scp files from a Linux box to a remote server, but after i put the root password for the server, it gives the message "Hello, I'm freeFTPd 1.0" I tried using put command but nothing is ...
0
votes
0answers
42 views

Using SSH only & not SCP

I am trying to make a script to backup Netscreen Firewall config with following code: plink -ssh -pw %%C %username%@%%B get config > "%DESTDIR%%TIMESTAMP%\%%A.cfg" Where "get config" is the ...
0
votes
2answers
117 views

transfer hundreds of files specified on a list between two servers

I need to download 800 files from a server to my server. These files have different names and they're in different subdirectories in the remote server, but I have their names on a list. How can I do ...
11
votes
4answers
7k views

How do I scp the (huge) output of a command directly to a remote machine?

Note that I can't first store the file locally -- it's too big. This (obnoxious) page (scroll all the way to the bottom) seems to give an answer but I'm having trouble disentangling the part that's ...
20
votes
6answers
20k views

Why is rsync -avz faster than scp -r?

I'm a bit puzzled by this? Why is rsync faster than scp? Doesn't rsync use scp beneath or does it do something more efficient? Is there some way to speed up scp?
1
vote
2answers
46 views

Retrieve secure copy in UNIX?

Is there a way to retrieve a secure copy in UNIX? Why would I need to do this? Because I can login to a remote machine from my local machine, but not the other way around. So I need to retrieve a ...
4
votes
3answers
11k 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 ...
0
votes
0answers
20 views

SSH working, but SCP+git not working at all when network link is overloaded

SCP (and other programs that use SSH, like git) establishes a connection, but just sits there without doing anything. Using an SSH shell works fine. This only happens when the Ethernet network link ...