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"!

Secure Copy or SCP is a means of securely transferring computer files between a local and a remote host or between two remote hosts. It is based on the Secure Shell (SSH) protocol.

The term SCP can refer to one of two related things, the SCP protocol or the OpenSSH scp program.

Source: Wikipedia (Secure copy)

1861 questions
0
votes
0 answers

os.system to Create Remote Directory (Python)

I am working on a code to copy images from a folder in a local directory to a remote directory. I am trying to use scp. So in my directory, there is a folder that contains subfolders with images in it. There are also images that are in the main…
Alina DW
  • 111
  • 1
  • 17
0
votes
2 answers

How to indicate a port number in a unix command (SCP) when copying files from a one remote server to another?

I have a case when there are 2 remote hosts, each with a unique port number, which i both need to indicate when using SCP command. There is no problem indicating the unique (non 22) port number for the first one, but i can't figure out how to…
edgarsvil
  • 15
  • 7
0
votes
1 answer

Hide files while being transfered via scp

I'm reading into a local folder where various files are written, if file match a pattern I send those files to a remote server via a second script (transfer_file.sh), if transfer is completed successfully (via SCP) I then use rsync to move the…
gogasca
  • 9,283
  • 6
  • 80
  • 125
0
votes
4 answers

Fix for scp: .: not a regular file

I am trying to write a shell function to scp a file to my AWS host function ec2-scp() { scp -i /path/to/pem/file.pem $1 user@ec2.host.amazonaws.com:. } I am using it as ec2-scp server.war And I am getting an error: scp: .: not a regular…
Sandeep Kaul
  • 2,957
  • 2
  • 20
  • 36
0
votes
1 answer

pulling file and zip while pulling in UNIX

I am generating files from netezza server using nzsql. Now the next part of the requirement is to zip and move the file into a different box (a second unix box). I can achieve this sitting in the 1st box (sitting in the first box I am first doing…
Koushik Chandra
  • 1,565
  • 12
  • 37
  • 73
0
votes
2 answers

could not copy file name with space in scp ssh

I could not copy the file with spaces in file name using ssh2_scp_recv() function.This is the filename testfile-03_23_15 11 02 AM.csv which actually stored in server. my code is here if ($file == "testfile-03_23_15 11 02 AM.csv"){ …
Benson KP
  • 1
  • 3
0
votes
3 answers

How to detect a program and shut it down

So, I have been working on a project for class, and I have half of it down, but the second half I have been googling and am unsure how to go about it. Here is the question: You suspect that there is a "bad" program (called “badprog” that launches at…
Overlord
  • 21
  • 2
0
votes
1 answer

Python scp copy images from image_urls to server

I have written one function which recieves a url and copy it to all server. Server remote path is stored in db. def copy_image_to_server(image_url): server_list = ServerData.objects.values_list('remote_path', flat=True).filter(active=1) file =…
Binit Singh
  • 973
  • 4
  • 14
  • 35
0
votes
1 answer

SCP not working for OpenShift

I am connected to OpenShift via rhc ssh . in this case is fela. [fela-basickarl.rhcloud.com 553a...]\> scp nodejs.log 553a...@fela-basickarl.rhcloud.com:~/app-root/logs/ The authenticity of host 'fela-basickarl.rhcloud.com…
basickarl
  • 37,187
  • 64
  • 214
  • 335
0
votes
1 answer

Copy file/folder from windows to Linux PC using SCP Command

I want to copy a few folders from Windows PC to Linux machine. I am using Putty and connected to my Linux PC. In PuTTY, i executed following command where i am trying to copy files from Windows folder path to the present folder in Linux: scp -r…
vijayanand1231
  • 447
  • 1
  • 7
  • 20
0
votes
1 answer

I want to scp one or more file to different directories in another computer

I want to scp several files from one computer to other. The command are: scp -r file1 file2 com2@ip:dir1 scp file1 file2 com2@ip:dir2 How can I scp -r file1 file2 file1 file2 to Dir1 & Dir3 on other computer or is there any other command? Thanks.
gaurav
  • 1
  • 1
0
votes
1 answer

Script used for moving files between computers

I have two Ubuntu machines, machineA and machineB. I would like to write a script that periodically (e.g., every 15 minutes): copies ALL the files contained in a folder of machineA to a folder in machineB (via scp) deletes ALL the original files in…
Eleanore
  • 1,750
  • 3
  • 16
  • 33
0
votes
1 answer

How to set variables in a subshell?

I have a script which will be running in each server and copies certain files into it. Script knows where I am running and what files I need to copy. Script will copy files from local datacenter local_dc but if it is down or not responding, then it…
john
  • 11,311
  • 40
  • 131
  • 251
0
votes
2 answers

SCP in Java with URIs without password and username

How do I SCP a file from a RHEL linux box to another RHEL linux box without the password and without the username using URIs in Java using SCPClient? I know how to do a passwordless ssh, and I can SCP a file without the password, but I'm having…
Everlight
  • 431
  • 5
  • 18
0
votes
1 answer

JSch scp without known_host file and with StrictHostKeyChecking

I am trying to copy some files from a Windows machine to a Linux machine, which is working fine with JSch so far. I can copy files using StrictHostKeyChecking no or I need to have the known_host file from the Linux machine I copy to. I am using the…
Brave
  • 177
  • 5
  • 15
1 2 3
99
100