Questions tagged [scp]

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

The SCP protocol is a network protocol, based on the BSD RCP protocol, which supports file transfers between hosts on a network. SCP uses Secure Shell (SSH) for data transfer and utilizes the same mechanisms for authentication, thereby ensuring the authenticity and confidentiality of the data in transit. A client can send (upload) files to a server, optionally including their basic attributes (permissions, timestamps). Clients can also request files or directories from a server (download). SCP runs over TCP port 22 by default. Like RCP, there is no RFC that defines the specifics of the protocol.

Source: wikipedia

As per documentation of the most widespread implementation OpenSSH, the protocol is considered "outdated, inflexible and not readily fixed". Using more modern protocols like sftp and rsync for file transfer is recommended.

432 questions
0
votes
2 answers

Copying file from remote server to my ubuntu desktop

I have confused how to do that. someone tell me to use scp but it still unclear for me. I just can control the server using ssh. I did like: qa-desktop2@qa-desktop2:~$ scp jeinqa@136.198.117.4:/www/oqc/inspection_report.php…
klox
  • 197
  • 1
  • 2
  • 7
0
votes
1 answer

How To set up SCP from localhost to remote Ubuntu server - Part 2

I am trying to configure an ubuntu vps. I have set up ssh secure login using rsa public and private keys from a local machine. As well as disabling root login I have also set up iptables and configured to allow ports 80 and 22 (port 22 only from my…
user866190
  • 209
  • 1
  • 2
  • 5
0
votes
1 answer

transferring files from server to local machine

Hello I am running ec2 ubuntu instance, now I need to download few files to my local ubuntu machine from my server. How to do it. I went through few instructions available on internet, which are not working for me. Kindly help me in this regard.I am…
Jeevan Dongre
  • 741
  • 2
  • 17
  • 33
0
votes
2 answers

secure methods of automating file transfer via scp

Yesterday I asked a question about restricting access via ssh, and I was advised to have my machine access the data on the public workstation. As an unfortunate necessary follow-up to that, how can I set up an automated data transfer script from a…
eykanal
  • 335
  • 1
  • 2
  • 13
0
votes
1 answer

Trouble connecting to a local machine through a remote server

I'm trying to scp something to my local machine from a remote server. At first, scp complained that there was no route to host through port 22, but then I forwarded that port on my router. Now, I try to use both ssh and scp to connect to my local…
AKor
  • 101
0
votes
1 answer

How can I setup a one-way scp?

I am trying to setup a remote host to act as a data sink, i.e. some kind of environment on the remote host, A, which allows users to scp data from their local machine to A but not from A to their local machine. One account on the remote host uses…
Thomas F. Hughes
0
votes
3 answers

How to dereference Mac OS X alias?

I'm trying to scp a file with it's alias. How can I achieve this?
Eonil
  • 10,459
  • 16
  • 36
  • 54
0
votes
1 answer

Cygwin Scp or Rsync permissions

Why is it that whenever I Scp or Rsync files from my Windows machine using cygwin to my Ubuntu server. The copied files will all have no permissions. Rsync doesn't even work because it cannot copy files into the folders which don't have the +x…
verhogen
  • 333
  • 2
  • 4
  • 14
0
votes
1 answer

scp a folder to my ubuntu server

I have a folder on my mac that I need to move over to my server. I can ssh in the server but how do i get this folder up.... say I am on my local computer and the folder is named shared and I want to put it on the server in…
Matt Elhotiby
  • 889
  • 3
  • 10
  • 22
0
votes
2 answers

Priority for HTTP over SSH

My file server (Ubuntu) on the internet runs OpenSSH, where users upload and download files using scp or WinSCP. At the same time, the server runs some web applications (http), which need higher priority. Is there a way to give HTTP priority over…
Witek
  • 1,433
  • 3
  • 14
  • 16
0
votes
1 answer

scp/sftp backup script

I'm looking for a simple backup solution. My hoster has provided some backup space on remote server over scp/sftp. They have supplied me a username and a password. The option of auth with a RSA/DSA key is not avaliable. Ideally, I'd like to have a…
facha
  • 1,368
  • 2
  • 18
  • 26
0
votes
3 answers

Can I use expect with SCP to bypass the password prompt?

I am trying to transfer some files using SCP in a shell script, but I am being prompted for my password on the remote machine. Can I use expect with scp to enter the password so I don't have to type it in all the time?
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
1 answer

opennebula VM submission failure

I am new to OpenNebula, the cloud is up and running but the VM is failed to be submitted to a node. I got the following error from the log file. ERROR: Command "scp ubuntu:/opt/nebula/images/ttylinux.img node01:/var/lib/one/8/images/disk.0"…
user61175
  • 1
  • 1
0
votes
2 answers

Copying files (of a particular extension) remotely onto local computer preserving paths

I have bunch of files on the remote server. I'm not interested in most of them, except for .pl files. I want to get a copy of these on my local computer. What is the best way to do this (at the same try preserving its path)? I'm thinking somewhere…
denormalizer
  • 491
  • 2
  • 5
  • 15
0
votes
1 answer

scp report progress to cron output

I am using scp for backuping data. When I get the cron output(using crontab file for cron operations) with mail, I do not get any output. The scp operation is done succesfully. So, in the terminal I get for example: test.file …
user28362
  • 556
  • 3
  • 7
  • 21