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
-2
votes
1 answer

I changed the permissions on a directory, now I can't SCP

I have a EC2 Instance. My server is set up like this: var/www/html / emmetarries, emmetphotoand emmetphotodev. I changed the permissions for emmetphoto ($sudo chmod 777 /var/www/html/emmetphoto). I now can't upload files with SCP. I could before.…
Emmet Arries
  • 117
  • 1
  • 8
-2
votes
1 answer

Does SCP will clash with FTP?

Recently I got some VPS and found a problem. The VPS which can use SCP to transport can't transport with FTP. And the VPS which can use FTP to transport can't transport with SCP. So, is there are some clash between SCP and FTP? And, can SFTP replace…
zhilian
  • 3
  • 2
-2
votes
1 answer

SSH/SCP works but not wget

There are two machines: Build: Using jenkins to get code and build war files Deploy: used for deploying the war files to a tomcat server for testing. I am trying to do automatic updates for the war files from the Build machine to the deploy machine.…
Josafoot
  • 113
  • 6
-2
votes
1 answer

Overwriting /etc/ Files between two servers

I'm the process of migrating an NIS server from one machine running Ubuntu 9.10 to a new one running Ubuntu 14.04.4 Server, and following these instructions: How do I replace an NIS master server? The plan is to run the NIS makefile on the new…
-2
votes
1 answer

How to scp file to remote servers' root directory and run sudo commands?

NOTE: The servers does not share the same password but I will setup no-password login at first. Here's the use case, I need to do these below step by step in my deploy.sh: scp files to remote servers' /opt/bin directory, which requires root…
harryz
  • 289
  • 2
  • 3
  • 10
-2
votes
1 answer

~/.ssh/known_hosts file - how to set it up?

I'm trying to SCP a file from my server to another server. The command I'm using is: scp -i private.ppk -P 22 foo.txt someuser@domain.com:/home/someuser/foo.txt When I run this via the command line, I get prompted: The authenticity of host…
snoopy76
  • 103
  • 1
  • 3
-2
votes
1 answer

Is openssh-server safe on a local network?

Quick description of my situation: 2 home use computers, both connected to a standard AT&T router. Both computers get a 192.168.1.x IP address from the router. I have no idea what the IP of the router is to the outside world, or how I would know…
cdahms
  • 175
  • 1
  • 7
-2
votes
1 answer

How to move a website to a new server?

I am going to move my website to a new server. I need to copy the /var/www directory to the new server. Should I use SCP or RSYNC ?
Mathieu
  • 45
  • 2
  • 8
-3
votes
1 answer

Secure Copy of Directories and / or Files To a Linux Server

When copying files or directories to a Linux server, what is the difference between 'scp -r' and 'scp -R'?
dac2002
  • 13
  • 2
-3
votes
2 answers

Create a public key to allow scp server to server

My scenario is this, I am trying to SCP from server1 to server2 and and I need to create a public_key on server1 to allow server2 access to it. How do I do this?
sico87
  • 97
  • 1
-4
votes
3 answers

I need to run SCP, SFTP and SSH in three different ports

I need to run SCP, SFTP, and SSH in the same host but via three different ports; is there a way where we can configure SSHD in that manner? Thanks in advance.
yello_flash
  • 1
  • 1
  • 3
-4
votes
2 answers

Moving files from one linux server to another using scp

I want to move some files from one server to another . I want the public_html directory from server 1 to be transferred to server 2 . Can anyone give me the syntax to do so ? rsync keeps crashing my server after some hours . I'm using centos 7 .
movi ran
  • 1
  • 2
  • 2
  • 3
1 2 3
28
29