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

learn more… | top users | synonyms

6
votes
4answers
4k views

Are there other commands like scp but for deleting files and folders?

I am using scp to copy stuff to a remote location. But sometimes scp does not work as expected, I have found that sometimes the copy does not complete properly (possibly when I have added new files to ...
0
votes
1answer
2k views

How to transfer a file from a remote linux machine using SCP with Mingw on Windows7

If I am logged into a linux machine via SSH in a mingw window in windows 7; How do I transfer a file to my local machine? I am imagining something like: scp <filename> ...
7
votes
1answer
9k 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
1answer
363 views

Command-line scp doesn't use case-insensitive autocomplete

Auto-completing filenames (by pressing TAB after first characters of the filenames have been written) is case-sensitive both on my Ubuntu 13.04 box and on my Debian Squeeze box, when I use scp. I ...
0
votes
2answers
474 views

SFTP - Recursively fetch new files

I have a remove file system structure like this: + /measure + / 2013-09 + / 2013-09-04 + / fooinstrument + result03343445845.csv + ...
0
votes
1answer
89 views

How to copy directory from remote server

I came across following instruction to copy a directory to my local machine. copy the gems from styx server from "‪location/to/the/directory" to your local directory I know rsync and scp can do the ...
1
vote
1answer
58 views

Send files with scp while being logged on cluster interface

I have to do some work on a Torque cluster where I log on a User interface via ssh. I transfer files to my directory of the cluster and get files from the directory by using scp in my normal terminal ...
0
votes
2answers
678 views

scp “pipe” files via intermediate host

This is sort of a level-up from this question. Suppose that I am on computer A and want to send files to a computer C. We each have separate access to a host B. A and C can not communicate directly, ...
0
votes
1answer
112 views

scp files from a host via another host

I am on machine A, i can access machine B by ssh and from machine B to C via ssh. But i cannot access machine C directly from A. The problem is that i have to transfer a folder of size 5 GB to my ...
3
votes
1answer
509 views

scp: How to copy only the last 10% of a file?

I have a relatively large log file (46M) on a vServer, of which I'm only interested in the most recent part. How can I download only the last 10% of the file? The server is running Debian and I'm ...
0
votes
2answers
87 views

SCP long directories

Im wondering what the quickest way for this is On my local computer I have a file in /some/long/path/name When i have SSH'ed into another machine I decide I want the local file to go in ...
0
votes
0answers
172 views

Transfer folders and files from Linux to Winows using SCP as protocol in WinSCP.com (command line utility)

I have to login onto a remote Linux target using a local windows machine. I was using Putty and WinSCP as a GUI utilities to login. But I have a requirement which needs to automate the login procedure ...
0
votes
1answer
170 views

rsync transfer chunk size

I‘m transferring 1.1 Mb files over very poor GSM EDGE connection. My rsync command is: rsync --partial --remove-source-files --timeout=120 --append --progress --rsh=ssh -z LOCAL_FILE ...
0
votes
1answer
227 views

rsync - resume broken transfer (idea of rsync)

I have remote stations that collect data from sensors (ARM Debian) and transfers sets of data (about 1.1 MB) every 15 minutes (server is full Debian). On one station GSM reception is poor and standard ...
0
votes
4answers
249 views

Need to transfer multiple large files with strong tolerance to delay and intermittency

I need to transfer a directory of large files (~1.5G each) from my laptop at locations with variable intermittent connectivity and high round-trip delay (e.g. From hotels in Asia to servers in ...
1
vote
2answers
539 views

Script for transferring files over the internet via a Cron task

I want to add a bit to a backup script that will transfer a file to another server, over the internet. My cron currently does a pg_dump of a database into a file on the local machine, I want to then ...
-1
votes
2answers
5k views

How to copy files from remote machine (ubuntu) to local machine (windows)?

I would like to know about two ways: scp and rsync and how exactly they are used to copy files. I tried doing scp ubuntu@ip-10-124-83-21:/home/* /home/ubuntu/crockonjs-2-hd.mov but it didn't work. ...
2
votes
2answers
564 views

One-liner Linux for scp'ing thousands of files as a tar

I have a folder with tens of thousands of files that I need to scp to another box. As doing one file at a time is very timeconsuming, and as I don't have harddrive space to make a compressed tar ...
1
vote
2answers
267 views

Copying files over ssh without password

My supervisor has given me remote access to his computer by logging in through ssh on my local computer. Although I am connected (and can view any files I wish through vi, emacs), how can I copy ...
0
votes
1answer
104 views

ssh/scp from client to target through proxy

I have a target host and proxy host and client host, the client host could not connect to the target host directly, even with command ping. I am wondering if there is anyway for me to ssh or scp from ...
2
votes
3answers
984 views

Deploying .war file on java application server only when file has finished being uploaded on a linux box

This problem happen quite frequently while uploading a .war or .ear, that are just little more than .zip file, to a remote server, and have it deployed by the application server. Usually, at ...
2
votes
1answer
817 views

Run ssh/scp without .ssh directory or with alternate dir?

I'm inside chroot, and everytime I scp it keeps telling me: bash-4.2$ scp user@example.com:somefile . Could not create directory '/.ssh'. Host key verification failed. Obviously, I have no means ...
1
vote
0answers
132 views

Linux to Windows (OpenSSH) directory bindings

I've got OpenSSH working on a windows machine and have been able to successfully connect from Linux to Windows and vice-versa. I need to know how Linux paths are linked to windows while using scp. ...
0
votes
1answer
57 views

What's the most seamless way to work over ssh on OSX?

There's something just wrong about scp'ing every file you've changed. I normally use Sublime Text 2 - is there an editor or something that can upload files right as they are changed via scp? If not, ...
0
votes
2answers
200 views

sshfs or fish:// with root (ssh) login disabled

The server does not allow root login from ssh. I can, however, login as my username and su to root (I know the root pw). Is there a way to use the fish:// protocol or sshfs or some other way to mount ...
0
votes
2answers
458 views

How to use scp command without the -i option and still find the priv key

I am logged into a win2008 box, I run scp with the -i option that points to the directory where the private key resides on the win2008 box. scp -i "cygdrive/c/users/userid/privkey..." ...
2
votes
1answer
159 views

SSH file transfers using ssh-keygen

I am a casual linux user but I am having a some difficulty understanding some directions sent to me from a company we provide data to. They want us to use ssh (which I have used before) to transfer ...
2
votes
1answer
186 views

`scp` searches for target alias on source host instead of local machine

When I try to copy files between two hosts, of which the second is identified by an alias: scp host:foo alias: scp tries to resolve alias by looking into host:.ssh/config and not my local ...
0
votes
2answers
87 views

Sudo and perform scp

Possible duplicate of scp to remote server with sudo I'm facing the following issue: A folder (with sub-folders) with files belonging to usr1:usr1 I login with another user usr2 usr2 can do sudo -u ...
0
votes
1answer
69 views

SCP a remote file with a specific name

I have a script on a remote server that creates a log each day with the date on the name and need to import it to my local machine everyday, but with my script it transfers all the files and I just ...
0
votes
3answers
146 views

SSH and SCP giving error

I am doing the same steps (Perform SSH and SCP Without Entering Password on openSSH). But it keep asking password prompt while scp or 'ssh -l' command run. Same steps i did few days back, it was ...
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
224 views

group permissions for scp

We have a server running as a firebird user. We want to scp files to the server that are need by firebird but copied as another user: it-test. What is the best way to set that up on the ...
0
votes
1answer
307 views

Expect not working using -c arguments

So I have an expect script like this that works: #!/usr/bin/expect spawn scp me@myserver.com:* . expect { password: {send "mypassword"; exp_continue} } Based on the man page for expect, I think I ...
1
vote
1answer
326 views

Hash verification when pushing via SCP

is there a simple way to verify file hash when uploading via SCP? I need a bash shell script, because the upload will be done automatically by cron. I use this command: scp backup.tar.gz ...
2
votes
1answer
738 views

“Open in PuTTY” command of WinSCP: Can I scp files from Linux back to Windows from terminal in opened PuTTY instance?

I use the command "Open in PuTTY" in WinSCP. A PuTTY window pops up, but I cannot find a way to scp files from Linux back to Windows using terminal command line in PuTTY. Do you guys think this is ...
0
votes
3answers
79 views

Ubuntu SSH communcation

I have installed to 2 Ubuntu on VMware and i m trying to communicate between 2 machines using ssh. I made the following changes Updated the etc/host files on 2 machines Master and Slave with ips ...
0
votes
2answers
123 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 ...
0
votes
1answer
562 views

How to scp files that match a particular date and name pattern

If I run an ls -ltr on myserver.org:/some/path/dir: -rw-r--r-- 1 devops devops 20727251 Mar 16 08:02 herp1.derp -rw-r--r-- 1 devops devops 24542012 Mar 16 08:03 herp2.derp -rw-r--r-- 1 ...
0
votes
1answer
364 views

How to verify SCP transfer was successful?

I'm using http://phpseclib.sourceforge.net/ to make an SSH connection to my server, then execute an SCP command to transfers to a remote server. The library's exec() method returns a string (looks ...
5
votes
2answers
2k views

How can I scp when path and / or filename to copy has spaces?

I have in a remote remote_host a file like this: \home\user\path with spaces\filename with spaces.ext And I want to scp it to current dir .. How can I do that? Thanks!
1
vote
1answer
836 views

Is there a way to not override existing files when using pscp?

I am trying to copy files from a folder on a server using a batch file. However I don't want the files in the destination folder to be overridden. This is what i have: set /p address=ip address: ...
3
votes
2answers
579 views

SSH as Normal User --> SU --> SCP as Root

I'm on a Win7 box connecting to a linux server. From reading: http://winscp.net/eng/docs/faq_su it looks like I need to open my SCP connections as the particular user. When I connect via SSH, I can ...
0
votes
2answers
369 views

How to copy all directory from another host to current host on Linux

My current files and directories are hosted with Godaddy.com and they don't allow scp over to another host, and I want to get all the pictures for wordpress under wp-content/uploads/* but when I tried ...
1
vote
1answer
723 views

Non-interactive one-time ssh && scp for 100 servers

I need to copy some data from a cluster of very restricted machines through the network which currently has DNS problems (so some connections are bizarrely not working). I found that the only way to ...
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 ...
1
vote
3answers
883 views

scp between an AWS EC2 linux server and my home machine

I'm currnetly trying to retrieve files from my AWS EC2 Linux server to my Windows 7 PC using scp I'm a bit of a Linux newbie and from the server I'm currently trying things like: scp transferMe.tar ...
0
votes
1answer
139 views

secure copy through two hosts

I need to copy files that are behind a firewall server using scp. normaly to login to the server I do the following ssh -p 5023 firewall.domainname.fr now i am in behind the firewall I connect to ...
2
votes
2answers
213 views

Is there something similar to scp for tunneling over RDP?

Similar to how you can scp over ssh, is there something similar for over rdp? I'm currently using the \tsclient\ (i.e. mapped drives) when on the remote server. But I wondering if there is a way of ...
1
vote
0answers
204 views

Under what circumstances does the scp command fail?

I have two linux(redhat 5.6, 64 bit) servers(hp proliant 380p g8), server1's eth0,eth2 bonded to bond0.Similarly server 2's eth0,eth2 bonded to bond0. server1's eth0 connects to cisco(3560 catalyst) ...