Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [scp]

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

0
votes
1answer
13 views

SSH can't send command

Description I first encountered this problem when I tried to use SCP to another computer over LAN, and get zsh:1: command not found: scp Now before anyone asks: yes I have SSH installed. I can use ...
0
votes
0answers
15 views

scp Upload doesn't work but WinSCP does [on hold]

I'm trying to upload files to a customers server in China from my Ubuntu workstation. Connections via ssh work fine but when I try to upload files via scp (scp file user@server:~), the file is created ...
0
votes
0answers
34 views

File integrity is occasionally compromised after being transferred via Wifi / ssh with with scp and rsync

I have a Raspberry Pi 3 that I use as a media server (with Plex). The RPi3 is connected to my home LAN both via WiFi and via Ethernet cable. I use the WiFi to transfer files from my laptop to the RPi3 ...
-1
votes
1answer
43 views

scp ask to provide passphrase for key without one

I do the following command sudo chmod 400 /home/ec2-user/key sudo scp -o StrictHostKeyChecking=no -o NoHostAuthenticationForLocalhost=yes -o UserKnownHostsFile=/dev/null -i key ec2-user@${...
0
votes
1answer
29 views

How to make rsync copy to symlinks?

I have to push data from a server to another. On the source, I have a folder (named vhosts) containing files, folders and symlinks. I want all this to be copied as files (not as symlinks) On the ...
1
vote
0answers
40 views

SSH Unreachable after large SCP transfer

Recently built a new i9 server; it is running ubuntu 14. This has happened 4 times in the last 2 months, and today it may have caused a loss of a day's worth of experimental data. Here is what ...
0
votes
1answer
19 views

scp only creates a local file, does not copy to linux server

I have a raspberry pi set up for a class, that I am supposed to use to access a Linux server on campus. I can SSH into the server completely fine. When I'm using the command line locally, however, I ...
0
votes
1answer
55 views

Working ssh but cannot use scp. How?

We have this requirement that we may able to communicate with each other by SSH but we cannot copy files from the other computer using SCP. For example, we have 2 computers, which is computers 1 and ...
-1
votes
1answer
177 views

Copy file from Windows to Linux, when a shell script is executed

I have a program on Linux server, which runs a shell script on Linux server. Say /tmp/ShellScript.sh Now I want to copy a file placed on my Windows Machine location C:\WindowsFolder\FileToCopy to ...
0
votes
0answers
26 views

Running stand alone SCP server (e.g. scpd) on Linux?

Is there a way to start a stand alone scp server as a user process in Linux. Listen to a non-standard port, e.g. TCP 2222 with arbitrary username and password?
0
votes
2answers
117 views

Automatize multi-hop SSH and SCP with passwords

I want to access some host from my personal computer, but I have to access an intermediate server first, because the final destination cannot be seen from public internet. The thing is that I have to ...
0
votes
0answers
107 views

ssh working, but not scp and sftp, on bionic

I upgraded from Xenial to Bionic, and now scp and sftp do not work any more. ssh works. When I try to transfer files from another machine to the Bionic machine, I get the message: lost connection I ...
0
votes
1answer
35 views

SCP off the most recently modified file in a remote directory

Is there a simple command to SCP the most recently modified file in a directory on a remote host? I can figure out how to do that from local to remote... something like: scp ``ls -Art | tail -n 1\`` ...
0
votes
1answer
36 views

Transferring a file from one server to another server, initiated from a third computer

I'm trying to make a site to site transfer with the following configuration. I have an old server (server-A), the new server (server-B), and my workstation (wks), on which I'd like to launch the ...
0
votes
1answer
251 views

Reoccurring ssh_exchange_identification: Connection closed by remote host error MacOS (Only fixed by resetting ssh each time)

I am spinning up multiple remote instances via Google Cloud and scp-ing scripts to these instances to run them and get the results scp-ed back to my local computer. Things start smoothly but after a ...
1
vote
1answer
176 views

SCP Error Message “Operation not supported”

I was recently stuck for too long on a rookie problem. I tried to use scp to copy over a directory of files to my local machine by executing the following command: scp -r myUserName@myhost.mydomain....
0
votes
0answers
16 views

xen network unable to handle large scp files on local network

I have Xen running on an Ubuntu 16.04 host, with several virtual machines: static public IP for mail server static public IP for code repository static private IP for test system Connectivity ...
0
votes
0answers
20 views

Io fall very low when using network

Hello I use manjaro linux from some mounth. My computer work really well but when i am downloading something it start to be really slow even when i have an ssd and fiber. Yesteday I tried to download ...
2
votes
0answers
49 views

Potential problems in updating openSSH from 5.3p1 to 5.7p1 or 7.7p1(latest stable)

I have 3 Red Hat 6.6 servers with openSSH version 5.3p1 I require use of the scp -3 option which was not introduced until 5.7p1. Ideally, I would like to upgrade to openSSH 7.7p1 which is the latest ...
-1
votes
1answer
128 views

scp causing “'C:\ Program' is not recognized as an internal…”

I am trying to scp a file from a local machine to a remote one using the following command: scp "local/file/path/file.txt" user@remote.server:"remote/file/path" After entering the remote user's ...
-1
votes
2answers
207 views

SCP prompts for password when using identity_file but SSH doesn't

I have created a new key using ssh-keygen -t rsa without a passphrase. I have then transferred the key using ssh-copy-id root@192.168.x.x and then ssh'ed to the host using ssh 'root@192.168.x.x' or ...
0
votes
1answer
129 views

ssh tunnel between two servers with keys

I have two servers, A and B, using two different keys. I work on server A, and need to transfer files to server B. But I have trouble transfer the files, because of the server connection refused when ...
0
votes
3answers
99 views

Secure copy over two IPs on the same network to the local machine

I am trying to write a bash script to ssh first into IP1(asks for a password) from my localhost machine and then ssh into IP2. Once in IP2 I want to scp to my local machine. IP1=192.168.10.10 IP2=192....
0
votes
3answers
112 views

move all files in local directory to remote directory

I want to move all files in local directory to remote directory. And I am using this code to achieve it SOURCE_FILE=/var/www/oneserver/* TARGET_DIR=/var/www/anotherServer ARCHIEVEFILE=/var/www/...
1
vote
2answers
1k views

scp from remote Linux to local Windows with spaces in local path

To push a file from a Linux terminal to a Windows system, the following two examples work just fine. scp /home/user.name/file.html user.name@local.ip.num:/C:/Users/user.name/test_folder/file.html ...
0
votes
1answer
235 views

SCP a file between two servers

I have a Digital Ocean droplet (SERVER A) that uses an SSH key and password for my root account. I created an additional user and added it to a new SFTPUsers group by following this guide: https://...
0
votes
0answers
70 views

Cannot scp to remote system

I try to copy files from my raspberry pi. I can rsh from my host into the pi and list the files but I cannot scp. When I issue: scp -r /home/arnold/pi arnold@192.168.158.147:/home/arnold I get the ...
0
votes
1answer
87 views

scp outputs nonsense message and fails

SSH is totally working with this command: $ ssh user@$THE_IP_ADDRESS But when I try scp, I get this complete non-sense output $ scp ~/file user@$THE_IP_ADDRESS:~/file \033[?25l\033[?7l\033[0m\033[...
1
vote
0answers
191 views

'bash: ifconfig: command not found' occurs when I'm using scp in CentOS7

While I'm using scp following error occurs: $ scp -i key.pem a.tar.gz kaseton@172.168.2.130:. bash: ifconfig: command not found a.tar.gz 100% 25MB 147.0MB/s 00:00 $...
0
votes
0answers
30 views

Apache Ant log in issue

I am setting up Ant to copy php files to a staging directory and then upload (deploy) to dev (CentOS) server that I can access via WinSCP. I have it working using the Eclipse tool. I copied the ...
0
votes
0answers
168 views

SCP Hidden Password Prompt

I would like to transfer files in a folder from my laptop to a server via SCP like so: scp -r /folder/path/on/laptop user@server:folder/to/save/to This works perfectly. However, I am using an ...
1
vote
2answers
1k views

why is scp faster than rsync?

I always got the impression that rsync should be at least as fast as scp. But here I have a problem. When I use rsync -avr to copy data from the remote machine, I get something like 11 mb/s. If I use ...
0
votes
2answers
488 views

Scp from Linux to windows using freeSSHd

I need to run a script on my linux machine to be able to run a few commands on my windows server VM. One of these commands include scp and am having some difficulty with it. I have installed freeSSHd ...
1
vote
1answer
184 views

SCP from Remote Mac to SSH'd Server Fails

I've seen a lot of variants of this question but I don't think anything fits my exact situation. I'm on a computer at work which is SSH'd into a server. While on this server I would like to SCP some ...
2
votes
1answer
304 views

SCP connection doesn't close after file copy whereas for PSCP it does

Hi I have an InterNiche ssh server stack running on some custom hardware. I was trying to copy some files from server to client pc using scp command like scp user@xxx.xxx.xxx.xxx:\\path\\to\\file /...
0
votes
1answer
179 views

Using SCP over a existing SSH Chain? Possible?

SCP establishes a new connection when copying files, which sometimes can make it hard if there are firewalls involved. For example, Host-A <--> Host-B <--> Host-C <--> Host-D Host-A is ...
0
votes
2answers
887 views

Why am I getting a “Sink” error when using an SCP command?

I am trying to copy a file from my local host to remote host using SCP command: scp -v user@xxx.xxx.xxx.xxx:/local/file/path /destination/path Surprisingly the SCP command fails at the end after ...
0
votes
0answers
17 views

Why RSA key is adding in the same line(sometimes) in the known_hosts file

When I'm doing scp a file to my remote machine, Usually the RSA and DSS keys will be added in the next lines. But sometimes(very rarely) it is appending the key to the previous key. And this is ...
0
votes
1answer
1k views

scp times out but ssh works fine. What am I doing wrong?

ssh works fine but scp doesn't work at all. Am I making a syntactical error? $ scp ~/Downloads/EWBF.tar.gz -P 1312 me@myserver.com:/tmp/ ssh: connect to host myserver.com port 22: Operation timed out ...
0
votes
3answers
67 views

Trying to copy dir into server but server gets full even if the folder is smaller than the free space on disk

Problem I'm trying to copy a directory with 112 GB to a RAID on a server which has 214 GB of free space using scp. However, after copying some files, I receive a message telling me the disk is full, ...
2
votes
1answer
369 views

scp command silently does nothing

I need to copy a file from my local machine to Amazon AWS Ubuntu machine. First I tried just this: scp -i learndeepai.pem sb_code.zip ubuntu@34.211.158.*** As soon as I execute this, nothing ...
0
votes
2answers
419 views

best linux tool to transfer thousand of files between two servers [closed]

If you think it's a duplicate...well i didnt find a satisfying answer yet :/ I have to migrate a folder from a server to another. Personally I would use rsync but the question is...this folder ...
0
votes
1answer
171 views

Streamlining uploading project folder to server using SSH + command line

I'm in the process of attempting to streamline my workflow. A huge part of it is uploading files quickly using SSH, but with some logic behind it. For instance, a lot of my project files are not for "...
2
votes
1answer
303 views

How to copy a file from a nested ssh session inside another ssh session to the local host?

I want to copy a file from an ssh session to my local host. The problem is the ssh session isn't accessible from my local host, I need to first connect to an intermediate ssh (ssh1) session, then ...
0
votes
1answer
536 views

How to use sz to transfer directory?

I have 100G files in a root directory data/ on Server1 and I need to transfer from this remote machine to another remote machine Server2. SCP is disabled. I have to use "sz" command. This is the first ...
0
votes
0answers
346 views

How to scp from Windows 7 with private key without password?

I have a public and private key in X:\secure. Straight ssh with the private key works and I connect okay: ssh -i X:\secure\id_rsa remoteuser@remote.server.com The remote server is all set up for ssh ...
0
votes
2answers
713 views

how to get scp logs on remote server

Basically, I want to log each and every file which is sent or received via SCP on the server. Let say a user does a SCP from Server-1 to Server-2. I figured out the way to get logs on senders side, ...
1
vote
2answers
237 views

currently logged onto my remote server.. how do I transfer file from my local machine to my remote server using SCP

I'm currently logged onto my remote server and I need to transfer a file from my local machine to my remote server using SCP but it doesn't seem to be working. I was able to do it using SFTP but I don'...
0
votes
0answers
201 views

Interactive SSH works on Mac host, but SCP and non-interactive commands over SSH fail?

I've got two Macs, both with sshd enabled via System Preferences > Sharing > Remote Login: On. I can successfully log into both of them and run commands in an interactive shell using $ ssh <...
0
votes
1answer
449 views

list of file downloaded by wget

I'm using wget in my centos server to download files through Internet. Sometimes I copy file to server by scp. I'm looking command that shows me list of file that was downloaded recently or even all ...