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

learn more… | top users | synonyms

0
votes
2answers
677 views

Compressing files from SCP on the fly

I am retrieving a large files using SCP (from a linux system to a Windows system), now is there any way of compressing that destination file on the fly, for example: pscp -C ...
1
vote
2answers
747 views

Can i scp to an sftp-only server with RHEL5?

I have a RHEL5 box with sftp access to a central server. No ssh, not anything else but sftp. SFTP is nice, but it's interactive. I've heard of scp variants that use sftp protocol under the hood, ...
0
votes
2answers
3k views

Overwrite if newer : SCP folder transfer

WinSCP has a great feature that only copies newer versions of files when you transfer between hosts. For whatever reason, I'm not able to connect to my remote host via WinSCP so I must use SSH. I ...
4
votes
4answers
2k views

Is there a way to resume an interrupted scp of a file?

I'm occasionally downloading a very large file via scp and there's a small chance each time of the connection dropping and cutting the transfer mid-way. Is there a way to resume it?
6
votes
3answers
5k views

How to gzip a directory, transfer via scp, and decompress in one command?

I frequently transfer large directories over scp and it would be sweet if I could somehow compress the directory, send it, and decompress it all in one. Is something like this possible?
11
votes
1answer
8k views

Using SCP or SFTP with my ssh config file?

Perhaps my google-foo is failing me here... I'd like to connect and upload a mysql dump file via terminal using SFTP or SCP to my remote server using my ssh config file. According to documentation ...
5
votes
3answers
3k views

scp with zsh : no matches found

when I try scp over zsh, I get scp hostA:Descargas/debian-6.0.4-* user@192.168.1.154:Escritorio/Software/ zsh: no matches found: hostA:Descargas/debian-6.0.4-* the same command work in bash
7
votes
3answers
4k views

How to copy a sparse file using scp?

Do we have any option in scp that I could copy a sparse file ? The following command works with ssh, But I am looking for an option in SCP which copies a sparse file. tar -Szcf - /home/myself/test/ ...
1
vote
1answer
202 views

single persistent scp connection program options

I'm using PSCP (part of the putty package) to make several connections to a server but my boss would like to reduce the number of connections to 1. Is there a Windows program like PSCP which only ...
3
votes
2answers
2k views

scp remoteA:file remoteB:

with scp I can get a file scp remoteA:file . and put a file scp file remoteB: but when I try scp remoteA:file remoteB: I get ssh: Could not resolve hostname remoteB: Name or service ...
5
votes
2answers
18k views

How to SCP from linux server to Windows client

I am Puttying into a linux machine and trying to copy a file down somewhere (anywhere) to my local machine. I figure SCP is the best candidate for the job but don't really care, so long as the ...
1
vote
1answer
1k views

I get “lost connection” error while using ssh and scp

mySCP="scp -q -o StrictHostKeyChecking=no -o BatchMode=yes -o UserKnownHostsFile=/dev/null -o HostbasedAuthentication=no" rm -Rf /tmp/logdata mkdir /tmp/logdata $mySCP -r ...
0
votes
1answer
177 views

Use different shell for scp

I want to use a different shell when Im scping files to a remote server as compared to when Im logging in. Is there a way to do this? Note that both scp/remote login is done with the same user, so I ...
1
vote
1answer
443 views

Copying a large number of small text files between two servers over WAN

We have a few thousand small files (2-20KB) to copy between servers in one folder for backup purposes. Currently the process is automated as a cron job and does of SCP copy of each file to the remote ...
7
votes
1answer
26k views

scp'ing using key file as a parameter, How can I do that if possible?

scp -i ~/.ssh/id_rsa.pub events*$date*_QA.log $remote_user@$remote_server:$remote_location Is the aforementioned script incorrect? Am I not doing it correctly? I went to .ssh directory and see that ...
0
votes
1answer
409 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 ...
4
votes
3answers
12k views

scp doesn't work but ssh does

If I want to send something via scp to server: $ scp file server: _____ _____ _____ $ , then three lines are printed and file is not copied. However I can connect to server via ...
3
votes
1answer
5k views

Difference between scp and rsync?

Title pretty much says it all. If I have a folder (mydir/) on server1.com, and want to copy it to a parent folder on server2.com, then what is the difference (performance, security, capabilities, ...
2
votes
2answers
577 views

why use ftp when scp is available?

Many webhosts etc want you to upload files using ftp or sftp. Yet I always found that scp is faster and simple works better (more like the local cp command). What are the advantages ftp has to offer ...
1
vote
1answer
6k views

Can SSH into remote server but can't SCP?

I can SSH into remote server just fine using private key authentication with prompt for passphrase. However I'm getting permission denied when I try to SCP a file using the same passphrase. Here's my ...
1
vote
1answer
594 views

How to use scp between servers

I have 2 Linux machines (CentOS), and I want to transfer a file from one of them to a directory on the other. A co-worker suggested using scp. I've looked at the official docs, and tried getting it to ...
1
vote
1answer
670 views

SSH download file from web server

I need to do a backup on a website, but I need to download locally to a folder on my hard drive. Example: scp name.zip -> MyMac/Documents/Backup This can be done via shell, Terminal, etc. What ...
0
votes
1answer
2k views

Sudo with scp - transfering local file to remote server using ssh

So I'm running the following command scp \desktop\myfolder\deployments\myfile.txt user@host:/path/to/whereyouwant/thefile In an attempt to transfer a file from my local windows 7 machine to a ...
1
vote
2answers
772 views

How to retrieve files to local machine when logged in to SSH?

I know that you can grab files with scp like this: scp user@remote_machine:/path/to/source /path/to/destination However, I'd like to know if there is an easier way to do this, when I'm already ...
0
votes
1answer
191 views

Ubuntu. I have disabled ssh login with root on my server, but how to copy files from local to server now?

I can log in to my server with user name "xyzuser" and then use su -l to get root access. But how do I transfer files? Any suggestions?
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 ...
1
vote
3answers
3k views

Copy files from remote Unix machine to windows

I have a remote Unix machine which doesnt have SMB installed and I cannot install it. However there are some files located on that server that I need on a windows machine. What I need is a way to ...
1
vote
1answer
254 views

.sh script is not executed as the user I want therefore scp does not work

I was using the GUI version of Transmission for Ubuntu. When my torrents were downloaded I ran the following script as user server with the corresponding ssh keys: #!/bin/bash cd ...
0
votes
1answer
674 views

Why do I get a different behavior of the scp command in csh and bash?

Why do I get a different behavior of the scp command in csh and bash? Same command is working in csh shell, but it not working in bash shell. Please can anybody help? bash-3.2$ csh Linux-007% ...
3
votes
1answer
587 views

Any way to restart copying of a large file from where it was interrupted

at work, I sshed to a remote server at another location of my company. I generally use scp to copy files from/to remote server from local Ubuntu machine i work on. Recently while I was copying a file ...
0
votes
0answers
404 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 ...
6
votes
2answers
609 views

SCP recursive file transfer order

Wondering whether it's possible to specify a sort order when transferring files with scp. For example: $ scp -r "user@host:/path/to/download/" . [... files download in a seemingly random order ...] ...
0
votes
1answer
1k views

Copying a folder from one server to another using scp

I am using PuTTY. I am trying to copy a folder from one server to another server in Linux. But I am getting this error on to the PuTTY console as myfolder: Not a regular file Is it possible to ...
0
votes
2answers
744 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 ...
4
votes
3answers
8k views

scp a single file to multiple locations

Can you scp a file to multiple locations in the same command? For example: scp file.txt user@ip-1.com:, user@ip2.com: Or would it be more practical to create a bash script that has all the hosts ...
2
votes
1answer
1k views

Don't copy files that cause an input/output error

When copying files from a faulty hd with cp, rsync, or scp, the faulty files which can't be read anymore are also partly copied to the destination directory. Is there an option to automatically skip ...
0
votes
1answer
286 views

How to use scp to transfer files from WAN to LAN

I have machine A with a public IP address (addr_a), machine B within a LAN of private IP address(addr_b), the router of the LAN has a public IP address (addr_r). If I log into machine A by ssh from ...
1
vote
3answers
37k views

How do I transfer a file to my server using PuTTY?

when calling SCP in PuTTY on my Win7 box, it doesn't let me use C:/, but I also have no idea where on my local machine it will look for files by default. None of program directory or user directory ...
0
votes
1answer
413 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 ...
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 ...
9
votes
5answers
2k views

Windows equivalent of SSH

I don't know Windows very well and only vaguely know my way around the Command Prompt. Is there an equivalent to SSHing into another Windows computer via cmd? Equivalents to SCP and other Linux ...
3
votes
2answers
2k views

scp through intermediate server

I need to copy a file from a computer I can only access via SSHing into an intermediate computer. Home -> server.com -> cluster.com I'm trying to copy from cluster.com to home. I can ssh from ...
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 ...
2
votes
2answers
617 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
2answers
619 views

Mapping sftp/scp as a drive letter without user logins

I'm trying to find a software which could map sftp/scp services to a windows drive letter. I know there are quite a bunch of those available, but i haven't found a single one which could run with ...
1
vote
3answers
3k views

scp certain files only

I am trying to copy changed files to godaddy via ssh. Godaddy is terrible and so they of course do not allow rsync. I can use scp, but I really only want to copy changed files. I don't think this is ...
1
vote
1answer
1k views

can't scp a named pipe

I am trying to encrypt a file on-the-fly, redirecting the output to a named pipe [fifo]. I SSH into my server and run the command: $ mcrypt -k key < file > named_pipe then from ...
19
votes
7answers
8k views

Linux: Continuously synchronize files, one way

Scenario: An IDE is set up on a Linux desktop box, editing PHP files locally. Every time I save a file, I want this change to appear on the linux server where Apache is running. The server has ssh ...
11
votes
3answers
5k views

SCP between two networks

I need to transfer a file between two computers that are not connected to the same network. I got a third computer that can see both networks through a VPN. From the third computer, I can do: scp ...
1
vote
2answers
3k views

How to feed grep output into scp?

I have a file where each line is a file name. Content of the file: file1 file2 file3 ... I then run a grep command to get a subset of the list of the file names. How do I feed the output of the ...