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

learn more… | top users | synonyms

1
vote
2answers
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? ...
0
votes
2answers
103 views

Log in using SSH without password

On my server, I've got openssh-server and a special account without password. I'm creating a shell script, that must be used without user input. For example $(ssh dummyUser@dummy.com) I need script ...
38
votes
6answers
44k views

scp to remote server with sudo

I have a file on server A (which is behind a NAT so not directly addressable). The file needs to be copied to server B in a directory restricted to root. I have an account on server B with sudo ...
29
votes
10answers
26k 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 ...
0
votes
1answer
21 views

Transfer file from local machine to port forwarded machine

I have to transfer a file from my local machine to remote server 2 from remote server 1. I have port forwarded the remote server1(Amazon Ec2) port 2222 to remote server2(Amazon Ec2). I am connecting ...
2
votes
0answers
16 views

msys2 network performance woes

With a fresh install of msys2 32-bit (needed for git-annex) from https://msys2.github.io/ on Windows 7 SP1 64-bit, I'm seeing incredibly slow network transfer speeds on wget, ssh, rsync, etc. For ...
46
votes
3answers
24k 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 ...
13
votes
3answers
19k views

Allow incoming SCP connections on Mac

How can I allow incoming scp connections on my Mac (OS X 10.6.4) from other machines on the same network? Every time I’m trying to scp something on the machine I get a Connection refused error. ...
1
vote
1answer
40 views

Are there any current multi-threaded sftp Windows clients? [closed]

I found bitkinex.com had one, but is rather old and doesn't support the latest encryption. winSCP has it on it's plan, some time way into the future, but doesn't seem likely to happen.
94
votes
3answers
86k views

What's the difference between scp and sftp?

Usually, I use the scp command to transfer files on *nixes. What's the difference between SFTP and SCP? Don't they both work on SSH?
-1
votes
1answer
23 views

WinSCP/PuTTY: Cannot move file on server via sudo: Permission denied

I have uploaded a file to a remote Linux server. current directory is: /home/user/file.war Now i want to move the file into tomcat webapps folder and overwrite the existing version: The directory ...
0
votes
0answers
35 views

stty: standard input: Invalid argument error when scping files

When I try to scp a file to my remote server I get the following error: stty: standard input: Invalid argument This is caused by a line in my .bashrc file: stty -ixon If I remove that line, the ...
0
votes
2answers
87 views

Tab Completion Broken on SCP with OpenSSH 1:6.2p2-6ubuntu0.1

Here is my scenario: I want to transfer ~/foo.txt to a server aoneill@bar. I start typing in my command line: aoneill@aoneill-Laptop:~$ scp fo At this point I hit <tab> to complete the file ...
27
votes
4answers
19k 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.
0
votes
2answers
24 views

Moving data across environments

I have a very lame situation at the moment about moving data across environments at work. These data are database dumps, Solr indexes or simple images. Our process is: "tarball the data" + ...
0
votes
1answer
41 views

scp copy to external hard drive ambiguous target

I try to copy files from a linux (ubuntu) machine to an external hard drive mounted on a mac but got an error message : scp: ambiguous target What I did is, I'm on a mac, ssh to the linux machine ...
2
votes
2answers
33 views

copying a file from remote node to my own system

I am using the following command to move a file (sender.log) which is on a remote node to my own PC: scp linux-Vostro-1014@example.com:sender.log /root/Desktop When I use this command it asks: ...
1
vote
2answers
2k 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 ...
0
votes
1answer
53 views

SshDroid SCP: connection refused

I'm trying to copy some files from my PC to my android device, yet I'm having trouble with the transfer. I connected easily using SSHDroid app, but scp returns ssh: Exited : Error connecting : ...
1
vote
2answers
335 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 ...
5
votes
2answers
4k views

How can I scp when path and / or filename to copy has spaces?

I have in a remote remote_host a file like this: \home\user\path with spaces\filename with spaces.ext And I want to scp it to current dir .. How can I do that? Thanks!
2
votes
2answers
44 views

SSH/SCP hanging

I have two computers connected through an ssh connection. They are placed few miles away but the Internet connections is quite bad. When I try to exchange a bit more data, the ssh console just hangs. ...
5
votes
5answers
9k 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 ...
7
votes
2answers
18k views

How can I get the scp command to overwrite the destination folder

I am using the scp command to copy some files to a remote pc, as you do with scp :) I note that the default behaviour of an scp copy for files is to overwrite any existing files. Now I want to copy a ...
1
vote
3answers
101 views

How to copy file from windows laptop to Linux remote virtual server

There are already quite a few topics on this issue here on StackOverflow However, I have spent the last 3 hours trying all of them, but am unable to fix this. I am trying to copy a file from my ...
0
votes
1answer
46 views

Transfer Files Between 2 Server

Is there any recommendation to transfer files between 2 ubuntu server faster? I've already tried scp and ftp, and it take a day to transfer about 15 GB files
47
votes
16answers
79k 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 ...
7
votes
2answers
13k views

Is there a tool like WinSCP for MacOS?

I used to use WinSCP to log into my remote server. I need to login with an ssh key and move the files from and to the remote server. So far I have not find any tool with the same features for MacOS. ...
3
votes
1answer
292 views

copy files from one remote machine to another

I work at a university, and we have a remote machine(1) that I ssh into. To do this from my laptop, I believe that I have to first ssh into the university system and then ssh into the particular ...
15
votes
6answers
8k 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
25 views

how to scp between two servers that share same .pem

I have two server which I use same .pem file to connect to them. .pem file is only available on my local machine I can transfer from/to local machine to either of those server but I can't transfer ...
0
votes
1answer
26 views

Why does my RSA key look different on my server than when I try to connect?

I am trying to connect to my Linux server using PuTTY (and SCP specifically) from Windows. When I first tried to connect, as when I try to connect from any new machine, I get a warning about ...
1
vote
1answer
185 views

Best way to transfer files from Windows to Windows via Internet

I’m looking for the best way to transfer files from my computer to another person’s computer. We both use Windows and I can use some external programs like TeamViewer for file transfers but I found ...
3
votes
2answers
79 views

port forwarding and copy back to local machine

I am typically logging in on a network via ssh and then to yet another computer again via ssh to my final destination computer. For instance a home server, and once there to one of my family's ...
0
votes
0answers
73 views

why does the scp command timeout when moving data from Unix to Windows 2008 R2

I am on UNIX environment using secure copy command to move files from one Unix box to another. No issues all is good. Now I have a need to move data from Unix to Windows Server 2008 R2 platform. Can ...
20
votes
2answers
54k 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 ...
3
votes
1answer
138 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 ...
4
votes
6answers
15k views

SSH from Windows to Linux without entering a password

I am trying to use ssh/scp from Windows to Linux without having to enter a password. This is what I have done, and it doesn't seem to work: generated public and private keys using Putty Key ...
9
votes
4answers
13k views

SCP from one external server to another

I am trying to use SCP on my local server to copy a file from one remote server to another remote server (both remote servers use a custom port (xxxx) I am trying: scp -r -P xxxx ...
3
votes
5answers
65k 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 ...
1
vote
3answers
164 views

How do I copy a file using ftp from machine A to machine B using command

I want to copy a file from source machine A to destination machine B, using command and want to use ftp. I tried this scp /home/varun/Desktop/Test.java ...
0
votes
1answer
55 views

SCP not working in Pexpect

I am trying to do SCP and copy some files from the remote server. Since i dont have root permission i use sudo with the command when it prompts for password i am sending it using pexpect but i am not ...
9
votes
4answers
26k 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 ...
1
vote
0answers
33 views

Relay SCP to server ? How?

My Linux servers are behind a gateway server to which I ssh to get a menu : # ssh expNoob@gateway01 0 | root@srv01:SSH 1 | root@srv02:SSH 2 | root@srv03:SSH and pick a server to land ...
1
vote
1answer
213 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 ...
0
votes
1answer
2k views

scp ssh: connect to host 10.0.0.109 port 22: No route to host lost connection

I use SCP command on Linux Debian to transfer a file to my colleague via LAN. But I encounter the problem: $ scp filename.file username@10.0.0.109:/tmp ssh: connect to host 10.0.0.109 port 22: No ...
4
votes
2answers
4k views

SFTP, SCP, Secure Webdav: which is the most suitable?

currently, I am hosting a webdav share setup in order to store files I need anywhere I am. It is available via HTTPS. Things are that I do not need all the HTTP machinery -i.e. my nginx http server ...
-1
votes
1answer
73 views

Uploading a file through linux terminal

I looked at a previous question How to upload local file to server through Linux terminal and I am still having trouble performing the upload. I have downloaded a file to my computer and I am looking ...
0
votes
1answer
56 views

Remote copy of LMDB

I want to migrate an LMDB from my local machine to another remote machine, but there is some weirdness about the file size. According to the filesystem, an LMDB is a directory containing two files: ...
1
vote
1answer
122 views

Copy 1-hour-old files from another machine

I have this part in my script where I would copy files from another machine to the current machine running. scp user@samplemachine:/home/user/test/* /home/user/test But then I should only copy files ...