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
0answers
17 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
1answer
62 views

Expecting a password in the middle of script in RHEL

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
0answers
30 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. ...
0
votes
5answers
1k 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
1answer
58 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
2answers
61 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
2answers
32 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 ...
0
votes
0answers
10 views

Incoming scp file transfers are not working consistently

I've got about 100 servers triggered to send off a small file (about 1K each) to a central server. They all run on a cron every minute. Approx. 90 of the servers get the file to the central server ...
1
vote
0answers
29 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
0answers
16 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
0answers
18 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
1answer
62 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 ...
0
votes
1answer
41 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
0answers
41 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
0answers
33 views

scp returning invalid format errors

I have a device that is trying to scp a text file to a Centos8 server. It fails, with the same error message in /var/log/secure: session_exec_req: parse packet: Connection from user xxx 10.x.x.x port ...
0
votes
0answers
374 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....
2
votes
1answer
89 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 ...
0
votes
0answers
23 views

Duplicity ask passphrase when use SFTP but doesn't for Rsync

I use my GPG public key for encryption with Duplicity. when I use Rsync for destination, Duplicity doesn't ask passphrase. but when I change the scheme to SFTP or SCP, it needs the passphrase. what's ...
2
votes
0answers
33 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
2answers
21 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
1answer
21 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
1answer
58 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
1answer
96 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 ?
0
votes
1answer
43 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 [-...
0
votes
1answer
62 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 ...
0
votes
1answer
131 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 ...
0
votes
3answers
99 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 ...
1
vote
2answers
601 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 (...
1
vote
1answer
2k 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, ...
0
votes
1answer
349 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/...
0
votes
2answers
229 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 ...
0
votes
0answers
34 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.
2
votes
4answers
2k 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 ...
0
votes
1answer
43 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 ...
0
votes
0answers
120 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 ...
2
votes
2answers
443 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 ...
1
vote
1answer
36 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 ...
3
votes
4answers
2k views

Rsync to /dev/null overwrites it

I am seeing a random behavior when copying from one server to another using rsync to the /dev/null of the destination server. This is as part my network performance testing, and I want to avoid Disk I/...
2
votes
2answers
504 views

duplicity backup fails: “Private key file is encrypted”

I am trying to upload my first duplicity backup to a remote server and it fails. It is the first time I am using the tool and it did not work before. duplicity /home/me/Documents/ scp://me@<ip-...
1
vote
3answers
339 views

How do i copy N images from server to my local machine using rsync?

I want to copy n images from my server to local machine i hve tried the command : rsync -P <Source>(.om[1,100]) <localmachine> but using this is not working
1
vote
0answers
373 views

Scp with decreasing speed

It has happened to me for years actually I'd say. I haven't tested too many use cases but whenever I've to copy by scp a large file to another machine (usually all of them running Ubuntu Server or ...
1
vote
3answers
2k views

Upload folder onto virtual machine

I created a VM instance on the Compute Engine in a Google Cloud project. I want to upload a folder from my computer's local storage onto the boot disk of the virtual machine. I tried using the scp ...
0
votes
0answers
80 views

How to scp files to a VPS whose ip was blocked without the help of jump servers?

The IP of my VPS was blocked. Sorry to mention but currently I might not have enough expense to apply to switch IP nor purchase new VPS as jump servers. Status: The VPS host itself is running ...
0
votes
0answers
80 views

Web file permissions NGINX/PHP-FPM - $USER:$USER per website, have global SSH/SFTP account?

I'm not sure why, but people seem to be sold on the idea of using www-data as the group for all websites on a server. I would like to separate all websites by different users. For example, jaap.nl has ...
1
vote
1answer
439 views

WinSCP from Windows 2000 server to Windows 2016 OpenSSH server refuses to start shell/command

I have a Windows 2000 server that I installed WinSCP 4.4.0 on, and a Windows 2016 server that I installed an OpenSSH server on. I can ssh into the Windows 2016 server fine from Linux, as well as from ...
2
votes
3answers
858 views

Is it possible to set that path of the scp command to use by OpenSSH sshd daemon?

I have a curious problem with OpenSSH in SLES 12 SP4 Linux servers. We install a customized OpenSSH on ourservers, so in each machine we have two versions of OpenSSH, the official package of the ...
1
vote
2answers
38 views

How to check: variable of function is it path to a folder or file on a remote server?

I need to use rsync or scp for copy file or file folder from remote server to computer. To copy (synchronize) a file folder I use the following function: foldertocomp() { rsync -avz pi@192.168.1....
-2
votes
1answer
225 views

Data corruption when rsync command fails

I am using rsync to copy data from machine A to machine B over a network. If rsync fails while copying the data from A to B, will the data at B get corrupted ? Does rsync has any inbuilt mechanism to ...
1
vote
2answers
575 views

ssh scp command copies files from remote to remote but not to local machine

I need help with this one please. I couldn't connect with any FTP client to a remote server given by a client. It would be SFTP protocol, but I could never connect. With ssh user@login.microsites....
-1
votes
1answer
81 views

How to copy certain file with its path from remote to my local machine via scp?

I want to copy all files with extension *out to my local machine form my account keeping the same tree path of each file my trail is scp --parents -r @remote:~/path/*out ./ such trail doesn't work

1
2 3 4 5
9