Questions tagged [scp]

Secure Copy or SCP is a means of securely transferring computer files between a local host and a remote host or between two remote hosts. It is based on the Secure Shell (SSH) protocol.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Remote SSH connection from one server to another HANGS, no fail, no error

Trying to copy files from one server to another because the amount of files is not feasible to do by copying to my home pc and then out to second server. SSH, rync, and scp all hang from either server,...
user avatar
1 vote
0 answers
40 views

Why is iperf3 data transfer slower than scp?

I have been measuring the throughput between two hosts connected via a fiber channel. The OS is CentOS 7.9.2009 and iperf3 version is 3.1.7 (RPM). One of the tests was the measurement of transfer ...
user avatar
  • 778
0 votes
0 answers
12 views

SCP on Ubuntu 20.02 between two DigitalOcean droplets

I have two digitalocean droplets and I'm trying to transfer a file from one droplet to another. I have SSH setup to login to both of them. I'm using this command: scp certs.tar.gz max@my_ip:/home/max ...
user avatar
0 votes
2 answers
167 views

scp with -C flag does not perform compression

The scp man page shows that the -C flag can be used for compressing a file on the fly while performing a remote copy - $ man scp | grep "\-C" -C Compression enable. Passes the -C ...
user avatar
1 vote
1 answer
85 views

getting "broken pipe" at about 1.2 MB files (from HP-UX to macOS) ... how fix?

I'm getting "broken pipe" while trying to scp files larger than about 1.5 MB from a remote HP-UX system to my local Mac. Any suggestions, please? Small files work ok, up to about 1.1 MB or ...
user avatar
0 votes
1 answer
97 views

ACL settings works when using ssh but not with scp command

I have setup an Arch Linux machine with a user 'archie' with a primary group 'users' as: useradd -m -g users archie Whenever archie creates a file in his ~/shared directory I want the group users to ...
user avatar
  • 101
0 votes
2 answers
168 views

Copy a file via SCP to target but move directory structure upwards?

I need a script for my Java project (on Ubuntu) to deploy the .jar file to a remote windows server using scp. This is what my script looks like: scp build/libs/app.jar foo@192.68.40.41:test/ The app....
user avatar
  • 251
2 votes
0 answers
336 views

What does warning `client_input_hostkeys: received duplicated ssh-ed25519 host key` mean?

When I use scp to copy some files from a server, I've lately been getting the following warning: $ scp -rC myserver.com:~/test.log . client_input_hostkeys: received duplicated ssh-ed25519 host key I ...
user avatar
-2 votes
1 answer
230 views

Is openssh-server safe on a local network? [closed]

Quick description of my situation: 2 home use computers, both connected to a standard AT&T router. Both computers get a 192.168.1.x IP address from the router. I have no idea what the IP of the ...
user avatar
  • 175
0 votes
0 answers
154 views

scp from Linux to Windows

I have installed a SSH server on a Windows 10 system and I'm able to ssh sucessfully from a Linux system (Ubuntu) into it. Now I want to scp files from the Linux system to the Windows system. I have ...
user avatar
0 votes
0 answers
34 views

WinSCP claims that Ubuntu server folder is full, but folder is on a 2Tb free system [duplicate]

I have an Ubuntu server, to which I'd like to transfer a Minecraft server. However, in using WinSCP or File Explorer to transfer said server, I get told that I do not have enough space. However, not ...
user avatar
0 votes
1 answer
59 views

ssh-copy-id -- send pubkey to other location then ~/.ssh/auhtorized_keys?

I want to acces a remote server via ssh which has set the location for authorized keys set as /path/to/ssh/authorized_keys.%u. Now I am wondering how I can motivate ssh-copy-id to create an ...
user avatar
  • 217
0 votes
0 answers
56 views

md5sum is the same but gunzip test fails

I've automated a process that involves fetching a file from a backup server and them processing it. Sometimes the processing phase fails and I thought it might be due to the source file being ...
user avatar
0 votes
0 answers
73 views

Deny unencrypted s3 buckets via SCP

Folks just wondering if there’s ability to attach a SCP to OU accounts denying S3 buckets from being created if default encryption is not opted upfront. From cloud trail it’s apparent that ...
user avatar
0 votes
1 answer
79 views

scp from Windows Server to Unix server works but not the other way around

I installed OpenSSH on my Windows Server machine to use SSH. To test this out, I ran this command from my windows server. scp test.txt user@unixserver.company.com:/path Which worked, I can see the ...
user avatar
  • 101
0 votes
1 answer
26 views

Issue with Apache permissions with scp'ed document root content

I have a server running apache which has as document root /var/www/html/. Apache runs as apache:apache. This server is filled with content which is scp'ed programmatically from another server which ...
user avatar
  • 89
1 vote
0 answers
113 views

Rsync or scp from/to a Docker containerized shell

I want users can access via ssh to a container. Or, more precisely: host users can access to a containerized shell. This could look strange, but it works: $ cat /etc/passwd | grep staging staging:x:...
user avatar
0 votes
1 answer
115 views

Expecting a password in the middle of script in RHEL [closed]

I want to copy files from another server it's expecting a password to copy... Where as sshpass is working in Ubuntu, but in RHEL is there a way to pass the password in the script.
user avatar
0 votes
0 answers
33 views

Can I use SCP while having multiple AuthenticationMethods, like publickey,password?

My task is to create a bash script that will copy files from server2 in my server1. The issue is that I can't connect from one server to another. I have whitelisted server1 IP on my server2 22 port. ...
user avatar
  • 1
2 votes
5 answers
12k views

scp and sftp failing with "client_loop: send disconnect: Broken pipe" (MacOS 11.3 issue?)

As of 2 days ago, my attempts to scp files from my laptop to servers consistently fail for files larger than ~200 KB with the error "client_loop: send disconnect: Broken pipe" This coincided ...
user avatar
1 vote
1 answer
251 views

How to use scp when cygwin is used as default shell

I have installed openssh-server from optional features on a Windows machine. I can ssh and scp (I need upload only) from my Linux box; However I don't like cmd shell, so I installed Cygwin and set it ...
user avatar
-1 votes
2 answers
263 views

SCP exit 0 when using un-initialized variable and fail to copy

I am trying to test if a file fails to transfer using SCP. I noticed if I use a un-initialized variable, I get exit 0 even though the SCP fails. For example, I have an empty variable called ...
user avatar
0 votes
2 answers
58 views

How can I ask a remote server that was never connected with my local machine to connect with me by SSH?

I use an old server, that has not been updated and that cannot be updated. The OS is FreeBSD, there is no Python, obviously Ansible, and no sshpass. I access this old server from my personal computer ...
user avatar
1 vote
0 answers
69 views

OpenSSH Windows server 2012 : SCP process randomally working : with passowrd authentication

I have created a openSSH SCP bat script and scheduled task to run as SYSTEM. I use publickkey authentication method. For that converted a private key of winscp to openSSH key using putty key gen and ...
user avatar
0 votes
0 answers
20 views

Send command to another machine in a secure credential way

I have a question to ask you: I am creating a script to use with certbot for the renewal of certificates via DNS, everything works correctly on the same machine where BIND is also running (this ...
user avatar
  • 7
0 votes
0 answers
30 views

scp.SCPException: ser **** (100) may not copy files

I'm not sure why I see this error message at times and other times the scp succeeds without any issues. How do I fix it? Traceback (most recent call last): File "/usr/lib/python3.6/threading.py&...
user avatar
1 vote
1 answer
310 views

Why can't I use scp after having set up ssh-copy-id

I rent a shared hosting server. I have set up the login to be through keys (private/public) by the use of ssh-copy-id, and now that works when i type ssh user@12.34.56.121 (Since I choose to have a ...
user avatar
0 votes
1 answer
47 views

Is transferring files over private network between two servers from remote third server possible?

I've got a local machine, Server A. This server has a public internet connection to Server B and Server C using private Key A. Neither Server B or Server C have access to Key A. However, Server B and ...
user avatar
  • 412
1 vote
0 answers
154 views

Using ForceCommand script for making session transcripts breaks SCP

I have the following line in sshd_config to make a transcript of every session: ForceCommand script -q "/transcripts/test_transcript" -c "{SSH_ORIGINAL_COMMAND:=bash}" SSH works ...
user avatar
0 votes
0 answers
711 views

Scp: permission denied when trying to copy file from server to local device

I'm running $ scp user@domain.tld:/path/to/file . The file's not in the server's home directory. I ran sudo chmod a+r on the server's file and sudo chmod a+w on my local directory, but nothing changed....
user avatar
  • 1
2 votes
1 answer
193 views

Fastest way to tranfer data over the network between two servers

I have two storage servers at home - one is my workstation, which has a pair of 3TB disks in RAID1. At first, I stored all of my data there. Recently, I received a small SBC with four 1TB disks. I set ...
user avatar
  • 135
2 votes
0 answers
44 views

How to change the Amaon Linux test page on AWS Instance?

I'm pretty new to the AWS. I have created my AWS Instance and installed httpd service on it. Now, when I start httpd and open that webpage, I can see that it is running perfectly. I want to change ...
user avatar
0 votes
2 answers
41 views

Handling SCP within a group of servers with different keys

I am working with a group of servers on a VPN with ubuntu 18.04, and for each server I have a different key file. However, when I try to securely copy files (like securely propagate munge key across ...
user avatar
0 votes
1 answer
26 views

activemq url starts with scp://

I have inherited a system where the activemq address looks like this scp://localhost:61616 ActiveMQ itself only seems to be configured for tcp. I can't find any reference to that protocol here: http:/...
user avatar
0 votes
1 answer
233 views

systemd service fails to authenticate scp between two servers

I have written a service that triggers a shell script to backup a postgres database, on a CentOS7 server. It dumps the backup file into the /tmp/ folder and then it is supposed to copy the file across ...
user avatar
  • 111
-2 votes
1 answer
102 views

How to move a website to a new server? [closed]

I am going to move my website to a new server. I need to copy the /var/www directory to the new server. Should I use SCP or RSYNC ?
user avatar
  • 35
0 votes
1 answer
79 views

how to do scp in linux

I am getting following error while doing scp, what could be the reason? [~/workspace/xr-dev/call-home/core/src] /usr/bin/scp myfile.c host2:/scratch/shirohua/ shirohua@host2's password: usage: scp [-...
user avatar
  • 1
0 votes
1 answer
64 views

Trying to implement a drop box account using rssh

We have a requirement to export logs from several appliances. (Actually Infoblox DNS servers). The appliances can be configured to export using scp (but only using password). So we have no ...
user avatar
0 votes
1 answer
198 views

Powershell - Run SCP command from CYGWIN but also expand variables

I need to expand variables before running the SCP command as a result I can't use single quote. If I run the script using double quotes in Powershell ISE it works fine. But doesn't work if I run ...
user avatar
  • 1
0 votes
3 answers
181 views

Transfer a bigger MySQL/MariaDB DB fast, save and restartable

I have to transfer a Drupal site with a 43GB MariaDB DB via ssh/scp to another server. I have a limited downtime window early in the morning. In the past I transferred smaller DB's (<3GB) directly ...
user avatar
  • 159
1 vote
2 answers
1k views

EC2 upload speed drastically drops for a single scp process

I run batch compute jobs on EC2 instances (specifically i3.8xlarge) and upload large (10's GB) binary files to each instance. We have "gigabit" (Century Link) at the office and I typically upload (...
user avatar
1 vote
2 answers
3k views

SFTP/SCP slow uploads in Windows, Fast in Linux

I recently moved from a VPS to a reseller hosting account for my little sites and I'm having a baffling issue since: uploading files to the server is dreadfully slow. Servers are CentOS, cPanel etc, ...
user avatar
  • 143
0 votes
1 answer
558 views

Why can't copy to other server by scp with openvpn?

2 nodes: node1 node2 Node1 $ openvpn --genkey --secret /etc/openvpn/server.key $ ssh-copy-id user@node2:/etc/openvpn/client.key $ chmod 644 /etc/openvpn/server.key $ scp -i ~/.ssh/id_rsa /etc/...
user avatar
  • 151
0 votes
2 answers
351 views

Use wget on a cluster with ssh-tunnel [closed]

Normally I can sercure copy files from one machine to another using > scp -oProxyJump=user@login.node.org ssh user@main.node.org:/home/user/my_files/* . which is very slow for large data sets. I ...
user avatar
0 votes
0 answers
48 views

Moving files based on size with ascending order from one server to another in linux

How to move the files based on the size with ascending order from one server to another in Linux.
user avatar
2 votes
4 answers
8k views

How to copy a file from my Windows laptop to an Ubuntu server while using PuTTY? [closed]

I have a remote server and I connect it via PuTTY software. I've downloaded a file to my Downloads folder in my Windows OS laptop. Now, I have to transfer this file to that remote server, using SCP ...
user avatar
0 votes
1 answer
55 views

Permission difference with scp "dir -r", "dir/*", and "dir/file.txt"

Recently I have been getting an error when trying to scp into a CentOS Linux release 7.7.1908 (3.10.0-1062.4.3.el7.x86_64). These commands work: scp dir/file.txt . scp -r dir/file.txt . But this ...
user avatar
0 votes
0 answers
214 views

Allow SCP/SSH to a chrooted environment only?

Is there a way to do this without installing a package like rssh or scponly, as they seem woefully out of date and full of security problems? Is there any newer tool I could use? ssh is an optional ...
user avatar
  • 253
2 votes
2 answers
609 views

Copying large snapshot images to remote storage Linux

I need to copy snapshots of virtual machines running on Proxmox (KVM) servers and copy the snapshots to offsite storage. Most snapshots are a few gb, but some are rather large, up to 200gb. I would ...
user avatar
  • 1,002
1 vote
1 answer
46 views

Share a simple text file between 2 linux instance in gcp

I have two linux instances in gcp and both are in the same project i created a demo.txt file in instance-1 and i want to transfer this file from instance-1 to instance-2, so i came up with this ...
user avatar

1
2 3 4 5
9