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

scp returns Exit status 1

In a LAN I have two PC, both running Ubuntu 13.04. There is a directory which is in a shared folder (samba, guest access) in the first PC. I have tried to copy this directory to the second PC through nautilus (the file browser in which I can see the…
mthpvg
  • 101
  • 1
  • 4
0
votes
3 answers

SCP Asking for Password with RSA Key

I've followed a few tutorials on setting up RSA Public Key Authentication, but I cannot seem to get it to work. I can SSH into the remote machine without a password, but when I try and scp files, I still get prompted for a password even though it…
w3rthl3ss
  • 135
  • 2
  • 7
0
votes
2 answers

FTP giving less uploading speed compare to SCP

If I upload file using SCP then I get uploading speed up to 1.5 MB/s scp filename root@SERVER_IP:/path/to/store/ and If I use FTP to upload same file on same server then I get uploading speed up to 220 kB/s ncftpput -R -v -u FTP_USER -p FTP_PWD…
Himanshu Matta
  • 77
  • 1
  • 2
  • 8
0
votes
1 answer

"Unable to get term attr: Invalid argument" while trying to SCP

I have to set up two LDAP servers for replication. My problem is that when i want to copy the master-slapd's database files with scp command i get the next message after typing in the account's password on the slave server: "Unable to get term attr:…
0
votes
1 answer

passwordless scp without keys

I am looking for some option that will allow me to accept files from any server using SCP command. I am aware of the process of creating password-less logins. But what I am looking for is an option on central server that can be changed to accept…
shantanuo
  • 3,579
  • 8
  • 49
  • 66
0
votes
1 answer

can not connect through SCP, but SSH connections works

i am trying to connect to my server to transfer file using scp: $ scp -v -r -P @:~/dir/ dir/ this is the output: OpenSSH_5.2p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /Users/joe/.ssh/config debug1: Reading…
Joe Cabezas
  • 115
  • 1
  • 1
  • 4
0
votes
1 answer

Scp only a specific folder

Some command line syntax I don't know how to set, am a noob sometimes, sorry is that's obvious Let's says I have the following path for all my assets : /var/www/site/system/images/{image_id}/{format}/{file}.{extension} Inside the {image_id} folder,…
Ben
  • 113
  • 1
  • 9
0
votes
1 answer

scp not downloading file in the proper location

So I'm SSH-ing into a server and trying to download a file to my local machine using scp: scp user@remotehost:/path/to/file/filename . But the file ends up downloading in the home directory on the server! What am I doing wrong?
Abid A
  • 103
  • 2
0
votes
1 answer

juniper VPN disconnect when I use SCP

I am using Juniper in my company. I have a 64 bit Ubuntu 12.04 laptop. I can ssh to remote servers, and do everything well. My problem is : whenever I scp something to the remote server, Juniper disconnect me from the VPN so that I am disconnected…
Summer Nguyen
  • 214
  • 3
  • 10
0
votes
4 answers

How can I send single file to multiple remote sites at the same time?

can scp be used to send single file to multiple remote servers at the same time? If so what's that? if not, what's the alternative?
N. F.
  • 101
  • 3
0
votes
2 answers

How to make SCP on Linux output "success" to stdout instead of stderr?

We have a cron job that sends stuff to another company using SCP. The command look like this: 10 0 * * * ssh USER@LOCAL-SERVER 'scp -q ~/some/dir/* REMOTE_SERVER:/other/dir/' >> ~/log/some.log This was setup by someone else. Now my problem is that…
monster
  • 618
  • 3
  • 10
  • 17
0
votes
4 answers

Cloning entire partition of a server over a network

Using the linux command 'dd' you can clone a partition to a .img file. I have used this method for duplicating flash drives for use with many servers in the past. Then if one goes down, it is very easy to restore it if needed. Does anyone know if a…
Jon
  • 111
  • 1
  • 2
0
votes
1 answer

Solaris 10 very slow ssh file transfers

Trying to copy a few TBs betweek Solaris 10 u9 systems A single scp only seems to be able to transfer around 120MB/min, over a 1GB network. If I run multiple scp copies, each one will do 120MB/min, so it is not the network as far as I can see. Any…
0
votes
3 answers

rsync or scp only if there's a difference

How do i figure out if there's a difference between an backupfile and the current used one. The Filename of the Backup is named like: filename_date.conf and the currend used one is name like: filename.conf I only need to know if the content is the…
Harrys Kavan
  • 402
  • 1
  • 5
  • 19
0
votes
1 answer

Does scp block server functions?

I have a node.js application server. It serves my api and dynamic web pages. The database is not on the server. I want to continuously scp files into the server. Would that cause slow downs or block web requests or would it only have a minor…
Harry
  • 101
  • 2