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

learn more… | top users | synonyms

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
734 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
190 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?
1
vote
2answers
654 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
244 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
622 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
535 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
373 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
508 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
682 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 ...
3
votes
3answers
6k 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 ...
1
vote
1answer
808 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
243 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
30k 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
386 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 ...
18
votes
2answers
52k 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 ...
6
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
2k 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
526 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
596 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
2k 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 ...
14
votes
7answers
6k 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 ...
10
votes
3answers
4k 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
2k 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 ...
1
vote
1answer
1k views

Is there a way to bypass a proxy using SCP?

How can I use SCP to copy a file from my local machine to a remote server, bypassing the proxy? When I use scp -r <my_folder> <remote_user>@<remote_machine>:/home/test it gives the ...
3
votes
4answers
4k views

How to copy from 1 computer to another computer with Linux shell commands?

I want to copy a file (home/remote_computer_user/Desktop/test1.txt) from my remote office computer (a permanent URL + open port) to my home computer (home/home_computer_user/Downloads/). How can I do ...
0
votes
1answer
1k views

Connecting to different ports via scp and ssh - why a different flag?

I routinely run sshd on a non-standard port (ie, not 22). When ssh-ing to my machine I use the -p flag. However, when using scp, the flag is -P (lowercase vs uppercase). Since they come out of the ...
0
votes
2answers
754 views

scp to remote server message.."Hello, I'm freeFTPd 1.0

I'm trying to scp files from a Linux box to a remote server, but after i put the root password for the server, it gives the message "Hello, I'm freeFTPd 1.0" I tried using put command but nothing is ...
0
votes
2answers
321 views

Writing script for mac (scp alias with default params)

I have got to write this lines often: # from project1 dir scp app/models/user.rb root@mydomain.com:/var/www/project1/app/models # from project2 dir scp app/views/posts/index.html.erb ...
3
votes
4answers
1k views

How can I know if a given file has finished uploading from another location?

Let's say we have machine 1 and machine 2. Machine 2, which is linux based, is receiving a file (let's say cat.jpg sent via SCP from machine 1 (doesn't really matter which operating system..). How ...
2
votes
1answer
153 views

copying files by using cat on a network interface ?

when using scp to copy files over ssh connection , it can be sometimes quite slow for me (a 12 meg file takes 1 or 2 minutes). once i saw a guy cancel a copy that was going too slow, and then copy it ...
8
votes
3answers
9k 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.
11
votes
5answers
5k views

Is it possible to SCP from a remote to local whilst logged into the remote and without knowing the local's IP address?

I regularly find myself wanting to copy a file from remote terminal session to my local machine. Usually I log out of the remote session and call an scp transfer from local to copy the file from ...
0
votes
1answer
1k views

how to move files from one server to another server using scp?

I am trying to move uploaded file to another server using scp. following is the script i am using and error; "mv.sh" #!/bin/sh now=$(date +"%y-%m-%d-%M") cd /var/www/upload if [ -f ...
3
votes
2answers
340 views

Ubuntu - Problem with SCP / Git / Rsync

I'm having a really weird problem. For some reason, I can't scp, rsync, git pull or git push files larger than 1406 bytes. I can clone an entire repo no problem. I have no idea how to troubleshoot ...
1
vote
1answer
77 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 ...
16
votes
3answers
6k views

scp files via intermediate host

I have access to 3 machines, A, B, and C. The only possible (ssh) connections are: A -> B B <-> C I need to get files from A to C, so I could scp the files from A to B, and then scp them ...
2
votes
6answers
383 views

I installed Ubuntu on my parents computer. Besides SCP, is there a lazy way to drag and drop movies from my computer to theirs?

I installed Ubuntu on my parents computer. Besides SCP, is there a lazy way to drag and drop movies from my computer to theirs? Should I use a virtual desktop? maybe a nautilus plugin or maybe scp ...
1
vote
2answers
482 views

SSH transfer speed over a LAN network

When using ssh, will my files be sent over the internet or over the LAN network? How to configure correctly?
3
votes
5answers
6k views

SCP from remote Linux system to Windows

I'm on ssh accessing my user account at school. I'm trying to download a particular file from my linux account to my current windows file system that Im on right now. Can i use scp? If yes Id really ...
1
vote
3answers
659 views

scp using a lots of memory

I'm running into a problem with scp under some conditions that are associated with transferring multiple GB files to a SUSE® LINUX Enterprise Server 9 (kernel 2.6.xx) system on an SGI Altix350 w/ ...
3
votes
1answer
331 views

Changing the auto-save frequency when editing files via Tramp / SSH

I am using Emacs (23.3.1) with Tramp to edit files on a remote SSH server. Right now these files are being auto-saved / auto-uploaded about once every minute. During each upload, anything I type does ...
1
vote
3answers
489 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 ...
5
votes
4answers
7k views

bash: using scp in cron job fails, but runs succesfully when run from command line

I am trying to use scp in a bash script run by cron (I am running this on Ubuntu 10.0.4 LTS). The script works fine (i.e. transfers and copies file1 and file2 to/from the remote server, when I run it ...
11
votes
1answer
5k views

Reverse SCP over SSH connection

I pretty often need some file from some server when I'm on my laptop. But if I don't know where that file is, I have to ssh into the server, look around, exit, and then scp server:file .. If I'm ...
2
votes
3answers
4k views

how do I copy from a remote linux machine to a local linux machine?

I sshed to a remote machine and want to copy some files from there to my local machine. Both are running linux. My local machine is behind a firewall, so I can't do "scp file_on_remote ...