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

learn more… | top users | synonyms

2
votes
1answer
26 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. ...
6
votes
4answers
2k views

Unable to use scp with a bash alias

This code does not work: scp ~/Desktop/favicon.ico nameOfBashAlias:/public_html/mySite/templates/blog/ The alias is: alias nameOfBashAlias='ssh myUsername@11.11.11.111' How do I solve this ...
-1
votes
1answer
72 views

Shell Script to copy huge files from server to server [closed]

I want to make a shell script to copy files of 40GB from a Solaris server to a Linux server. Can anyone tell me the best way to make such a script. I am new to shell scripting.
3
votes
5answers
16k views

How can I transfer files from UNIX to Windows?

I want to transfer a file from a UNIX server to a Windows 2003 Server, so I downloaded copssh onto the Windows server, and openssh is already installed on the UNIX server. When I execute the ...
1
vote
1answer
32 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 ...
0
votes
1answer
39 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
25 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 ...
0
votes
2answers
3k views

scp all files ending '-123.jpg' - recursion, spaces, wildcards …

There's too much going on for me to get my noobie head around here. I'm wanting to download all files that end -123.jpg from a multitude of nested directories on a remote server. Some of these ...
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 ...
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 ...
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 ...
27
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
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
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
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
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
30 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 ...
38
votes
14answers
58k 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
26 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
724 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
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
62 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
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 ...
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
774 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 ...
56
votes
2answers
53k 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
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 ...
1
vote
3answers
559 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
22 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
249 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
359 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
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?
25
votes
2answers
68k 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
120 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
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
40 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
140 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
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 ...
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?