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
0 votes
1 answer
18 views

Connecting to the sftp server hosted in Windows from Linux

We have a directory (hosted on Windows) named "groupftp" that is shared and is accessible from our Linux server We connect through it from our linux machine with the below sftp command and ...
user avatar
0 votes
1 answer
38 views

How can I optimize the transfer of files between two systems and also trim the file

I have computer 1 logging voltage data to a file volts.json every second. My second computer connects via ssh and grabs that file every 5 minutes. Splunk indexes that file for a dashboard. Is scp ...
user avatar
  • 129
2 votes
1 answer
95 views

Ignore Files when copying using scp

How to ignore certain files when using the scp command? I have the following file structure on the Linux server : Everything > NeedThis NeedThisToo DontNeedThis I want to get NeedThis and ...
user avatar
1 vote
1 answer
25 views

How to copy directory from remote machine which requires a specific UNIX group?

I need to copy automatically a list of directories from a remote machine into a local machine. Up to now, I was using rsync or scp for that: > rsync -a $USER@$HOST:/remote/a/b/c /a/b/c Now, the ...
user avatar
  • 83
0 votes
0 answers
22 views

Is it safe to keep server name and path to files in public git repository?

Hopefully this question is not off-topic: I find myself constantly scping files from a remote server, and I want to keep a bash script in GitHub that invokes scp and brings files. Is it safe to let ...
user avatar
1 vote
1 answer
44 views

How to: ssh over Jumphost to host, both on non-default 22 port?

Both my jump server and the final host run on non-default 22 port. According to https://wiki.gentoo.org/wiki/SSH_jump_host I tried ssh -J user1@host1:port1 user2@host2 -p port2 or ssh -J user1@host1:...
user avatar
-1 votes
1 answer
47 views

How to transfer a file from remote windows OS to local Linux filesystem?

I know scp is able to upload and download between Linux servers, and also upload from Windows to Linux server. But is downloading from Windows to Linux possible? To clarify, the requirement is to run ...
user avatar
1 vote
0 answers
93 views

Remote SSH connection from one server to another HANGS, no fail, no error

Trying to copy files from one server to another because the amount of files is not feasible to do by copying to my home pc and then out to second server. SSH, rync, and scp all hang from either server,...
user avatar
4 votes
1 answer
139 views

How to get scp version?

How to get scp version? Already tried: $ scp --version scp: unknown option -- - usage: scp [-346ABCOpqRrsTv] [-c cipher] [-D sftp_server_path] [-F ssh_config] [-i identity_file] [-J ...
user avatar
  • 397
3 votes
1 answer
151 views

scp command getting failed : Unable to negotiate with 10.100.10.10 port 55: no matching host key type found. Their offer: ssh-rsa,ssh-dss

While we are trying to copy a file from windows server to linux getting below error : command: scp C:\Users\arya\Videos\aaa userabc@10.100.10.10:/local/ scp command getting failed : Unable to ...
user avatar
  • 262
0 votes
1 answer
39 views

Periodically transfer files from two remote servers to single host using shell script

I have two remote data acquisition machines that are continuously writing data to their own local data.txt files. The remote machines begin acquiring data and appending their data.txt with new data ...
user avatar
  • 103
0 votes
0 answers
55 views

SCP results look strange when using >> to append to file

I am trying to record a reoccurring test to a txt file using tail but there is an issue with the output. The commands I am running are: script -q /dev/stdout -c 'scp /home/user/test.img user@pc28:/tmp'...
user avatar
  • 1
0 votes
2 answers
157 views

Unable to use SCP to do SCP from server to Host

I'm currently trying to copy some files from a Server (Ubuntu 20.04) to a domain computer (Windows 10) via scp. But I've so far been unable to do it successfully. Summing up the situation: I'm using ...
user avatar
0 votes
1 answer
40 views

tcpdump in Kali Linux VM does not capture scp between two devices

Situation: I'm learning how to develop tests for a hardened server my company is developing for a client. The test configuration will consist of the test target (the server we're developing) and an ...
user avatar
0 votes
0 answers
29 views

can something like --rsync-path be done with scp?

scp is handy sometmes because of its -3 feature. Systems here are configured to disallow root login, however sudo is configured to allow certain folks to pass --rsync-path=sudo\ rsync. i'd like to ...
user avatar
  • 51
0 votes
0 answers
17 views

SCP between two remote hosts: how to use the SSH config file for both hosts? [duplicate]

I wish to transfer a file from a remote host A to a remote host B using scp, using configuration from my SSH config file for both source host and destination host. Both hosts A and B are properly ...
user avatar
0 votes
0 answers
35 views

How to: scp over Jumphost to host, both on non-default 22 port?

My Jumphost uses port 2222 and my final host uses port 20048, so I used scp -P 2222 -J qiulang@192.168.1.16 root@47.101.168.143:20048/usr/local/var/log/frontend/test.log . I got the error ...
user avatar
0 votes
0 answers
12 views

Linux SCP across 2 VMs with PORT and IP Forwarding in sshd_config file of VM1

Aim : To do SCP across 2 VMs with PORT and IP Forwarding in sshd_config file of VM1. There are 2 servers serverX, serverY. I would like to transfer a file from my windows machine to remote machine(...
user avatar
0 votes
1 answer
135 views

error using scp in alias: not a regular file

I know questions regarding this error have been asked before - but I can't seem to figure out why this isn't working in this case: for aliases. I have the following alias scpip='scp $1 user@ip.edu:~' ...
user avatar
0 votes
0 answers
81 views

SCP through a nested SSH login

I have a nested SSH authentification through which I would like to transfer a file with SCP. To login I have to follow this process: $ ssh external_user@external_host // It prompts me for my ...
user avatar
0 votes
2 answers
107 views

How to receive a file from router to pc

Here what I try to do; from my router (root@192.168.1.1). I want to SCP a file on my PC and copy it to my router. So, if I'm already in ssh remote: root@openwrt: SCP root@mypc? What is my PC, home/...
user avatar
  • 75
0 votes
2 answers
50 views

SCP from Remote Server Problems

I have a really old Debian remote Server. Unfortunately the APT is broken so I cant update or install anything. The last thing before I delete the Server is download some files and folders. I know I ...
user avatar
3 votes
2 answers
281 views

Compare files across servers

Once upon a time I remember doing something roughly like this: vimdiff <(scp://some_server/home/user/.zshrc) <(scp://some_server-qa/home/user/.zshrc) (where some_server and some_server-qa are ...
user avatar
  • 8,455
0 votes
1 answer
45 views

Pull file from Linux server

I have ssh access to machine A, who has ssh access to machine B, but not the contrary I know how to push a file from me to A scp file user@machineA: But I don't know how to pull a file from B to A ...
user avatar
  • 25
0 votes
1 answer
105 views

"Host key verification failed", SSH only working when signed in as root user

I am trying to ssh/scp from one machine on my network to another. The problem is that when I execute an ssh/scp command (ssh user@ip_machine_2) it is only "working" when I am logged in to ...
user avatar
  • 1
0 votes
2 answers
58 views

Copying files from remote securely

I've got a script on a local machine that is meant to copy files to a remote server overnight. I currently do it via scp using unpassworded key, as that was the only way for script to work. The script ...
user avatar
1 vote
0 answers
52 views

Unable to re-enable ssh root login in CentOS

I need to be able to copy some files using scp as root, and for this I need to enable ssh login as root; so I edited the file /etc/ssh/sshd_config by changing PermitRootLogin no to PermitRootLogin yes,...
user avatar
  • 251
-3 votes
1 answer
67 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 ...
user avatar
  • 1
1 vote
1 answer
280 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 ...
user avatar
  • 11
1 vote
2 answers
57 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 ...
user avatar
0 votes
1 answer
186 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 ...
user avatar
  • 103
2 votes
1 answer
699 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 ...
user avatar
  • 25
0 votes
2 answers
24 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 ...
user avatar
0 votes
0 answers
45 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 ...
user avatar
2 votes
0 answers
89 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-...
user avatar
  • 689
0 votes
1 answer
76 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 ...
user avatar
4 votes
1 answer
343 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 ...
user avatar
  • 581
1 vote
1 answer
150 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 ...
user avatar
  • 207
0 votes
2 answers
90 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 ...
user avatar
  • 1
0 votes
1 answer
723 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). ...
user avatar
  • 101
1 vote
1 answer
220 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?
user avatar
0 votes
1 answer
345 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 : /...
user avatar
0 votes
0 answers
30 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 ...
user avatar
-1 votes
1 answer
206 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 ...
user avatar
  • 101
0 votes
0 answers
70 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....
user avatar
  • 623
0 votes
3 answers
79 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 ...
user avatar
0 votes
1 answer
39 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 ...
user avatar
0 votes
1 answer
135 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 ...
user avatar
5 votes
2 answers
747 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 ...
user avatar
  • 225
0 votes
1 answer
22 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 ...
user avatar

1
2 3 4 5
15