Questions tagged [scp]

GENERAL SCP SUPPORT IS OFF-TOPIC. Support questions may be asked on https://superuser.com. Secure Copy 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.

0
votes
0answers
16 views

SCP stops transferring at 100% until time out

I am using scp in order to send a zip file to a server. Everything is fine so far, but it shows 100% and does not close the connection. Unfortunately the last part is missing because I am not able to ...
0
votes
3answers
31 views

Pass value of variable to complex command

I am trying to pass value from string variable to complex bash command and I have problem with it. When I executing commands: files=($(ls abc*)) for file in "${files[@]}" do scp $file user@...
-1
votes
1answer
32 views

scp to EC2 failing because of permission error

I'm trying to scp a project onto my EC2 instance. I have my .pem keys but the scp seems not to be able to find my keys, despite giving it the full address. Any insights? [ec2-user@ip-172-31-19-174 ~]$...
-1
votes
0answers
15 views

SSH Secure File Copy bugging after copying about 9000 files

I'm using the following ssh command to copy local files to a remote host: scp -r profile_pics site@ssh.pythonanywhere.com:/home/site/media/profile_pics I'm copying about 70,000 files. After it ...
-1
votes
0answers
13 views

Why SCP to root folder possible but not subfolders?

When I run the command scp -i ~"key pair.pem" ~"uploaded doc" ubuntu@ec2-18-212-165-35.compute-1.amazonaws.com:~/folder scp: /home/ubuntu/folder/file: Permission denied but if I run the command ...
0
votes
0answers
31 views

sh: 1: sshpass: not found

I have a php code to execute sshpass scp command to send file to other server. It's working fine when I run it in terminal as root, but when I execute this script with php exec() function, it outputs '...
0
votes
0answers
26 views

Trying to tar a file and send through scp via sshpass but sshpass not functioning

I have set -x added to see the lines that get executed when the code runs, all of the lines are being executed but the actual package.tar.gz file, which is represented as $FILE in the scp command, is ...
-2
votes
0answers
16 views

Backup interruption using scp. How to exclude files just downloaded?

I need to backup a huge folder (more than 100 GB) from an external server. I use scp command in a linux terminal but connection issues happen sometimes. So I need to restart the procedure every time. ...
-2
votes
1answer
13 views

How to copy file from Windows to Linux machine through command line?

I am trying to copy a file which is present in my local machine - which is Windows 10. And I have connected to Linux server from my PC through VNCViewer. Now I need to write a shell script on my ...
-1
votes
1answer
33 views

scp using Jsch to copy file asking for password

I am trying to copy files from one remote server to another remote. I tried to use scp. It's copying the files through putty but not through the code. I am currently using echo to copy the files. With ...
0
votes
1answer
24 views

Can we list the contents of a directory and sort them by modified time using scp command in windows

We want to connect to a remote machine using SCP in windows. We want to copy only the recently modified file and hence we would like to list the contents of the directory in sorted order so as to ...
0
votes
0answers
24 views

Transferring files generated to AWS - Google Colab

Trying to retrieve (transfer to another server) some processed data in the form of GBs of images. Is there a way to scp or otherwise transfer files generated in Colab to AWS? Or, another web endpoint?...
-1
votes
1answer
45 views

Ant scp task: JSchException: invalid privatekey [duplicate]

I created a new key pair using ssh-keygen and added the public key on the server. Using sftp -i private_key_file user@server I can successfully open a connection to the server and put files. However, ...
0
votes
0answers
10 views

Sony Vaio all in one restarting when doing TAR or copying large files over network

I have a Sony vaio all in one (Core i3 with 4GB ram) with the Debian OS installed. Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3....
1
vote
0answers
22 views

Copy files from a remote server which requires superuser preliveges to local machine [duplicate]

Using pscp and when tried to copy files which needs root previleges. I am getting Access denied error. pscp admin@<ip address>:<source> <destination> I had to change the access ...
-1
votes
1answer
31 views

identify file not accessible ssh

My OS is Ubuntu16 in virtualbox. I'm trying to write a script to transfer multiple files(filename:t01,t02,t03) with scp. This is my code: vim scriptname #!/bin/bash for a in {01..03} do scp -i ~/...
-1
votes
1answer
41 views

can't connect ssh sh: 6000: command not found [closed]

I'm trying to connect my server and ssh show me: sh: 6000: command not found blow is ssh verbose log and my sshd_config. [~] # ssh -v admin@myserver -P 6000 OpenSSH_7.6p1, OpenSSL 1.0.2k 26 Jan 2017 ...
0
votes
1answer
24 views

Use scp to send a file to an IP from a file

I need to send a file ( my_file.txt ) to an FTP Printer whose IP address is contained in another file ( printer_ip.txt ). This file contains only one IP address. $ cat printer_ip.txt 10.111.22.333 ...
-1
votes
1answer
27 views

I ran scp -i ssh “<filepath of remote linux machine> . ” using Go from my client machine, but it is returning “no such file or directory” [duplicate]

How to execute the scp -i ssh " . " using Go? I have used the following code snippet. cmd := exec.Command("scp -i dragonstone.pem <user>@ubuntu:<file location> .") err = cmd.Run()
0
votes
0answers
48 views

Upload a file from remote server (windows) via LIBSSH SCP to Linux

I am trying to upload a file from windows server by using libssh scp library. I am successfully able to download the file on windows server but while uploading a file its unable to locate the file ...
-1
votes
2answers
95 views

Connect a server through another server in putty/jump server using java

I need to connect to another server after i logged into putty server using java code and I need to download files from second server after I connected. Do anyone have the code. Once the putty server ...
0
votes
2answers
117 views

Scp file from local to remote server with user password

I'm trying to copy a file from my local machine macosx 10.11.6 to a remote server (digital ocean droplet) ubuntu 18.04 using scp. I tried scp -r /path/to/local/file username@ipaddress:/path/to/...
0
votes
0answers
75 views

Unable to read data from S4-System with App in Cloud Foundry via OData services

When trying to call the OData service (in our example the BusinessPartnerService) on the S4 instances we have we are getting the error as seen in ref6 and ref7. However, if we are calling the API via ...
0
votes
0answers
34 views

scp hangs after upload

The Setup: When we use SCP on our CentOS Hyper-V VM to copy files to the target (SunOS) it gets to 100% and then hangs, not closing the connection. When we finally use ctrl+C to exit, the file on the ...
1
vote
1answer
92 views

How to avoid compressing of image, audio and video files downloaded from remote ssh using libssh scp command in c++?

I am trying to download few files stored on a remote machine. Those files can be either text files, image files (of jpeg,jpg form), video or audio files. Text files are downloaded successfully without ...
0
votes
0answers
17 views

Scp copies data to server from GitLab and exit with code 1: No such file or directory

I have my script on GitLab, and I would like to copy my scripts to my server in deploy pipeline. I create env variables with my USER_IP and USER_PASS for sshpass comand. This is the output of my ...
0
votes
0answers
20 views

Copy a jpg and h264 file from remote server to windows using sshlib scp function [duplicate]

I need to download a directory from a remote location by using libssh and scp protocol. The directory contaains audio, video and some text files in it. Using the below code, I am trying to scp these ...
0
votes
0answers
29 views

Unable to scp a file from server to host

After logging into a server via ssh, I am trying to copy a file from said server to my host machine which runs windows 10. I try the command: scp <userID>@<server.name>:/path/to/server/...
0
votes
1answer
39 views

ant.scp fails with Copying from a remote server to a remote server is not supported for local destination

I use gradle to copy files from remote machines to local machine. Following is the snippet. ant.scp(file: "${userName}:${pwd}@${hostName}:${remoteFileAbsPath}", todir: localFileDirPath, trust: "...
0
votes
0answers
20 views

SCP - Recursive copy (After security issue discovered in 2018)

Recently a security issue was discovered in scp. The security issue was fixed with the latest macos update. I am using scp via Ruby net-ssh. This is actually using the system scp in the background. ...
0
votes
1answer
81 views

File transfer from Windows to Linux failing using ssh2 : ssh: Could not resolve hostname C: Name or service not known

I am trying to send a file from windows machine to linux server using ssh2 in JavaScript, sftp is not working so I am using exec and specifying scp command , but i am getting below error. STDERR: ssh:...
0
votes
0answers
17 views

Backend password change in SMP SDK 3.0

I am trying to validate my password with back-end using SMP SDK in subsequent login. I have 2 issues After giving the wrong password also the SMP throws no error in there delegate method ...
7
votes
1answer
887 views

scp fails with “protocol error: filename does not match request”

I have a script that uses SCP to pull a file from a remote Linux host on AWS. After running the same code nightly for about 6 months without issue, it started failing today with protocol error: ...
-1
votes
1answer
30 views

Running commands on remote server return result to local to process and run another command on remote server

I am finding it very difficult to wrap my head round this. I am trying to accomplish something very simple which is to periodically copy files from one linux system to another through a script on ...
0
votes
0answers
29 views

How to change the copy path after PARAMIKO connection is established

Trying to get a file from a remote server at Linux using the following code: import paramiko from paramiko import SSHClient, AutoAddPolicy from scp import SCPClient class SSH_Connection: def ...
0
votes
0answers
45 views

How to copy files from remote server to another remote server using scp_get or scp_put

I am trying to automate a functionality. I would like to copy a file from remote server to another remote server using Perl. How do I achieve this? I have tried the following piece of code: #!/ats/...
-1
votes
1answer
56 views

SSH & SCP between two EC2 instances times out

I would like to transfer/tunnel between two Amazon EC2 instances via ssh and scp (from A to B, as shown below). Both instances are running Ubuntu 18.04. Instance A: ec2-34-200-134-210.compute-1....
-1
votes
1answer
116 views

Python program to grab a file off of Raspberry Pi [closed]

I am looking to automate file retrieval from a python program that gets a file from my Raspberry Pi and returns it to my local PC. I have tried SSH, FTP & SCP but can't get any to work and run ...
0
votes
1answer
110 views

How to supress “killed by signal 1.” error on ssh jump connection

I am using scp and ssh connections with following commands and yet keep getting "killed by signal 1." error. scp example: $ scp -q '-oProxyCommand=ssh -W %h:%p {user}@{jump_server}' /path/file.txt {...
0
votes
0answers
12 views

Order of files pulled by scp -r

What order does scp -r pull files? I don't intend to control the order like here but just curious to know why that particular order.
0
votes
0answers
20 views

Team Foundation Server 2017 Issue Securely Copy Files to the Remote Machine -SSH

Issue copying files from build agent to Linux server using TFS task Securely Copy Files to the Remote Machine. Get the error: Error: Handshake failed: signature verification failed. I've tried ...
0
votes
0answers
7 views

Entering a password for a ftp server [duplicate]

I need to transfer multiple directories from one cluster to another. I am currently on the cluster that has the files/directories that I want to transfer and have a simple script to transfer the ...
-1
votes
1answer
39 views

How do I scp from a server with a variable as the file path?

I am trying to write a bash script that (1) finds the newest file matching a string pattern on a server and (2) copies that file from the server to my local. I have completed the first part but am ...
1
vote
2answers
39 views

In Ruby can I copy files using Net::SSH?

So far as I can tell I need to use both Net::SCP and Net::SSH if I want to copy a file to a remote host and then manipulate it from the command line. It would be nice to set up one SSH session, do ...
-2
votes
1answer
36 views

“no such file or directory” after using SCP

I am using WSL Ubuntu-Bionic on my laptop and copied a file to a beaglebone (Debian-Stretch). Somehow it is shown by ls -l when I ssh onto the beagle, but if I try to run it, I get an error: scp ...
1
vote
1answer
51 views

How to edit JSch SCP to send one file from a remote host to another remote host?

I am trying to use the JSch library to send a file between two remote host. I am currently using the ScpFrom class to accomplish this. However, I was trying to modify the code to allow me to connect ...
0
votes
1answer
124 views

scp permission denied in /tmp directory

When I copy a file using scp from a remote location to the /tmp/ directory in local machine, it is successful. However, when I copy another file using scp from the same machine(i.e. remote and local ...
0
votes
2answers
82 views

How to properly escape spaces form multiple files in an scp command in a sourced function in bash

I've built a function in my .bashrc that breaks when it tries to scp files with spaces in their names, but if I run the generated command output from the function on in the shell directly it seems to ...
0
votes
1answer
41 views

Bash complete with “@”-sign

I am trying to create an autocomplete script for scp. The script reads the user and hostname from my .ssh/config file My .ssh/config file looks like: Host host1 HostName host1 User userA ...
0
votes
0answers
13 views

how to proxy a download for the browser/user using ssh/scp in php without an intermediary transfer [duplicate]

I have a PHP web-app that lists files on a server using ssh. I want the browser/user to be able to download those files. The Apache ID www-data does not have access to the files/folders. The PHP code ...

http://mssss.yulina-kosm.ru