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

learn more… | top users | synonyms

1
vote
3answers
44 views

Using scp to get all files in multiple directories

I have a directory structure which looks like A1/B1/C1/files111*, A1/B1/C2/files112*, A1/B2/C1/files121*, A1/B2/C2/files122*, etc. so that all files in all directories are unique. Is there a way to ...
1
vote
3answers
368 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 ...
2
votes
2answers
547 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 ...
2
votes
2answers
399 views

Cannot scp file to an EC2 instance that I can ssh to

I have two EC2 instances that were created from the same AMI, which was created from the Amazon Linux AMI. These are running mysql in a master-slave configuration. The security group ("db") is ...
1
vote
2answers
40 views

Exclude lines that have duplicate words between delimiters

I have a folder structure that has been (badly) maintained by a number of automated jobs. One of the side effects of these jobs appear to be that it creates duplicate folder names (and subsequently ...
1
vote
2answers
402 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 ...
0
votes
2answers
72 views

Copy files from Solaris to redhat via SCP command run on RedHat console

I have to copy several GB of little files (from few bytes to < 1MB). These files resides on a file system of a Solaris system. No rsync and rdiff software is available on Solaris and cannot be ...
0
votes
2answers
223 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
317 views

scp from remote server to local computer?

Ok, very very basic and simple question, but I'm a bit confused. After ssh'ing to remote server, I want to transfer a file back to my computer... The syntax is simple, of course: scp ./foo ...
0
votes
2answers
516 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..." ...
0
votes
2answers
88 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
2answers
871 views

scp works from command line but not from shell script - permission denied

I'm migrating some home folders from one Linux box to another using scp. I've saved my public key into the destination box's authorized_keys file and the following command works perfectly when I type ...
1
vote
1answer
25 views

“WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!” constantly occurring, even *after* deleting known_hosts

As per title, lately I started getting the error "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!" after I set up a new server in AWS. I'm on OSX Yosemite (10.10.3) I'm aware of nearly all the ...
1
vote
1answer
427 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
1answer
242 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 ...
1
vote
1answer
207 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 ...
1
vote
1answer
1k 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: ...
1
vote
1answer
1k 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 ...
1
vote
1answer
402 views

scp over ec2 ignoring a directory?

Facing a problem while using scp to download a file from AWS EC2 instance(to which I have assigned a elastic IP),scp is ignoring the my-store folder. But when i access the ec2 instance over ssh, I can ...
1
vote
1answer
88 views

Copying 6GB file with scp finishes at 1.8GB

G:\>ssh phrogz@phrogz.net phrogz@nematode:~$ cd /backup/ phrogz@nematode:/backup$ la total 6057228 drwxr-xr-x 2 root root 4096 2011-04-21 10:25 ./ drwxr-xr-x 24 root root 4096 ...
0
votes
1answer
26 views

CentOs 6, rsync/scp of big file stop at 40% (2.4G)

I'm trying to download from the remote server to local laptop a big file (~5G), but the download stops at 40% of the size (2.4G). I'm using this rsync command: rsync --bwlimit=1200 -rh --progress ...
0
votes
1answer
34 views

scp with system user?

I have a user that was created this way: sudo adduser --system --home=/opt/someone --group someone This user does not have login, but when I login to server with my own user, I can change to that ...
0
votes
1answer
32 views

CentOS bashrc function to email on login

I've a system setup where an email is sent on a user login (line from .bashrc): printf "user details, ip etc" | mail -s "[LOGIN NOTICE] `hostname` - `whoami`" <admin>@<domain>.co.uk ...
0
votes
1answer
54 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
177 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
40 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
1answer
106 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
1answer
36 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.
0
votes
1answer
38 views

Detecting reasons for scp of glob failing

I am scp-ing some files from a remote host in a script. I want to know if anything fails, most commonly due to permissions issues. The files being copied belong to a different user and sometimes the ...
0
votes
1answer
319 views

Executing System call in PHP to run SCP asks for password, every time, even though SSH key is set up

So I am creating a PHP script that uploads an image from my local environment to a remote server. I have my SSH keys set up on both ends and if I simply execute the scp command in terminal it ...
0
votes
1answer
403 views

Debian: What Are Permissions/User Requirement To scp From local server to remote server

I have two LANs with routers tunneled to communicate with my Debian servers over the Internet. That works fine. I can SSH with certificates so as not requiring password to connect local server1 user ...
0
votes
1answer
92 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 ...
0
votes
1answer
222 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
254 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
1answer
110 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 ...
0
votes
1answer
60 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
1answer
72 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
1answer
597 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
440 views

scp permission error

I am trying to do a scp from a server where the user home directory has been given permission 744 recursively. On doing scp I am getting the following error "C0744 1733 database.cpp" . The situation ...
0
votes
1answer
447 views

scp to server with encrypted home directory

I am setting up an ubuntu server to use as remote backup and I plan to use rsync to keep it up-to-date. I've encrypted the home directory though, which now prevents direct connection using standard ...