Questions tagged [scp]

For questions around "Secure Copy Protocol" (SCP). GENERAL SCP SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. Secure Copy Protocol or SCP is a means of securely transferring computer files between a local and a remote host or between two remote hosts over an SSH protocol. This tag is NOT related to "SAP Cloud Platform"!

Filter by
Sorted by
Tagged with
0 votes
1 answer
69 views

Unexpected ambiguous redirect in bash script if connecting through ssh to server itself [duplicate]

I execute scripts, for example one of them is below. It work property as I expected. The file will send to remote PC and all output of copying, include possible error will store in file with extension ...
Evgeniy Chekushkin's user avatar
0 votes
0 answers
13 views

Is it possible to ignore existing files in the directory when performing scp using gcloud compute scp?

I am using gcloud compute scp to copy a folder to the remote, this got terminated (reason unknown) after coping ~60% of the files. Now, is there anyway to copy the remaining files without overwriting ...
cbac's user avatar
  • 11
-1 votes
0 answers
14 views

scp speed variation based on which shell calls bash script

I'm ssh'ing into a Windows 10 machine where I've set up an openssh server that's part part of Windows 10. I am currently logged in from another windows 10 machine. I have written a bash script that ...
Joshua Cook's user avatar
0 votes
0 answers
32 views

SCP large number of files in small chunks from Server A to Server B

I have 1.5 milion files in single directory on Server A and I have a script which will move these to Server B. Currently my script moves all the files at one go. I am looking for a process where I can ...
user3792741's user avatar
0 votes
0 answers
22 views

Go: Execute SCP command and print output

I am trying to run an scp command using the CMD struct in Go's os/exec. The output should be printed to the console while the command is running. My problem is with the latter, I can't seem to get the ...
Bram  Vanbilsen's user avatar
0 votes
0 answers
18 views

"No such file or directory" when scp copying Miniconda environment

I am trying to copy my Miniconda environment from one server to another server by using the command scp -r yala-app1:/scratch/houk/miniconda3. However it returns many similar errors of not being able ...
Kaihua Hou's user avatar
0 votes
0 answers
37 views

Copy files from remote server to local node js application folder using node-ssh

Hi I am trying to copy zip file from remote server to local node js folder . i tried like below but unable to copy file. const { NodeSSH } = require('node-ssh'); const ssh = new NodeSSH(); const ...
chethu's user avatar
  • 416
0 votes
0 answers
21 views

How to move a file from inside my Docker container via a script without a password

I am trying to move a file from inside my Docker container to my local machine. I have tried using scp but every time it asks for a password which I cannot input as I would like this to be done via a ...
Joe's user avatar
  • 37
0 votes
0 answers
56 views

Insert a password after the command "scp" is being executed (Rust code implementation) [duplicate]

I'm trying to write some sort of executable so I can easily upload a log.txt file from my server. I am using a "std::process::Command" and can't figure out how to combine commands between ...
a____________'s user avatar
0 votes
0 answers
20 views

With a directory full of millions of files, what is the most efficient way to download, process, and delete the files in manageable batches?

I’ve been handed a flat directory full of millions of files on a remote server that need to be processed (let’s just say I have to run a script called doThingsToTheFile.sh on each file). I can ssh ...
Mike S's user avatar
  • 1,461
0 votes
1 answer
35 views

Logging SCP transfer truncates the file name

Hello when I am running a script that scp data from a remote server to the local server I capture the scp output .When I vim the file I see that the filename has been truncated Why is this so ? ...
goced's user avatar
  • 61
-1 votes
1 answer
24 views

Not able to copy from EC2 in windows

I am not able to copy log file from ec2 instance to my local machine (windows). Command that I am using scp -i ~/Desktop/Repo/mypemfile.pem [email protected]:/logfilelocation/fileName.log ~/Documents/...
Shivansh Bajpai's user avatar
0 votes
2 answers
63 views

Bash Backup script: Permission denied

I have written a backup script for my linux machine that encrypts the tarball and sends it to a remote server with scp with configured ssh key pairs, but it gives me the following error when i run it: ...
Joseph Webster's user avatar
0 votes
0 answers
11 views

Subprocess.run is not equivalent to subprocess.getoutput if an argument has single or double quotes

I am using scp to transfer some file from Linux to Windows in python. The raw scp command is sshpass -p mypassword scp StartSaving.tmp [email protected]:'"F:/data_save"' I use '&...
Chenye Zhou's user avatar
-1 votes
1 answer
30 views

How do Windows pscp options map to linux scp options?

I'd like to transfer my code that uses pscp from windows to linux, but I use some options, that I do not find the equivalent on linux. How do these option map to scp? -pw -hostkey -ls -sftp -batch (...
lmocsi's user avatar
  • 583
1 vote
2 answers
43 views

bash script that scp with regex

I need some help. I am writing a bash script on RHEL that will use scp to download files from a remote server to the local machine. the way the script works is that you pass it the remote server the ...
goced's user avatar
  • 61
0 votes
0 answers
25 views

Uploading 25 GB file to a dedicated server takes long time

I'm in a situation where I've to automate the operation of uploading 25 files with sizes of 1 GB each. I have an Ubuntu machine that contains 25 files with sizes of 1 GB each, I should write a script ...
Abdulhamid's user avatar
-2 votes
1 answer
73 views

Scp file transfer from Mac laptop to Azure Ubuntu VM

I try to transfer a VHD.gz file from my Mac to an Azure Ubuntu virtual machine. From my Mac I've launched this command : scp path/to/XXXvhd.gz root@<Ubuntu_VM_IP>:/home/azureuser But I have this ...
jeandupont666's user avatar
0 votes
1 answer
29 views

Receive file existence status cannot be determined

I have to upload a local file in a sftp folder. Using SSH.NET I wrote this code using (var client = new ScpClient(host, port, user, password)) { client.Connect(); FileInfo file = new FileInfo(...
Rinfra90's user avatar
1 vote
2 answers
72 views

How to tell when a transfer is complete with libssh2?

I'm using libssh2 for scp file transfer which in general is working. However, I'm currently trying to read some file from a weird SSH server which doesn't support to retrieve the meta data of the file ...
signpainter's user avatar
0 votes
0 answers
75 views

scp command successful but returned Exit status 1

I executed following command: scp -v -3 user1@hostname1:filepath1 user1@hostname2:filepath2 Which was successful and transferred the required files however, still exited with Exit status 1. I don't ...
Maven's user avatar
  • 14.6k
0 votes
0 answers
49 views

Getting error "seek 32768 not supported with cursor 31952" using the CopyFilesOverSSH@0 Azure Pipeline task

I see solutions for this issue involving changing the chunk size and setting concurrency to 1 from 64, which is good because I am copying to an IBM product. However I am unable to figure out how to ...
BADavid's user avatar
0 votes
0 answers
21 views

Download file when logged in ssh ? - Not scp

this may be a really stupid question - but actually I did not find an answer. I read a lot about scp, which would serve in my case. But my guess is it should be easier: I'm already logged into a ssh ...
herrdeh's user avatar
  • 11
0 votes
0 answers
31 views

How do I change iTerm2 to use rsync instead of the default scp for downloading?

Question: How do I change iTerm2's default downloading protocol, scp, to use rsync instead? I want to use the iTerm2's CMD+Click feature to download a file from a server that I am ssh'd into without ...
Alan's user avatar
  • 1
0 votes
1 answer
25 views

The shell require user to input bquote argument post scp get command?

While SCP ing from the secure linux server, the shell require arguments input to bquote> ;; My inquiry is what is bquote utility with sftp? and also why the shell require another argument to cp to ...
Dopplver's user avatar
0 votes
0 answers
76 views

Upload and Download Files between Windows Local Machine and Linux Remote Machines using Vault SSH Secret Engine

Upload and Download Files between Windows Local Machine and Linux Remote Machines using Vault SSH Secret Engine Hi Team, Using SCP command how to Upload and Download File between Windows Local Machine ...
Deepak E's user avatar
0 votes
0 answers
50 views

pscp windows to linux fails with Server refused our key

I am trying to transfer a file from windows to Linux using pscp. This works perfectly fine: pscp -i C:\ssh\access.ppk -v D:\test_1.txt user1@host1:/tmp/ However, this fails: pscp -i C:\ssh\access.ppk ...
Maven's user avatar
  • 14.6k
0 votes
0 answers
252 views

Why can I not scp using appleboy/scp-action@master but can locally using scp?

I have the following... - name: Build run: npm run build - name: Check the output run: ls -l build - name: Upload to EC2 uses: appleboy/scp-action@master with: host: ${{ ...
Jackie's user avatar
  • 22.1k
0 votes
0 answers
38 views

Capturing Dropbear SCP Transfer Progress and Enhancing Identification in C++ Program

I am currently working on a C++ program that invokes Dropbear SCP and redirects the progress to a log file using dup2. Here is the relevant code snippet: int fd = open(logfile, O_CREAT | O_WRONLY, ...
Ofa's user avatar
  • 75
0 votes
1 answer
35 views

Copy scp multiple files from one server to another using snakemake

I would like to copy in parallel multiple number of files from one server to another. Is it possible to do it with snakemake? If not which are the alternatives? This is my try. xxx.xxx.xxx.xxx stands ...
user3224522's user avatar
  • 1,119
-1 votes
1 answer
42 views

Transferring files from windows machine to the server using SSH client

I want to transfer my folder from my local windows machine to the remote server, but it says permission denied as I'm placing files at root directory, and it have all the permissions First I place ...
Umair Ahmad's user avatar
0 votes
0 answers
98 views

Transfer folder using SCP in airflow

I want to transfer a folder from a Raspberry Pi using SCP command from SSHOperator in Apache Airflow, here are my task transfer_files = SSHOperator( task_id='transfer_files', ssh_conn_id="...
Xedonedron's user avatar
0 votes
0 answers
93 views

CommandNotFoundException raised for scp.exe (OpenSSH) called by powershell

my problem is, that a PowerShell script, triggered by a batch that's triggered from an Outlook rule throws this exception: scp : Die Benennung "scp" wurde nicht als Name eines Cmdlet, einer ...
L-Wis's user avatar
  • 1
1 vote
0 answers
163 views

How to configure tags at time of creating a AWS RDS instance

I am trying to create a AWS SCP to enforce some tags at time of resource creation.This is working fine for EC2,LAMBDA But for AWS RDS resource creation is failing as I am not able to give tags at time ...
Ashish Sharma's user avatar
0 votes
1 answer
40 views

SSH worked fine but scp fails

I am able to SSH and SCP from my local to the server but when I try to ant deploy; it does not work for me but works for my colleague. I get permission denied error, I am unable to understand if I am ...
Tanu's user avatar
  • 1,296
0 votes
1 answer
142 views

Jenkins pipeline - scp command getting permission denied with sshagent

When using the sshagent wrapper, I'm able to ssh into server A and server B, but when using the scp command, I get permission denied pipeline { agent { label 'pipeline' } ...
Alistair Hardy's user avatar
-2 votes
1 answer
48 views

Upload to random server from original server SSH

I currently have 5 servers, 1 upload server (ftp.example.com) and 4 storage servers (fs#.example.com). I'm currently looking for a way to send files from my upload server to one of the storage servers ...
Paulamonopoly's user avatar
0 votes
0 answers
26 views

Subject: ssh-copy-id postgres@secondaryserverip is not working for postgres user (checked with root and any other user it's working) )

I have installed two ubuntu server as Linux primary and Linux secondary. I Have installed shh on both server and allow network and permissions. when I tried to ssh-copy Linux primary server to Linux ...
Rajaram P's user avatar
0 votes
1 answer
45 views

How to use a command SCP on a python Program Linux inj a nested connection

I'm trying to create a python script that can copy files host inside another host and place it in my local folder. So the the setup is as follow Localhost -> HOST_1 -> HOST_2. So what I want is ...
mike_aze's user avatar
0 votes
1 answer
26 views

Save file with same label with different type in python

I have several files with the same label but the type is given by the date (e.g. example.0411, example.0406, example0324). I want to move all the files like this from a folder to another one. To do so,...
martinmistere's user avatar
0 votes
0 answers
15 views

Is there anyway to configure an ssh server in Memu play emulator?

Hello every body I wanna run the memu play macro commands from an external desktop app , and to do that I need either to execute the commands in a secure shell (ssh) or to transfer the .scp file ...
DMS 's user avatar
  • 1
0 votes
0 answers
32 views

Scp command says Connection Timed out in Centos 7

I am trying to send a file from a remote server to my local machine. I am using the following command: scp [email protected]:/root/myFile.txt C:\Users\Folder This command does not send anything, ...
Gloria's user avatar
  • 969
1 vote
1 answer
53 views

Downloading files using wildcards with scp in Ruby

I am successfully downloading the log files in "log_list" from the server to destination using the code below. I am using net/ssh / net/scp : (https://github.com/net-ssh/net-scp) log_list = [...
Rubin's user avatar
  • 51
0 votes
0 answers
122 views

scp in Bash script

I'm trying to scp a folder from my MacOS local machine to Ubuntu EC2 instance using Bash script. #!/bin/bash # This block should parse instance DNS name from terraform output terraform apply -auto-...
kavo's user avatar
  • 1
0 votes
1 answer
161 views

SCP permission issues on gitlab-ci

i am trying to copy a file to my Server while deploying my application with the Gitlab-CI. At this point I can connect to the server with SSH but can't use scp. My Pipeline looks like this: variables:...
Eidechse 94's user avatar
1 vote
1 answer
111 views

How do I use ansible to scp from a specfic host not in enventory to hosts in inventory?

I need to have my ansible playbook to pull a file via scp to each host in inventory from a host not in inventory. In my example I am running my playbook from 10.3.3.10 my inventory: [linux] 10.2.2.10 ...
Dave's user avatar
  • 735
0 votes
0 answers
158 views

Creating tar files then transfer and extract it via ssh/scp to a remote machine

I need a script that will create a tar file then can transfer and extract the file to another linux machine. I am new in shell scripts that's why Im needing assistance on this. Checked other posts ...
Jerome Teano's user avatar
0 votes
0 answers
130 views

Python SCP Socket Timeout

I am writing some code that will automatically push files to a server based on a timer. To push the files, I am using Python's paramiko and scp libraries. After the files is pushed to the server, it ...
ubernoob1010's user avatar
1 vote
0 answers
100 views

Github Action Deployment on Webserver "error copy file"

I have a Problem with the following yaml file: name: Test and Deploy on: push: branches: [ main ] jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout repository ...
sebastian kull's user avatar

1
2 3 4 5
38