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
16 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
50 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
50 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
22 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
55 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
65 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
27 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
35 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
63 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
72 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
19 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
38 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
103 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
66 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
123 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
97 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
107 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
576 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
178 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
66 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
67 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
156 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
26 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
147 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
982 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
424 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
154 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
231 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
148 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
664 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
15 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
819 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
332 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
343 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
126 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
255 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
420 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
290 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
630 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, ...
0
votes
0answers
90 views

Unable to find the file when use scp to move file from raspberry pi to local machine

I am trying to move an image produced by the Raspberry Pi camera module from Raspberry Pi 3 B to my mac. I use SSH on my mac. I'm using the following command: scp pi@xxx.xxx.x.xxx:image.jpg . The ...
1
vote
2answers
203 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
191 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
351 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 ...
0
votes
1answer
273 views

ssh connection timed out after transferring 4 files via scp

I have a script that sends 8 files to the same server. Running all 8 commands separately works, but when I run the script, the 5th scp command will timeout after the 4 previous files are transferred. ...
2
votes
2answers
4k views

My scp doesn't have proxyjump option

I want to scp a file to a host (C) via another host (B). I can use below command: scp -oProxyCommand="ssh -W %h:%p B" thefile C:destination and it works very well, but this one doesn't work: scp -...
0
votes
1answer
357 views

SCP vs SFTP for data transfer over 4G cellular connection

I'm creating a program to transfer files from a remote computer to my server through a 4G cellular connection, and am looking for some input on whether I should use SCP or SFTP. I've studied their ...
5
votes
3answers
497 views

Coerce scp(1), sftp(1), or rsync(1) into transferring a named pipe

I intend to transfer full and incremental backups of my btrfs subvolumes to a tape archival service. The service exposes FTP and SSH endpoints. If I were allowed to execute arbitrary commands on the ...
0
votes
1answer
274 views

Alternative way to scp/cp files to remote server with wildcard target path

I am trying to copy a single file from local server to a list of servers described in servers.txt. The target path is something like /local/opt/path1/sub/*/lib/file.jar the * may match any folder ...