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

learn more… | top users | synonyms

3
votes
1answer
207 views

Linux directory has become a file

I had a directory called datap where I used to keep (almost exclusively) media files of various types to upload to a tomcat servlet. Recently, when I tried to cd into it, I received the following ...
3
votes
1answer
70 views

SCP files to a server in LAN from WAN

I need to SCP a bunch of files from my local machine to a machine in a LAN via a machine with a public ip. Like this: my machine -> machine with public IP (XXX.XXX.XXX.XXX) -> machine with private ...
2
votes
1answer
379 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 ...
2
votes
1answer
188 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 ...
2
votes
1answer
455 views

Why does cygwin's scp set the permssions to 000 when copying to Linux?

When I'm copying files from my Windows box to a Linux box using cygwin's scp, the permissions come out as 000. This doesn't happen when I copy from Linux to Linux, so I'm thinking it's related to some ...
1
vote
1answer
504 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 ...
1
vote
1answer
424 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

SSH SFTP: transfer local directory to remote server

I can't seem to transfer a simple local folder to a remote server via SFTP or SSH. I feel like the issue has to do with absolute paths or home directories, but here's what I've tried: scp -r ...
1
vote
1answer
452 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
217 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
2k 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 ...
1
vote
1answer
75 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
17 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 ...
0
votes
1answer
29 views

Unable to send files via SCP

I tried using the scp command with the -i option to transfer the file from local machine to remote EC2 instance: Akhis-Macbook-Pro:~ aswinakhilesh$ sudo scp -i Mykey.pem FileA ...
0
votes
1answer
19 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
21 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
1answer
64 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
225 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
63 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
72 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
106 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 ...
3
votes
0answers
478 views

scp no such file

I'm on mac osx getting a file from a remote server. I run the following command: scp remoteusername@remotehostip:/home/username/file.tar ./Users/localusername/Documents/specialdir I get the ...
3
votes
0answers
4k views

scp exec request failed on channel 0

I am trying to scp files from one computer to another however I get a "exec request failed on channel 0". When I use ssh however, I can get to the machine with no problems. I am using the scp function ...
2
votes
0answers
2k 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 ...
2
votes
0answers
156 views

Ubuntu SSHFS doesn't sync

I am trying to set up a Ubuntu-machine for web development, and thought i'd start working with SSHFS instead of the annoying FTP-protocol. I installed SSHFS through apt-get. I've created a folder in ...
1
vote
0answers
22 views

scp doesn't work when my .bashrc is echoing to console

Ok, so I have used linux for a long time but this is the weirdest thing I have encountered in a long time. Maybe I just don't do a lot of scp so probably missing something simple here. So in my ...
1
vote
0answers
48 views

Using scp with an ssh connection - can I copy files directly between remote machines?

I have ssh'd into a remote machine and on that machine run scp to copy files from another remote machine. I assumed that the files would be copied directly between the two remote machines but the ...
1
vote
0answers
89 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. ...
1
vote
0answers
157 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) ...
1
vote
0answers
384 views

Inconsistencies with SCP for Ubuntu and Windows Server 2003 (using CygWin 1.7.x.x)

Some days ago I was able to scp to the remote server from my windows server 2003 using cygwin to copy the id_rsa, using scp (id_rsa.pub location) user@example.com now it(scp) seems to be not working. ...
1
vote
0answers
251 views

lftp mget equivalent for put?

Reading this answer, it seems an awesome way of transferring a ton of tiny files between two remote machines is lftp's mget command. However, I'm using two machines without root access, and only the ...
0
votes
0answers
27 views

Copy video from my own machine to EC2 server by running scp command (JSCH)

I need to SCP a video file from my local machine to a EC2 cloud server using a Java program. I am using the JSCH library to do so. So far I can connect to the EC2 server and can run basic commands on ...
0
votes
0answers
15 views

How to rsync merge two paths into one; opposite of --inplace

I have a large remote directory: remote://server/pathA/zupertoll And a large local directory that is 95% the same as the remote directory: local:///home/pathB/zupertoll I want to copy zupertoll to ...
0
votes
0answers
25 views

ssh proxycommand equivalent on server

Lets say we have three machines me, proxy, server I would like to have an ssh connection to server, so normally I would do me$ ssh proxy proxy$ ssh server server$ # and here we are ssh proxy ...
0
votes
0answers
150 views

SCP and SSH connect, but FileZilla and CyberDuck can't

I'm on a Mac. I'm trying to connect to a remote Ubuntu server. I can successfully connect to it using ssh and scp commands in the shell. For example: $ scp -i ~/Projects/keys/foo.pem foo_config.ini ...
0
votes
0answers
26 views

Shell Script to copy huge files from server to server

I want to make shell script to copy files of 40 gb in size from solaris server to linux server ? Can anyone tell me the best way to make a script . Am new to shell script . help me
0
votes
0answers
45 views

What's a reliable command-line Linux app for SFTP uploading?

I have to upload a large number of files via SFTP. I need a command-line app to do this on Linux CentOS 6. Yes, I've searched on Google and haven't found any that are reliable. I tried to use scp ...
0
votes
0answers
136 views

Debian Jessie/Sid - troubleshooting very poor network performance

I'm having problems with my local file server, which is running Debian Jessie/Sid. The server is running Samba, as well as SSH. I've been experiencing very low transfer speeds, and I don't know where ...
0
votes
0answers
60 views

How to properly use SCP to copy from remote to local?

I am trying to copy a file from a remote windows machine onto a local linux machine, but cannot seem to get the syntax right. For some reason, whenever I use SCP, it is just creating a new local copy ...
0
votes
0answers
26 views

What do I have to do to make this file not public?

I am trying to SCP some files to an AWS server. However, when I type in my command, it tells me that I am permission denied (publickey). I have chmod 400 ed the key, like Amazon said to. What more do ...
0
votes
0answers
85 views

Slow SCP tranfers over IPv6 VPN IPSec which has IPv4 private subnets

I have 2 hosts connected with IPv6 VPN. I am using IPv4 internal addresses for machines connected internally and use subnets addressed for these in ipv4. When a host wants to scp a 1 Gig file pull ...
0
votes
0answers
26 views

scp shows incorrect and extremely large file size, cygwin local, debian remote

I attempt to copy a 18MB file from a remote server to my local computer, using scp under Cygwin. scp -r froz@rserver:nov.6.2013.tgz . But scp shows like the following nov.6.2013.tgz ...
0
votes
0answers
130 views

SCP over NAT stalls at 2112KB

I have two systems (A and B) on different subnets, with one dual-homed box (C) that can see both. I use iptables DNAT on C to port-forward SSH to B, so that A can run ssh -p 12345 hostC to connect to ...
0
votes
0answers
99 views

how can I pass a windows path to Putty pscp?

how can I pass a windows path to Putty pscp? pscp -C -load sessioname c:\program files\some folder\some file.pdf username@anotherWindowsHostname:c:\program files\other folder. all the examples out ...
0
votes
0answers
125 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
0answers
222 views

trying to transfer a file from my computer to a unix server

I m trying to automate the deployment process wherein i follow the following steps- 1.Run a Ant Script to build a .ear file 2.Login to the unix server using putty(SSH Connection) providing the login ...
0
votes
0answers
348 views

scp not working

I need to copy a file from remote machine(which is using Windows OS) to my machine(It also uses Windows OS) using ssh in java.So i used JSch sample code exec to do this work.In this i gave scp command ...
0
votes
0answers
272 views

Automation script to SCP from UNIX to Window Server

I'm new to server/Unix trying to transfer file between AIX to Windows I'm trying to create SCP or SFTP script that will run on cron and transfer text file on /usr/apps/11.111.1.11.log file to window ...
0
votes
0answers
79 views

When I do SCP of big files my Mac becomes very sluggish

Whenever I try to use SCP to upload files to my server, performance goes down. It slows down so much that I cannot even see the mouse pointer. I have a MacBook AIR i5, with 4GB of RAM. I don't see a ...
0
votes
0answers
339 views

scp fails randomly

I'm trying to set up a regular scp between two linux based systems (one with SLC5, other running Ubuntu). I seem to be able to happily copy in one direction, but not the other. Copying from the ...