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
1answer
17 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
53 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
117 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
139 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
90 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
102 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
38 views

OpenSSH Server: Directive 'SyslogFacility' is not allowed within a Match block

I want a specific matched User to have its 'ssh/scp' activities logged in an alternative facility. The current default is AUTH, but I'd like to log stuff for user 'dummy' to syslog Facility 'LOCAL2'. ...
0
votes
0answers
27 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.
0
votes
0answers
52 views

will the files copy when scheduled through cron tab during midnight with date format

* * * * * ssh user@server1 "mkdir -p /root/Documents/folder_$(date +%d-%m-%y)" && scp /root/Documents/tryfile user@server2:/root/Documents/folder_$(date +%d-%m-%y)** Using the above syntax I ...
2
votes
4answers
587 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
0answers
27 views

Can't pscp a folder from Windows to Linux: -r doesn't work

I have this folder structure: test myfolder subfolder subfiles I cd into test and try to run pscp -i C:\...\private_key.ppk -r myfolder root@XXX.XXX.XXX.XX:/SomeLinuxFolder however I ...
0
votes
1answer
38 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
43 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 ...
0
votes
0answers
44 views

copying dat from remote server to local by scp is getting “stalled”

I am trying to copy dat from a remote server(server A) to my local server(server B). The ssh session can be established,but scp get no speed and status shows "stalled". I tried to login to sftp,and I ...
1
vote
2answers
138 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
34 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
3answers
647 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/...
1
vote
2answers
208 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
82 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
161 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 ...
0
votes
0answers
54 views

Does not work Jumbo Frame in virtual network between Hyper-V Windows and Linux guests

I haVE a problem with long time of copying via pscp from Windows Server 2008 r2 to the Linux host. First of all, i understand, that this is a problem, because it tries to through central router. What ...
1
vote
3answers
709 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
41 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
52 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
242 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
515 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
34 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
73 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
147 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
59 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
0
votes
1answer
504 views

scp failing with vast.ai

I'm using vast.ai at the moment, and I've used my container through the site to generate some images that I'd like to download. I've tried to use SCP with my public key (which works 100% of the time ...
1
vote
1answer
153 views

How to allow an SCP client to change file mod time without being the owner

WinSCP complains at me when it tries to change the file modification time of a file it doesn't own. It says, "set times: Operation not permitted". I can remove this error message by unchecking "...
2
votes
1answer
1k views

scp with special username

I'm trying to create a shell script for copying files to a remote backup. This is my script so far: PASSWORD=MY-SECRET-PASS URL=SLOS755513-3:SL1255513@objectstorage.net DIR=/backup scp /home/user/...
0
votes
4answers
209 views

rsync except “last” file

I have a Linux server with log rotation for every 10MB. I would like to either scp or rsync all finished files to a remote storage. Is it possible to rsync except the newest file on an ongoing basis, ...
1
vote
0answers
320 views

transfer file from windows machine to hortonworks sandbox HDFS

I want to upload one file from a local windows machine to HDFS. I am using Hortonworks Sandbox for Hadoop. I have tried the following command to transfer file, but it shows connection refused. scp -...
0
votes
1answer
82 views

Unable to scp to another server

I am unable to scp to another machine in the same segment.Its getting stalled. I did a strace on the scp and i am seeing it as below. The other machines in this segment are fine except this server ...
1
vote
1answer
2k views

Permission denied when using scp, but able to ssh

I'm trying to copy a file from my local desktop to a remote server. Yes - the remote directory I want to copy to is set to chmod 777 Yes - the server is password protected, and I am sure I have the ...
2
votes
2answers
574 views

Achieving very fast (300+MB/sec) file transfer on Linux

I'm working with high end hardware, however I'm hitting cpu bottlenecks in all situations when attempting to move large amounts of data. Specifically, I'm moving large virtual machine image (VHD) ...
0
votes
1answer
104 views

strange behaviour multihop ssh

I have three machines A, B, C. The aim is to be able to transfer files from A to C. I have ssh access from A to B, and B to C; B and C are on a local network. This can be achieved with the scp -o ...
0
votes
1answer
471 views

scp to pfsense not working

When ever I try to scp a file from pfsense I get back what appears to be the help for pfsense's scp: scp admin@fw:/tmp/test /tmp/ usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i ...
0
votes
0answers
276 views

SCP to ubuntu server - Transfer stalled after a bit

i need to trasfer files from my mac os to an ubuntu server on a VPN. I can ssh into it but when i try to use scp to send files (of every size), the transfer gets stalled. this is the stack trace of ...
0
votes
1answer
39 views

Copying files between servers

Here is the situation there are 2 servers: SRV1 (IP:1.2.3.4) & SRV2 (IP:9.8.7.6) you can connect to SRV1 from your local computerwith the private-key : test-user-private.pem with the username ...
1
vote
1answer
2k views

SSH scp: cannot stat file, that seems to exist

I have file on remote machine. I can list it: ssh matous@xxx ls -la the file is in the reponse: ... -rw-r--r-- 1 matous matous 796672 Oct 11 11:12 D1.db ... Now If I try to scp it to my local ...
-4
votes
3answers
864 views

I need to run SCP, SFTP and SSH in three different ports

I need to run SCP, SFTP, and SSH in the same host but via three different ports; is there a way where we can configure SSHD in that manner? Thanks in advance.
8
votes
1answer
4k views

SCP with password authentication only doesn't ask me for password

I'm trying to copy files from one server to another with scp. On both servers, I configured ssh port to 222. sshd_config for both servers is exactly the same (no RootLogin, PasswordAuthentication ...
1
vote
2answers
852 views

scp to google cloud-shell fails (ssh works)

I'm trying to use scp to copy a large file over to cloud shell. Using the suggested command from this SO answer gcloud alpha cloud-shell scp \ localhost:~/Sites/my-app/big_file cloudshell:~/...
6
votes
1answer
970 views

SCP Changing text file contents

I am trying to copy a file from machine A: apt policy openssh-client openssh-client: Installiert: 1:7.2p2-4ubuntu2.4 to machine B: apt-cache policy openssh-client openssh-client: ...
3
votes
1answer
4k views

SCP hangs before File Transfer begins

I am trying to move a file from a virtual machine (Ubuntu 18.04) on my local system to a remote server using a very basic scp command. This issue is present only on one particular server, others work ...
1
vote
2answers
192 views

Change the default SCP command flags in Linux

I am trying to move a file from a virtual machine (Ubuntu 18.04) on my local system to a remote server using a very basic scp command. This issue is present only on one particular server, others work ...
0
votes
2answers
1k views

known_host for SSH connection

I program an application in Java. This application make a connection between two PC (One Windows and One Linux). My application must make a connection and make few commands. Among commands, I want ...

1
2 3 4 5
8