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

learn more… | top users | synonyms

2
votes
1answer
19 views

Copy file from remote host to another with scp/ssh tunnel

I want to copy a file from a remote host (remote1) to another remote host (remote2) via my local machine. I can only establish ssh connections from this local machine to either of the two remotes. ...
1
vote
1answer
28 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 ...
1
vote
1answer
34 views

cp: cannot stat : No such file or directory

I am getting an error when I try to copy a file from my local computer to a remote server. I get the same error whether I use cp or scp. Here is my input at the resulting error: ...
0
votes
0answers
7 views

How to perform remote JBOSS debugging to AWS (Amazon Web Services)

Our service provider setup an environment to host our website in AWS (Amazon Web Services). The website is running on JBOSS. We enabled remote debugging in JBOSS by putting: JAVA_OPTS="$JAVA_OPTS ...
0
votes
2answers
22 views

Can't ping my own computer from my server

I've setup an AWS server, and I can ssh into it from my home computer and everything acts normally. On the server, I can ping to any external website (i.e. google, cnn, reddit), but I can't ping my ...
1
vote
0answers
20 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 ...
2
votes
2answers
40 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 ...
0
votes
2answers
42 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
2answers
38 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
20 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 ...
0
votes
1answer
28 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 ...
1
vote
1answer
25 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 ...
0
votes
0answers
26 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
58 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 ...
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 ...
1
vote
3answers
38 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
59 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 ...
0
votes
1answer
26 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 ...
0
votes
0answers
20 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 ...
1
vote
1answer
350 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 ...
0
votes
1answer
35 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?
0
votes
0answers
50 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
39 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
0answers
50 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 ...
0
votes
2answers
139 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 ...
1
vote
3answers
108 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
94 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
0answers
43 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
0answers
21 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 ...
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 ...
0
votes
0answers
442 views

Using scp to transfer files to an android device

SSHDroid lets an android device function as an ssh server. vSSH is an ssh client for android devices. I have a file on a remote server that I want to transfer to my android device over ssh, only ...
0
votes
0answers
37 views

sftp scp can not work , result in network down

root@6-2:/root> scp 1.pcap yqiu@10.xx.xx.xx:~ yqiu@10.xx.xx.xx's password: 1.pcap 0% 0 0.0KB/s --:-- ETA I use scp to ...
0
votes
2answers
153 views

Unable to scp from remote to local Mac

I have gone over SU and SO posts looking for a way to get this to work, but I'm about to put up my hands and stick with a GUI. I want to scp a ZIP file from a remote server to my local machine. I can ...
0
votes
1answer
64 views

Why is it slower to transfer small files over the Internet

I'm using scp to transfer files from one host to another over the Internet. Assuming that the transfer speed is 2Mb/s, it takes around 1.5 seconds to send 3Mb size between 2 hosts. However, if the ...
1
vote
0answers
46 views

Upload to SSH in XMODEM manner?

I know I can use scp command and copy any file whenever I can come with ssh client. But let see in more detail. Suppose I have ALREADY logged in with ssh client. This means that I have ALREADY ...
1
vote
0answers
83 views

transferring files with spaces in them with putty's pscp

I tried the following to no avail: pscp -load test username username@domain.tld:"file name.ext" "file name.ext" pscp -load test username "username@domain.tld:file name.ext" "file name.ext" pscp ...
1
vote
1answer
60 views

Why is scp copying more bytes than it should

I'm copying the Xcode.app from one computer to another using scp and it seems to have copied more than the file size and it's still copying. It 4.94GB (I didn't compress it), but nettop on the ...
0
votes
1answer
21 views

VM file transfer to local machine

I have a VM running on my machine. I want to copy a file over to my machine that is currently running the VM. I was wondering how I can get this file on my local machine.
1
vote
1answer
134 views

pscp and UTF-8 characters

I'm having trouble copying files with UTF-8 characters using pscp on Windows. I'm using command line for that and following command: chcp 65001 pscp -scp -p -pw {pass} -batch ...
0
votes
1answer
50 views

Download a text file with scp

I have tried scp -i ~/awscredentials/govindsinghnagarkoti.pem ubuntu@XX.XXX.XXX.XXX:/server/error.txt. but it is giving usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] ...
-3
votes
1answer
39 views

Quickest way to upload to a server?

I am looking for a way to upload a large file (1gb) to a server. So far I have used scp, nc and sftp. Initially I start with a nice upload speed of around 2 mbps, but this quickly slows down to around ...
0
votes
0answers
51 views

pscp: how to copy a file from a windows machine to a non-home location on another windows machine?

I want to copy a file from C:\temp on MachineA to C:\final on MachineB. I tried to use the following command, but it gave me an error (permission denied): C:\PROGRA~1\putty\pscp.exe -i ...
0
votes
1answer
115 views

how to save the output of scp command?

I want to save the output of scp command each a laps of time, in fact we i make scp --debug , I see the progressive rate of transferring file . I want to save each time (1s exp) the output of the ...
0
votes
5answers
81 views

How can I run `make` and retrieve the binary from a remote host without `ssh`ing twice?

I'm working on a project for which I don't have the toolchain configured on my own machine and I'm thus developing remotely. My workflow right now looks as follows: open the remote project directory ...
0
votes
1answer
34 views

delivery order of multiple files in SCP

I want to push multiple files from node x to node y in such a way that they arrive at the destination in the lexical order of their timestamp extensions. Examples: a.20140508120001, ...
0
votes
0answers
52 views

FileZilla stomps all over rbash and scponly

Pretty straightforward question: I've got a stock Ubuntu install on a server and I'm trying to only allow certain users to scp files to their own home directories. I read up on rbash and scponly for ...
1
vote
3answers
190 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 ...
0
votes
2answers
78 views

Unrar local files to remote server

I have two Linux servers, one which has several RAR files and another empty one. I would like to extract the archives and move the content to Server 2. The problem is: I do not have enough storage to ...
0
votes
1answer
45 views

scp without leaving ssh

I happily use both ssh and scp. Quite often I am in an ssh session and I'd like to retrieve a file from my machine and put it in the directory I'm currently in without having to open a new terminal ...
2
votes
1answer
55 views

Preserve ctime with SCP

How can I copy a file using SCP while preserving ctime (modification time)? I have a folder on my Mac (OS 10.8), and the results of ls -l and ls -lc are the same. $ ls -l total 0 drwxr-xr-x 9 ...