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.
437
questions
1
vote
1
answer
84
views
Accessing RDS or EC2 instance without '.pem' key
I am working for a charity who has a few of their services on AWS.
They hired an agency years ago to spin up these intranet and tools platforms. I am trying to get a dump of their db, for backup ...
0
votes
0
answers
33
views
scp with variable driven server is not working
#!/bin/ksh/
SERVER_NAME=bcpstd.root.net
FOLDER_ROOT_PATH=/data/feed/daily
CURDATE=`date +"%Y%0m%0d"`
scp gfstd@${SERVER_NAME}:${FOLDER_ROOT_PATH}/details_all_data_${CURDATE}.dat.gz /local/...
0
votes
0
answers
200
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 : ...
0
votes
0
answers
216
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'...
0
votes
1
answer
42
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 ...
0
votes
1
answer
182
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 ...
0
votes
1
answer
257
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 ...
0
votes
0
answers
100
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 ...
0
votes
1
answer
135
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 ...
0
votes
1
answer
957
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 ...
0
votes
0
answers
192
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 ...
1
vote
0
answers
149
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 ...
0
votes
1
answer
136
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 ...
0
votes
1
answer
393
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 ...
0
votes
0
answers
458
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 ...
0
votes
1
answer
419
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 ...
2
votes
1
answer
405
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....
2
votes
1
answer
2k
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 ...
2
votes
2
answers
4k
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 ...
0
votes
1
answer
154
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 ...
1
vote
1
answer
375
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 ...
0
votes
2
answers
2k
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 ...
1
vote
1
answer
877
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 ...
2
votes
2
answers
728
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 ...
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....
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 ...
-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 ...
0
votes
1
answer
88
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 ...
0
votes
1
answer
791
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 ...
0
votes
1
answer
177
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 ...
1
vote
0
answers
340
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:...
0
votes
1
answer
214
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.
0
votes
0
answers
84
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.
...
3
votes
5
answers
24k
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 ...
1
vote
1
answer
754
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 ...
-1
votes
2
answers
688
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 ...
0
votes
2
answers
184
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 ...
1
vote
0
answers
232
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 ...
0
votes
0
answers
36
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 ...
0
votes
0
answers
167
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&...
1
vote
1
answer
683
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 ...
0
votes
1
answer
132
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 ...
1
vote
0
answers
386
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 ...
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....
2
votes
1
answer
1k
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 ...
2
votes
0
answers
76
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 ...
0
votes
2
answers
161
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 ...
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:/...
0
votes
1
answer
639
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 ...
-2
votes
1
answer
196
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 ?