Questions tagged [scp]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
24 views

Scp does not copy data from windows to linux

I am connected to windows machine via a VPN network. I installed openssh server on windows machine. From Ubuntu machine, I can connect using: ssh windowsmachine@ipaddress However: scp windowsmachine@...
1
vote
1answer
20 views

scp remote to remote through local bandwidth limit

I have two remote hosts, I need to transfer files from one to another. They don't have routing between each other, so I have to transfer it through local machine, that routes to both. I can use scp -i ...
-1
votes
0answers
29 views

Possibly broken symlinks on failed SCP command: No such file or directory

I am trying to extract some .pem certificates files used to encrypt my server but for some reason cannot do it using SCP I am unable to copy them over to my own machine Here are the files in the EC2 ...
0
votes
0answers
20 views

Passwordless scp from Ubuntu Server to Windows PC

I'm able to copy file from Ubuntu 18.04 Server to Windows using scp. However, I would like to be passwordless. These are what I have done: Generate key pair using ssh-keygen. Copy my id_rsa.pub to ...
0
votes
1answer
23 views

packet retransmission when using scp/ssl over wireGuard interface

I've created wireGuard based network interface on my macOS. and according to the protocol description, WireGuard is working over UDP. So I was wondering which layer handle the packets retransmission (...
0
votes
1answer
19 views

Transfer file from linux to windows

I want to transfer a file from my Linux machine to the windows host it is on. I have read some other topics similar to this and they suggest using scp. I have tried: scp pathTolinuxFIle ...
0
votes
0answers
19 views

SCP with login to server and login to app user

I am trying to copy files from my local machine onto a remote server. The only issue is that I must first ssh user@host, enter my password, then sudo su - appuser, and enter my password again. I have ...
0
votes
2answers
29 views

SSH won't set don't fragment bit

I'm trying to send a file from an host through a gateway with an MTU of 552,using scp. I expect the connection to halt since ssh should send packets with DF bit flag set, and the current MTU is too ...
0
votes
0answers
25 views

Can't SCP from Windows remote to MacOS

I have ran into an issue where I cannot use scp from my Mac laptop to copy files from my Windows PC. The command I am running on MacOS: scp user@pcname:\Users\Will\treemnger\ Documents/treemnger* It ...
0
votes
1answer
41 views

How to simulate packet loss in ssh connection using scp

I'd like to observe the durability of a new VPN tunnel protocol called wireGuard on an unstable network environment in both macOS and Linux platforms when transferring a large chunk of data from one ...
0
votes
1answer
35 views

Linux | Upload a .tar.gz file to a FTP-Server with encryption enabled and port changed

First forward I gotta say that I'm a scripting noob and just've started to learn Linux. I need your help with the integrated ftp-client on Linux. I want to write a script that automaticly packs a ...
0
votes
1answer
54 views

key works for logging in via ssh, but scp gives permission denied

I am relatively new to the Linux environment, and I have been trying to setup a server to for hosting purposes. I have been using an ssh key to log into my server with no issues, but when I try to use ...
1
vote
0answers
22 views

secure file copy (scp) back and forth from remote line to Windows

Need to learn more about scp but I was able to transfer an entire directory (registry_configs) of CSV files from a remote linux machine (geb@192.168.0.106) to my Windows 10 environment with this: scp -...
0
votes
2answers
175 views

How can I execute a command on a remote server through scp?

When using ssh to access raspberry pi running balenaos, ssh -t -p 22222 root@device-ip "balena-engine exec -it <container_name> /bin/sh" grants me access to a specific container inside ...
0
votes
0answers
32 views

Is it possible to include -T option of scp in .ssh/config?

scp with the -T option does this (openssh implementation): Disable strict filename checking. By default when copying files from a remote host to a local directory scp checks that the received ...
1
vote
0answers
25 views

Slow SFTP/SCP/SSH speeds, but only in Windows

I have a pretty weird issue where all my downloads over SCP/SFTP/SSH seem capped at 1.3-1.5 MB/s. This is on a system where I speedtest ~500 Mbit/s downstream, so I expect something around 30-50 MB/s. ...
0
votes
0answers
10 views

SFTP file copy issue sh_dispatch_run_fatal

I was trying to copy a file from a remote server and getting following error after like 30-45% of copy completion. sh_dispatch_run_fatal: Connection to x.x.x.x port xx: incorrect signature File size ...
0
votes
0answers
23 views

scp copy Windows to Linux : Directory gets o=write?

I'm confused about the file permissions set by scp when I copy a windows local folder to a Linux (Ubuntu) remote. When I copy a local file to the home directory of the remote user that folder has ...
0
votes
1answer
484 views

“message authentication code incorrect” error with scp

I have an intermittent scp failures from one specific computer (Mac OS 11.2) to one specific host (Ubuntu 18.04.5). The computer has no issues with scp to other hosts, and other computers have no ...
0
votes
0answers
19 views

Scp over proxy using proxy credentials

I want to copy a file to another host, using a proxy. I want to use such command: scp -o "ProxyCommand ssh user1@proxy.host nc %h %p" "$FILE_PATH" user2@final.host:/tmp It asks me ...
0
votes
1answer
56 views

Not able to transfer a file through SCP to my aws ec2 ( connection time out /lost connection

It's as simple as I described on the title. I want to upload a .gz file into the ec2 but I get "connect to host ----- port 22: Connection timed out / connection lost" I'm really new to this ...
1
vote
1answer
51 views

Excluded files take long to process when downloading using SCP protocol with WinSCP

I am trying to download a folder with SCP protocol using WinSCP by excluding some common extensions like .class .gif For some reason WinSCP is ignoring me. The files are either still downloaded (...
1
vote
1answer
30 views

syncing two folders into one, removing deleted files

Given folders named Drive1/Folder1 and /Drive2/Folder2 I want to have a folder /Drive3/folder3 that contains the synced merged contents of both the source folders, but does not contain any files or ...
0
votes
2answers
44 views

How to copy ALL files in a directory to remote without directory?

I want to copy all files including "hidden" . files from a directory output to a remote directory target using scp. Alternatives welcome except rsync. Unfortunately the hosting provider won'...
0
votes
0answers
4 views

virt-copy-in vs scp vs nfs for many VMs

Providing large amounts (average 100GB) of data to a single VM is easy with virt-copy-in. I have a number of servers (server1, server2, ... server10) each hosting many VMs (vm1, vm2, ... vm20), each ...
0
votes
0answers
29 views

Cannot get SCP to work even though SSH works

I have a remote VPS that I can succesfully connect to via SSH, using my SSH key. I disabled password authentication in /etc/ssh/sshd_config. I have not been able to get scp to work despite reviewing ...
0
votes
1answer
19 views

Copy directoy with SCP

I'm using the following SCP script to copy a local Windows directory to my Linux machine: scp -r C:\Development\SomeProjectDir myuser@mylinuxmachine:/Development/SomeProject/ The first call works ...
1
vote
1answer
82 views

Why does SCP fail with 'authenticity of host can't be established' but SSH works?

I've seen this question asked before but the answers always seemed to lack some specificity. I am having trouble moving some user interface files from my own machine to my server which resides on a ...
2
votes
0answers
172 views

SCP file transfer Connection reset after exactly 16,384 bytes

SCP file transfer from Windows 10 Command prompt to Mac Big Sur looks like it didn't transfer anything, but it is actually transferring exactly 16KB before the connection is lost (see image below). ...
-1
votes
1answer
271 views

debug1: No more authentication methods to try. Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

I use putty to connect to AWS EC2 server. Want to copy code from bastion server to publication server. However, when I tried to copy file using scp command, error occurs: [ec2-user@ip-172-16-1-185 uat]...
1
vote
0answers
18 views

Cron a database dump on an external SFTP server

I have a command to dump a database in a local server, and want a daily backup of that database in an external SFTP location. I checked out the scp command and it works smoothly, now I need (maybe ...
0
votes
1answer
31 views

Transferring files between 2 remote linux virtual machines

Me and my friend are trying to transfer files remotely using scp. We have both installed ssh server and turned it online but when trying to use the command nothing happens. I am trying to transfer ...
0
votes
1answer
326 views

How to override a file via scp not being the owner, but preserve timestamp?

I have 2 users on a remote machine (let's call them user1 and user2, with both being in the common group upload). I want to be able to upload/override a file via scp, from different machines. Whereas ...
2
votes
1answer
55 views

How to copy same file from different directories to different directories

I have multiple directories with the same file (remote) and I want to copy them to multiple directories on my local machine. So lets say remote I have ~/remote_folder/folder1/Myfile.log ~/...
0
votes
0answers
29 views

how to copy and paste o=in terminal on Mac

I just want to copy some numbers on bash. But ctrl+v doesn't work. And Mac doesn't have insert key so ctrl+ins couldn't work. I know I can download the file by scp but I have to input password. I have ...
0
votes
0answers
22 views

How to push changes to web server via github

I am new to web development. I am developing on a linux system. Every time I make changes to my application on my local machine, I have to scp the entire app to my server, even if I changed something ...
4
votes
2answers
495 views

Why does adding local IP and username in scp return public key error?

I have two remote servers which have the same user and id keys. I can freely SSH to either of them from a local machine, or from one to the other. I ssh-ed to 100.100.100.1 and I tried to run: scp -i ~...
0
votes
1answer
78 views

Files missing when copying from Linux to Windows

I have a weird situation and I don’t know how to fix it: I have a Windows 10 running on a virtual machine that shares a directory. This directory gets mounted on a Linux machine using SMB. The problem ...
0
votes
1answer
552 views

“more than one remote source not supported” while using pscp

I have Windows 10 pro and I'm using the latest version of pscp/putty through command prompt. I I am trying to do a file transfer from my Windows 10 computer to an SSH server, but I'm running into the ...
0
votes
1answer
5k views

SSH troubles: ssh_exchange_identification/kex_exchange_identification: Connection closed by remote host

I am connecting to my hoster's server via ssh/scp, mostly from Linux machines, and things were working well for years. Now, all of a sudden, the majority of all connection attempts fail before getting ...
0
votes
0answers
291 views

windows10: scp failed error'CreateProcessW failed error:2'

Here the problem: pc A ssh -> pc B : Success! pc B ssh -> pc A : Success! pcA>scp -P $port $files $pcB@$domain:"$path" #success files 100% 154 17.6KB/s ...
1
vote
1answer
81 views

SCP Using Local Machine as Jump Host [duplicate]

I want to transfer a file between two remote servers (R1 and R2) which can't talk to each other. My machine (let's say L) can talk to both R1 and R2. Is there a way to use my local machine as the ...
0
votes
1answer
470 views

packet_write_wait: Connection to @host port 22: Broken pipe

I'm trying to copy some files from production server(ubuntu 16.04) to backup server(ubuntu 16.04) using scp command but getting packet_write_wait: Connection to @host port 22: Broken pipe Lost ...
1
vote
0answers
387 views

FileZilla: FATAL ERROR: Signature from server's host key is invalid

I'm transferring a big file with sFTP from local to a webhosting. After 9mins30sec I've always this error. Then FileZilla reconnects and continue the upload from where it was stopped. Is it a timeout ...
0
votes
1answer
430 views

Transfer file from server to ubuntu subsystem in windows 10

I am currently working on a windows 10 laptop. I have installed the ubuntu subsystem (instead of PUTTY) in it to access the remote server. When I launch the ubuntu subsystem from my windows start menu,...
0
votes
0answers
462 views

How to scp a file from Mac to Windows with spaces and a glob?

I have a Windows 10 machine and a Mac. From the Windows machine, I'm trying to scp a bunch of files from the Mac. That is, I'm on Windows, and I want to copy files from my Mac. The full path has ...
0
votes
1answer
20 views

Unable to copy SSH key from Win10 to Ubuntu server using PSCP

I'm trying to copy my .pub key to my server that is on the same router. I keep getting a "No such file or directory" error and I just can't get why as the file is clearly there. PS C:\Users\black> ...
-1
votes
1answer
276 views

How to copy file from SecureCRT Linux server to Windows desktop using command or shell script?

Please don't suggest tools like WinSCP, PuTTY, etc., as I have already tried the following scp commands on the Linux server, but am still not getting the output: scp /file/to/send username@remote:/...
0
votes
1answer
70 views

how to scp from a PC in a local network to my PC inside my local network?

CONTEXT I have 2 PCs, PC1 and PC2, both are in the same local network, A, and both use Unix PC2 does stuff, and when it finishes, it transfers data to PC1 automatically via scp since PC1 & PC2 ...
0
votes
0answers
185 views

scp: ambiguous target error, with quotes, escape characters in Windows 10

Getting scp: ambiguous target while transferring file to white spaced folder name in Windows 10 (both pc). I already tried solutions mentioned in here and also tried another solution on different ...

1
2 3 4 5
13