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
114 views

File transfers very slow in one direction

I am having trouble debugging a connection issue : Server A (OMV) has a fast internet connection : 900mbps down / 600 mbps up Client B (Windows 10 using wsl) has a decent internet connection : ...
Elerir's user avatar
  • 1
0 votes
0 answers
44 views

SSH and SCP not working

I know that this is not really a server error, but I have been having troubles connecting to my servers via SSH. To be perfectly clear, I have verified that the servers' SSH server works properly. I'...
Dimitar Veljanovski's user avatar
0 votes
1 answer
38 views

copy many files with big sizes over rsync

I have database server on AWS and the backup of databases are over 1000 files with sizes can reach 5GB, I am using a script to copy the backup to my data center using rsync, but the copy is slow, I ...
Khaled Hussein's user avatar
0 votes
1 answer
93 views

Suddenly, outbound scp, sftp, rsync, & ssh /bin/true fail; ssh still works

Problem On my MacBook Pro running Mac OS 10.15.7, I cannot do outbound scp, sftp, or rsync to seemingly any server (I've tried ~10 I own). I also cannot run remote commands by ssh, e.g. ssh ...
Michael Sorice's user avatar
0 votes
1 answer
151 views

For rsyslog - to what facility do ssh and scp belong to?

I am trying to send all the ssh and scp error messages to a pipe and to configure this in the rsyslog.conf I need to know the facility for these services. Does anybody know this or a resource where ...
A Mere's user avatar
  • 3
0 votes
0 answers
81 views

Why does ssh command fail whereas scp command succeeds inside of linux box on aws codebuild?

On a linux vm inside of an automated codebuild CI/CD Pipeline this command executes as expected: scp -v -i /path/to/key ./scp_test.txt user@host:$target_dir However, a similar ssh using the same ...
Jon TouVelle's user avatar
0 votes
1 answer
112 views

Webmin backup via ssh not working with remote rush shell

I want to make backups from Webmin, initially the configuration backups, to a remote server securely. I'm new to Webmin and to rush. This seems to be a config issue with Webmin, rush, or sshd. My ...
Norman Henderson's user avatar
0 votes
1 answer
611 views

Where to put files into my Ubuntu server so I can access them publicly from a web browser?

Sorry if this is a very dumb question, but I'm totally new to server administration. I already know how to add files to a web hosting solution through FTP/SFTP, however I have no idea how I can do ...
Another Dude's user avatar
0 votes
0 answers
156 views

SCP on Ubuntu OpenSSH Server for Cisco backups

I am having a bit of an issue and I believe I need some help. We have an On-prem SFTP server which will be deprecated soon, so in the mean time I need to set up another SFTP option in AWS running on ...
brianbelden's user avatar
1 vote
0 answers
138 views

How to troubleshoot a server having SFTP, SCP transfer speeds of around 500 KB/s with many but not all machines?

We have two Ubuntu servers that have very slow upload and download SFTP, SCP, and RSYNC speeds, around 500 KB/s, when connecting from most home machines. These servers have fast corporate Internet ...
Jake's user avatar
  • 113
0 votes
1 answer
117 views

Openstack nova cold migration failing on rocky 9 due to sftp subsystem error

I have deployed a multinode deployment of OpenStack using kolla ansible (deployed following the openstack deployment guide) on 2 rocky linux 9.1 machines. When attempting to migrate one instance ...
N. Komodo's user avatar
0 votes
1 answer
299 views

Routine SCP Command fails (VPN/Network Active)

My dev machine runs on Fedora (36). Recently I attempted to scp a file to a remote server (CentOS 7) and got a cryptic error message: scp: dest open(""): No such file or directory The ...
virtualeyes's user avatar
0 votes
0 answers
386 views

Ubuntu 20.04 / 22.04 - Remote ssh or rsync killing all process from user

I got a weird strange odd behavior (there's not enough adjectives for that) on Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. This is a IBM Db2 test server. The server runs a Db2 service under db2inst1 user ...
adamitj's user avatar
  • 113
0 votes
1 answer
323 views

Can I seperate SCP and SSH login, using different ports and different users?

I want to separate SCP to be on a different TCP port than the regular port 22. Using this port, a user should only be able to run SCP commands but not to do a regular SSH login. That user would not ...
Yair's user avatar
  • 1
0 votes
1 answer
326 views

SCP between 2 remote servers with local key

I'm currently using KeePass and ssh-agent for passwordless ssh/scp access to servers. I also use the ~/.ssh/config file to make life a bit easier. I find it works quite nicely for most of my use cases....
MarcAllSys's user avatar
2 votes
1 answer
1k views

SCP requires user to have home directory?

I was doing this: scp aaa.txt $user@$server:~/my-folder/aaa.txt and it works. I need something more "common" so i decided to create a specific user and to use a folder in the root path. scp ...
Alex 75's user avatar
  • 133
2 votes
2 answers
3k views

Using scp to copy multiple local directories to a server?

I'm trying to copy multiple directories with one command. It's kind of a mess since there are spaces in the paths, but I can't quite get it to work. Imagine a structure like this: /path/to/some ...
jrronimo's user avatar
0 votes
1 answer
125 views

scp between two redhat server stalls at 98% for long time

I have 2 RedHat servers (say rhel-01 and rhel-02) with 40G ports connected via 40G switch. When I'm trying to copy any large file (larger than 1G) from rhel-01 to rhel-02 it stalls at exactly 98% for ...
akjon RooSho's user avatar
1 vote
1 answer
347 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 ...
pdp's user avatar
  • 778
0 votes
2 answers
1k 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 ...
Anish Sana's user avatar
1 vote
1 answer
745 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 ...
Stan Sieler's user avatar
2 votes
2 answers
617 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 ...
Jörgen's user avatar
  • 121
0 votes
2 answers
1k 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 [email protected]:test/ The app....
xetra11's user avatar
  • 341
2 votes
1 answer
2k 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 ...
Cornelius Roemer's user avatar
-2 votes
1 answer
1k 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 ...
cdahms's user avatar
  • 175
0 votes
1 answer
86 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 ...
vrms's user avatar
  • 287
0 votes
1 answer
702 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 [email protected]:/path Which worked, I can see the ...
J.Do's user avatar
  • 101
0 votes
1 answer
160 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 ...
JoeSlav's user avatar
  • 99
1 vote
0 answers
322 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:...
Manel R. Doménech's user avatar
0 votes
1 answer
198 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.
Praveen's user avatar
0 votes
0 answers
80 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. ...
Daniel's user avatar
  • 1
3 votes
5 answers
23k 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 ...
Alexander L. Belikoff's user avatar
1 vote
1 answer
709 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 ...
Ali Asadpoor's user avatar
-1 votes
2 answers
642 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 ...
coyoteee3's user avatar
0 votes
2 answers
172 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 ...
CéCode's user avatar
1 vote
0 answers
210 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 ...
TAMIL VED's user avatar
0 votes
0 answers
33 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 ...
MrTaik's user avatar
  • 37
0 votes
0 answers
144 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&...
superloopnetworks's user avatar
1 vote
1 answer
647 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 [email protected] (Since I choose to have a ...
Valter Ekholm's user avatar
0 votes
1 answer
92 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 ...
StevieD's user avatar
  • 534
1 vote
0 answers
360 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 ...
Max Mikhaylov's user avatar
0 votes
0 answers
1k views

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

I'm running $ scp [email protected]:/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....
Daniel's user avatar
  • 1
2 votes
1 answer
810 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 ...
dkd6's user avatar
  • 155
2 votes
0 answers
73 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 ...
Srinivas V's user avatar
0 votes
2 answers
135 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 ...
Cindy Almighty's user avatar
0 votes
1 answer
29 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:/...
Alex028502's user avatar
0 votes
1 answer
609 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 ...
iFunction's user avatar
  • 111
-2 votes
1 answer
183 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 ?
Mathieu's user avatar
  • 45
0 votes
1 answer
277 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 [-...
Rajesh's user avatar
  • 1
0 votes
1 answer
74 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 ...
Russell Fulton's user avatar

1
2 3 4 5
9