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

learn more… | top users | synonyms

0
votes
0answers
4 views

dropbear dbclient + scp, equivalent to openssh “-oStrictHostKeyChecking”

Using dropbear's dbclient and scp implementation, is there a way to get the same behavior produced by openssh when using the scp option "-oStrictHostKeyChecking=no". In other words, can I make ...
1
vote
0answers
16 views

Can I copy files via scp to specific folder in Windows?

I know I can copy file in "local" folder through command scp ubnt@192.168.1.20:/tmp/system.cfg /home/hp/backup/192.168.1.20/ but I'd like to copy this file to folder e.g.: C:\backup\192.168.20\ ...
8
votes
3answers
29k views

How to SCP from linux server to Windows client

I'm SSHing into a Linux machine using PuTTY 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 ...
0
votes
1answer
15 views

scp files between hosts using ssh local port forwarding

I have a problem about transferring files between hosts. Lab environment is like: My host <-> Host A <-> Host B I only have access to Host A and I want to transfer files to Host B. Host A has ...
0
votes
2answers
52 views

Can't scp file from local to remote host - Permission denied

I have trying to copy some files from local machine to remote host. root@local:~$ scp /var/www/html/file.php root@remote_host:/var/www/html/test/ The result is scp: /var/www/html/test: ...
1
vote
1answer
15 views

scp from ubuntu virtual machine under Windows 7: connect refused

This question is similar to Virtual Box ssh not working on Virtual Box Ubuntu machine. I actually got ssh to work, but now I want to transfer a file from my local machine to the remote machine using ...
2
votes
6answers
3k views

Is there a way to tell if a file is done copying?

The scenario is this: Machine A has files I want to copy to Machine C. Machine A can't access C directly, but can access Machine B that can access Machine C. I am using scp to copy from Machine A to ...
0
votes
1answer
16 views

input/output error while copying PNG files from linux server to desktop using scp in cygwin

I am trying to copy some png files from linux server onto my local desktop running windows 7. I am trying to copy the files with cygwin using the scp command. I do not get any syntax errors but all my ...
5
votes
1answer
3k views

Can I make scp ask before overwriting an existing file?

Is there a possibility (man scp didn't reveal any) to make scp interactive like cp -i? That is, scp asks, if the target exists, if it may overwrite it? If yes, does it work locally and remote? If ...
0
votes
0answers
27 views

SCP Transfer in Mac the result is LS_COLORS='';

I'm having trouble copying files via scp it says LS_COLORS. Here is the result: Jehcys-MacBook:~ jehcyadorna$ scp jason@lvlivefeed1.com:/var/www/html/FamilyHelpNetworkUSA.com/images ~/Desktop/ ...
0
votes
0answers
31 views

Logging in to ssh doesn't ask for password, but scp does

I am logging in to my (Rackspace) server using ssh via putty where it doesn't prompt for a password. But using the same IP if I transfer files via scp, I am prompted for a password. How could I ...
2
votes
3answers
51 views

How to make a local tar file of a remote directory

This link describes how to copy tarred files to minimise the amount of date sent over the network. I am trying to do something slightly different. I have a number of remote files on different ...
0
votes
0answers
23 views

Running SCP through PHP does not yield same result as CMD

I have a Microsoft Windows Server 2012 R2 Foundation running an MSSQL server and PHP. My goal is to replicate tables from the MSSQLdatabase to a Debian Wheezy MySQL database. I have successfully ...
1
vote
1answer
30 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 ...
2
votes
1answer
114 views

chroot: failed to run command ‘/bin/bash’:

I am trying to modify a kernel image before using it for qemu. I am trying to add a compiled binary to the image. I am using 64 bit Linux 14.02. What I am doing is, linaro-media-create --image_file ...
0
votes
1answer
18 views

Send file from windows local host to remote server via ssh

How can I send any file from a windows local host to a remote server via ssh? If possible, using only shell command line.
0
votes
3answers
17k views

how to copy a file from linux to windows with scp command?

I would like copy a backup file from image vmware linux to windows but I don't know how to process it? I tried: scp /source/backup.tar.gz admin@x.x.x.x:/c:\ProgrammefilesC:\Documentsand ...
0
votes
0answers
37 views

How can I do ssh or scp without restarting the sshd service

I had a problem related to ssh about a week back -- Ssh/Ping Problems in Mac Yosemite through wifi but not ethernet. I was able to solve the problem. However, now I am facing another problem, where I ...
28
votes
2answers
15k views

scp between two remote hosts from my (third) pc

I have two remote hosts. host1-> 10.3.0.1 host2-> 10.3.0.2 Both run an ssh server. The ssh server listens on port 22 in host1 and on port 6969 in host2. Now, using my local machine, I need to copy ...
0
votes
1answer
26 views

scp checks existence in the wrong order

I've just come across a what I think is an odd behavior in scp. Consider the following: root@box:~$ scp foo.txt root@example.com: root@example.com's password: foo.txt: No such file or directory I ...
2
votes
0answers
47 views

SCP - The authenticity of host can't be established (But cant enter anything at prompt)

In windows 7 command prompt I enter: scp -W Scp\password.txt -P 22 xxxx@xxxx.xxxx.com:/home/xxxx/xxxx/xxxxxxx.csv After this I get the message: Do you want to trust this new host key and ...
3
votes
3answers
8k views

Copying remote file to a specified path on local desktop using scp

I was trying to copy a file from remote server using SCP but its giving the following error. bash-3.2$ scp username@server:main.php C:\main.php ssh: Could not resolve hostname C: hostname nor ...
1
vote
0answers
74 views

Cygwin: scp/ssh is slow

I'm using rdiff-backup for backuping my data. Since some machines are using Windows I installed sshd and rdiff-backup with cygwin there. The backup works but is pretty slow. I then did some testing ...
2
votes
3answers
11k views

SCP from Windows using the colon-inclusive full path

I'm trying to run SCP on my Windows box through a batch file. I want to do something like: scp "C:\myfile.txt" user@host:path Of course scp thinks that "C" is my source host and "\myfile.txt" is ...
2
votes
1answer
21 views

Copy remote logfile over 2 hop SSH sessions, without the need for keying passwords

I wish to get logfile from a remotePC via a gatewayServer to my local PC without keying passwords. The gateway server used acctA@gatewayServer. The remote PC used acctB@remotePC. I have setup the SSH ...
0
votes
0answers
13 views

How to specify ssh key for use with Gigolo for temporary session?

I can't determine any way to specify an identity key file in gigolo. I have had success using ssh config to associate a keyfile with a name and connect to that name with gigolo, however this is too ...
0
votes
1answer
31 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
71 views

How to send a file to another computer with bash script?

I know that you could use sftp to send a file, from the command line - but I don't know how to do this in a .sh file. Is there a way to do this is one line, or many lines, as long as it's possible in ...
1
vote
0answers
30 views

Check for a failed copy with scp

Is it possible in my code to verify if the file is well copied or not ? ssh -t root@$machine -x "sshpass -p 'ubuntu' scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null /home/MyFile.txt ...
0
votes
0answers
26 views

Multi hop SSH with certificate on bastion server

I have this situtation: my local machine a login server (with token implementation) a set of machines accessible only with another authentication from login server (token implementation too) this ...
3
votes
4answers
5k 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 ...
25
votes
8answers
21k views

Scp over a proxy with one command from local machine?

I have my local.machine, the proxy.machine and target.machine. local.machine doesn't have direct contact with target.machine, but needs to go through proxy.machine. I want to scp a file from ...
13
votes
5answers
16k views

How can I copy multiple files over scp in one command?

I have to transport a lot of files from one PC to another (both Linux). I would like to use scp for that, but scp only allows for transferring one file at a time. How can I do this? I have No ...
1
vote
2answers
76 views

Authentication with ssh and scp works but not WinSCP

I have a Ubuntu server with 3 user accounts (root, user1, user2). user1 has access via WinSCP, scp and ssh. No problems here. Then I've created another user2 but with this user I can't access the ...
2
votes
3answers
151 views

How can I have very large files/directories copied from one host to another “offline”?

I intend getting a vps server real soon for some of the resource-intensive sites I manage. I live in a country where 1Mb/s internet speed is a luxury and constant uninterrupted electricity, a myth. ...
1
vote
2answers
7k views

scp + copy the same links

Why does the scp command not copy links from the local computer to the other? scp -rp dir linux:/dir_target How can I copy the links when in the source directory I have both files and links?
45
votes
15answers
69k views

Map remote drive in Windows over SSH

Does anyone know of a good (hopefully free) tool that can be used to map a Linux server accessible over SSH/SCP as a Windows network drive? EDIT: SFTP not supported EDIT2: Windows File Sharing/Samba ...
1
vote
3answers
53 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 ...
0
votes
0answers
35 views

Forcing server to server copy to use LAN and not WIFI and “Smart” SSH GUI utility?

I have a simple LAN setup consisting of 4 macs with the included ssh servers turned on (all on Mavericks/Yosemite) I regularly sort and move files between the ssh servers. I'm looking for a tool that ...
2
votes
2answers
2k views

Homeserver for the command “scp user@server:file localhost@server:mycomp/”?

Problem: to get the cammond "scp file user@server:" (source) work vice versa. I need a server on my local machine so I can copy files to-and-fro like: ROOT+SERVER+FILE <---- Commands? ...
0
votes
0answers
32 views

Reverse scp to Ubuntu in Vmware ,Error reading:connection refused

I've successfully cross-compiled and installed dropbear on my embedded board. I have Ubuntu 10.04 installed in VMware Workstation. Openssh-Client/Server ( dpkg --list|grep openssh ) are all installed ...
1
vote
3answers
14k views

scp error: “Permission denied (publickey). lost connection”

I tried to scp an svn dump to savannah, but I got the following error at the end. Permission denied (publickey). lost connection The scp command and verbose output are below. Any ideas? ...
15
votes
11answers
54k views

WinSCP client for Ubuntu [closed]

Are there any GUI clients for Ubuntu which can remotely connect to another Linux box over SCP? I heard about the fish:// protocol and Konqueror (which is for Kubuntu using KDE), but I am looking for ...
0
votes
1answer
42 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 ...
3
votes
5answers
49k 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
2answers
3k views

scp protocol error: bad mode

when I try a scp transfer I get this error: protocol error: bad mode PD: I can establish a ssh connection.
0
votes
0answers
51 views

Send tex file to windows machine using scp

I am trying to send a small tex file to a windows machine from a linux server. I have ssh'd into the remote linux server. Would like to get the file onto the desktop on the windows machine. I have ...
0
votes
1answer
42 views

scp sometimes adds a '-f' flag to my command

When using SCP to copy from a remote host to local (eg: scp -v foo-host:/source/path dest ) I look at the verbose output and notice this is the command sent over SSH: debug1: Sending command: scp -v ...
0
votes
2answers
106 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 ...
4
votes
4answers
4k views

WinSCP screws up line breaks in files – how do avoid?

I'm getting pretty sick of how WinSCP screws up line breaks. this is line 1 this is line 2 Gets turned into this is line 1 this is line 2 I could just use FileZilla for FTP and Putty for SCP (I ...