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
0answers
8 views

scp, list of arguments is to long

I tried to copy files from my device to local host. I used scp and scp -r (like on this problem Copying a large number of files from a remote device without creating an archive). Unfortunately, I ...
-1
votes
0answers
27 views

How to transfer files like Filezilla does with this site from command line in Linux?

Every day a client of mine have to transfer files from a site using Filezilla. I generally do SSH transfers with SCP in situation like this, but this time I can't. This is the log in Filezilla client ...
1
vote
1answer
12 views

Poor SCP performance under windows

I'm seeing some performance issues with SCP under windows, in short, I'm maxing out at 61 MB/sec on a 1Gbps Ethernet connection. Now, Windows itself have detected the connection as 1Gbps, and I've ...
0
votes
0answers
20 views

scp command changing csv delimiter

I have csv file created at a location everyday with a delimiter þ. I have an automated job which needs to transfer this to another linux machine. The automated job(running as root user) while ...
0
votes
0answers
12 views

configure openssh server to automatically take backups when files are modified through scp or sftp

I've got openssh-server running on my Linux (Debian) server. This allows me to scp or sftp files to/from it, including overwriting files that are already there. I am wondering if there is a way to ...
0
votes
0answers
29 views

How to use SCP to copy files created between two dates from remote server?

I've made a Jenkins job to download gz archived csv reports with scp: sshpass -p $password scp -o StrictHostKeyChecking=no -r $login@$IP:/archive/*.csv.gz . Now I need to download only archives ...
0
votes
0answers
24 views

How to properly copy (scp/rsync) folder recursively?

I would like to copy a folder hierarchy composed of 20k text files of about 10..500kB each. I initially tried: scp -r server:${REMOTE} ${LOCAL} But it was too slow, so I tried with rsync instead: ...
1
vote
1answer
39 views

IPv6 data transfer between two connected clients on same modem

I have a modem which gives its clients public IPv6 addresses. If I scp a large file from client 1 connected to same router to client 2 connected to same router will the data transferred be chargeable, ...
0
votes
0answers
35 views

scp unable to get term attr:

I use a VPS on port 7822. I can SSH login without any problems but when I use scp it gives me the following error after entering the password: Unable to get term attr: Invalid argument I ran the ...
0
votes
2answers
107 views

Backup files from server (static IP) to home server (Dynamic IP)

I am already familiar and use rsync, scp transfers, tar, 7z etc however none of which solve a backup I intend to do rather regularly. I have a remote server with 80% used space on 100GB SSD that I ...
0
votes
1answer
55 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
39 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
92 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
129 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
54 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
21 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
89 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
299 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
41 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
206 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
165 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
45 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
328 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
355 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
26 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
30 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
51 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
170 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
404 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
137 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
103 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
120 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
2k 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
273 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
83 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
114 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
228 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
32 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
173 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
2k 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
547 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
210 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
382 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
209 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
1k 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
20 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
391 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 ...