Questions tagged [scp]

Secure Copy or SCP is a means of securely transferring computer files between a local and a remote host or between two remote hosts.

Filter by
Sorted by
Tagged with
-3
votes
1answer
40 views

scp refuses to move a file to a local folder

I'm trying to move a file from the server to my windows machine using cmd, first try: scp username@lux.technion.ac.il:/home/username/Human_hg19_chr13/Alignment_calls.vcf C:\Users\FF\Desktop\cyberduck ...
0
votes
1answer
40 views

sshd_config ForceCommand is blocking scp

I want to execute certain script on every SSH connection for admin user, for that I have added below lines to sshd_config: Match User admin ForceCommand /etc/my_script.sh Script is getting executed ...
1
vote
2answers
40 views

Downloading Logs & DBs as Non-Root User

I am the forever noob to linux webhosting.. and rather than deal with terminal width/height/length issues while hunting errors, I set-up a bunch of bash alias commands on my ubuntu 20.04 local machine ...
0
votes
1answer
67 views

Backup remote files with ssh|tar into archive.tar.gz

I am using the command ssh user@remote -p 22 "tar cz my-folder" | tar xz -C /d/local-backups to backup distant folders to my local drive. It is working fine, and the folders structure is ...
2
votes
1answer
79 views

How to use sudo privileges when copying files from one machine to another via ssh

Ok, so I already know how to copy a file in my machine to another one, and when I do it, (I'm trying to copy it to a sudo protected directory) it says permission denied. I do not know where to put the ...
0
votes
2answers
19 views

Archive folder onto server, compress on the host

I try to do the following: Upload a folder (say Pictures) onto a server Let the server compress the input stream and save it to a file Importantly, step 1) should be uncompressed as the connection ...
0
votes
0answers
38 views

Why Linux used memory is growing?

I use Rocky8.5 Linux and I am experiencing growing the size of used memory when I start transferring gigantic files by SCP! Here is the scenario, I have an ESXi in datacenter A and a VM in datacenter ...
0
votes
0answers
22 views

Restricted shell rush "invalid uid" error

I am setting up a new local account on a Debian buster server. The account name is "auto-upload". The entry in /etc/passwd looks like this: auto-upload:x:1060:1060:auto-upload:/home/auto-...
0
votes
1answer
30 views

Copying a file from linux to windows machine using scp with out entering password

Hello i am trying to copy the file from my ubuntu machine to windows machine using scp without entering the password. I have set up the openssh key and followed the steps to enable the password less ...
3
votes
1answer
103 views

scp when both hosts are remote and use different ports

I am reposting a slightly edited version of this Ask Ubuntu question SCP with two different ports, as the answer there that works with command-line options only (without modifying ssh_config) no ...
1
vote
1answer
70 views

Copying files over SSHFS/SFTP/SCP is slow [closed]

I'm trying to copy large files (~5GB, one file) between Windows and (remote) Linux. Windows and Linux are on the same LAN, but over VPN connection. They are physically far from each other, but ...
0
votes
2answers
67 views

Password visible while using SCP?

RHEL8 (default bash shell through ssh) > scp source_path remote_host:destination_path & > fg Password: @#$#@#myPassword'sVisibleOhNo!!! First of all, is this just my system, or is it ...
0
votes
1answer
46 views

How to download a file from a remote server to a local folder on my mac using ssh

I'm struggling to download a file from a remote server to a folder on my mac using ssh. I've remoted onto the box successfully and browsed to the folder where the file I want to copy (file1.txt). ...
1
vote
1answer
30 views

Copy folder with scp that contains links

How can I copy a folder with scp that contains links? When I use the -r flag, all the data where the links point to are copied. How can I copy the link itself?
0
votes
1answer
54 views

SCP Fails - no error

SCP has been working fine for a year or more and now nothing is being transferred but no error is captured either. /home/users/temp_test . scp delete.me dest@target.com ssh gives the following : /...
0
votes
0answers
18 views

Sync file content between two systems

Currently i'm running into an issue on my OpenWrt setup. I got 2 OpenWrt device running in a VRRP cluster, both are distributing DHCP leases to the connected networks, but these leases are stored ...
-1
votes
1answer
42 views

transfer file from local WSL ubuntu to remote server

I have a file called test1.zip in /mnt/c/Users/test/ folder of my local laptop [in which ubuntu windows subsystem for linux is installed]. Local ubuntu terminal WSL name is lauda Now, I would like to ...
0
votes
0answers
36 views

How to scp files from a ssh cli to my local computer

Machine: MacOS 11.6 I'm using ssh to enter the command line interface of my remote machine, and I'd like to scp files there to my local machine. I got my local IP address using ifconfig, say it's aaa....
0
votes
3answers
62 views

scp+ssh+scp in a single connection

I don't know the nomenclature, but basically our corporate environment is setup with jumphosts so creating an ssh tunnel is really slow. Therefore I'm hoping there is some way to perform these three ...
0
votes
1answer
31 views

Copy files from multiple directories and paste it into multiple directories

I have a directory " /data/archive In this directory there are 8 different subdirectories. eg : /data/archive/a /data/archive/b and so on Files under these subdirectories have date appended to ...
0
votes
1answer
70 views

Copy files to a particular remote server from a list of servers

I have 3 remote servers to which I need to copy files from the source server rather than having to run same command multiples times for each server, can it be possible to select one server from the ...
5
votes
2answers
629 views

How can I pipe a scp copy from a machine to another?

Let’s say we have three machines: A, B and C. Machine A can't reach machine B from any network, so I can't send files between both. But both A and B can be reached from C (my machine). Today I have ...
0
votes
1answer
21 views

Two versions of same script on server/weird behavior

I uploaded a bash script to my vps using scp. Then I changed a line locally, deleted it on the server and uploaded it again to the home directory. Now I'm facing this extremely weird behavior: If I ...
0
votes
1answer
102 views

Using SCP in a Bastion VM setup with an established SSH tunnel

I am looking at ways to mitigate the potential for using scp commands within GCE VMs that are running CentOS 8. Current setup is a bastion VM being able to SSH into a secondary VM (instance-1). I have ...
0
votes
1answer
41 views

Make scp skip downloading a file when "Permission denied" occure and instead try the next one

After transferring 2TB of 3TB using scp my internet died. I try to resolve this matter by setting all the files I have downloaded as read only with the hope of scp trying to copy over the file, ...
0
votes
2answers
69 views

zip then transfer files from one server to another using scp or rsync

I have estimated 44 GB of data from my web server. I want to transfer it to another server with less time. I am using Putty to transfer file. is there any way to achieve this? I don't know which ...
0
votes
1answer
30 views

Difference in directory size when copying using SCP

I am copying a number of directories from centos 6 to centos 7 the file system in the source system is NFS while in destination is NFS4, I noticed that the sizes of directories are smaller in the ...
-2
votes
1answer
31 views

scp -i /Downloads/class4.pem/ ec2-user@hostip: /home/ec2-user/test [closed]

scp -i /Downloads/class4.pem/ ec2-user@hostip: /home/ec2-user/test i am trying to upload file from local mac to ec 2 ,what i am doing wrong?
0
votes
0answers
61 views

scp / ssh: deleting a big file (1 TB+) WHILE it is being transferred

EDIT — To clarify/summarize, the scenario is the following: - Context: Large file (1 TB+) on server A, virtually no disk space left on server A, disk utilization on A keeps growing rapidly and that ...
0
votes
1answer
33 views

Get all directories with only one specific file inside

I have a series of directories on a remote server (D1, D2, D3,...) and each directory contains multiple files (f1, f2, f3) with the same names. What I have on the remote Server: D1: f1, f2, f3 D2: f1,...
0
votes
0answers
16 views

scp from remote to remote does not work if not using -3 [duplicate]

I mean to copy files from one remote server to another. If using scp -3, command succeeds (I have remote1 and remote2 in my ~/.ssh/config) $ scp -p -3 remote1:dir1/file1 remote2:dir2/ but when not ...
-4
votes
1answer
121 views

scp: why "Name or service not known" has priority over "No such file or directory"?

Consider: $ file xxx xxx: cannot open `xxx' (No such file or directory) Then why: $ scp xxx user@xxx.xx ssh: Could not resolve hostname xxx.xx: Name or service not known lost connection instead of: $...
1
vote
1answer
79 views

how to distinguish ssh from scp in ~/.ssh/rc?

I'd like to launch neofetch (a small utility that displays a banner) each time I log into a remote server via OpenSSH. So, I just added /usr/bin/neofetch into my ~/.ssh/rc file, and it works fine. The ...
0
votes
1answer
131 views

Can't transfer files from linux to window using scp?

I read many similar questions on stackoverflow and StackExchange. But I still failed to use scp to transfer files from linux to window. scp -r need_transfer_dir -P port username@ip:...
0
votes
1answer
38 views

Copy files using scp

I am copying 6 files through scp command with the use of wildcards. All the files are appended with the date(yyyymmddhhmmss) when the files were created. Example : File1.csv.rpl.20210702221033 File2....
0
votes
1answer
43 views

Copy folders only with numeric names

Lets assume we have a directory /dir/ which contains lots of folders. Some of the folder names are numeric like 1, 2, 64346, 2353, 3 etc. Some contain classical names some_name, some_other_name, ...
0
votes
0answers
31 views

Interrupted remote file copy in Midnight Commander keeps re-creating empty files after deletion - which process is the culprit?

lsof is not my friend, because the files gladly allow themselves to be deleted, after which they spryly spring back into existence which means that no process is taking hold of them... Couldn't find ...
1
vote
1answer
179 views

Retry a maximum of 10 times scp command until it succeeds

I wish to retry scp 10 times and print an error message if it failed. Below is my code: #!/bin/bash FILE=$1; echo $FILE; HOMEDIR="/home/ibro"; tries=0; while (system "scp -P 3337 $FILE ...
0
votes
0answers
31 views

How to "connect" two virtual machines that are in the same network?

I have two Linux virtual machines on two different computers at home and would like to know how to transfer files between them by using something like scp. The two computers are connected to the same ...
1
vote
1answer
259 views

scp does nothing but print usage only even after putting destination

I'm trying to copy a file on my home network using scp. However, every time I run it, it just prints usage instructions scp -i ubuntu@xyz.in:temp/backups/file.txt . and it only keeps on printing ...
0
votes
0answers
18 views

Utilizing unique passwords for scp based on user and program

I am running a python Flask endpoint on an Ubuntu 20.04 remote server. The script is launched by a user on the machine. The script exposes an endpoint which another end user would visit and interact ...
1
vote
4answers
420 views

How to scp from remote root directory (/)

I am trying to scp from a remote and I want to copy the whole filesystem (it is a small embedded linux device). SCP does not like the way I am trying it: scp -r name@ip:/ ./local_folder I get the ...
2
votes
2answers
77 views

How can I copy files from remote to local with a specific active group?

It's a question on copying in Linux in general and not just Singularity. I'm trying to recursively copy from remote directory to local directory. In my definition file I have: scp -r $USER@$...
0
votes
0answers
39 views

Copying a local file to remote server using SCP [duplicate]

I downloaded a fasta file from the web onto my Mac and have it currently saved in: /Users/sophia_liu/Desktop/uniprot-proteins.fasta I used the following command: scp -r /Users/sophia_liu/Desktop/...
0
votes
0answers
213 views

scp stopped working with bash: scp: command not found / lost connection

I was always copying files with scp with scp from to Suddenly it stopped working with #scp from host:/home/username/to bash: scp: command not found lost connection or #scp host:/home/username/to/...
0
votes
1answer
134 views

how do I resume an scp download? [duplicate]

I started downloading about 1gb from a colleague, and received 750mb in about 8 hours. The command I used was $ scp dev@dev_server:/home/dev/trainingVM/Centos7VMa_app_zxTmw457.ova What command could ...
0
votes
0answers
34 views

Copying (scp/sshfs) is far slower than iperf3 would suggest

I've got a ~160MB directory with 742 files. Copying it with cp over sshfs and with scp takes roughly 50 seconds (either way). However, iperf reports the following: Accepted connection from 83.10.32....
1
vote
1answer
49 views

Most convenient way to transfer files between the local machine and the remote [closed]

scp'ing every single time I need to have a small file copied when working on some remote server is quite tiring. What other solutions do we have? Which one is the most convenient? Preferably something ...
1
vote
0answers
25 views

How to scp using "Safeguard for Privileged Passwords" string

I want to copy file to the server with address target_ip. And I have Safeguard system which generates hostname string like vaultaddress=11.34.5.123@token=EyUusdfsdfEFEFDSCDFVfXEqFsdcsdcsdPe3s@username@...
2
votes
0answers
77 views

Remote file transfer (rsync, scp, sftp) times out

I am running into a problem where my connection times out when I try to transfer a file remotely from a MAC OS (11.2.3) to Ubuntu 18.04.05. I am able to connect and have write access to files via ssh. ...

1
2 3 4 5
14