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

How to force an ssh tunnel (or a ProxyCommand) to use an existing master connection?

There are three machines A, B and C running linux. I have root access to machines A and B but not to C. A is my local machine and I want to connect to C. C is only reachable through ssh over VPN. I can not connect directly from A to C because VPN…
Manuel
  • 61
  • 1
  • 1
  • 5
0
votes
1 answer

rcp files from windows 2008 server to linux box? (Running rcp on linux)

I am trying to run rcp command on rhel6 server to copy over files from a windows 2008 server but see this error message. /usr/bin/rcp administrator@10.225.185.112:"C:\nfsqa-rhel62-vm01.root.keytab" /etc/ rshd: unable to create process: The system…
0
votes
1 answer

Loaded files of the website with scp, but css files and images are not loaded

I have copied all the files related to the website to the server using scp, but the only css file that I loaded inside css folder on the server is not loaded by the html files. I have checked the path to the stylesheet file in the html files, but…
user236846
0
votes
1 answer

Are ping results dropping when SCP'ing normal?

Whilst scp'ing a file to a server, the ping responses of the server drops to be 6 times slow at ~640ms. Is this... normal? I'm using nginx, is this an indicator that it needs fine tuning?
user3791372
  • 105
  • 4
0
votes
2 answers

how to enable scp only on public interface and ssh only in internal interface

Server A has a public ip and a private ip, each on another vlan and thus on another virtual interface. How can I enable scp only on the public ip and ssh only on the private IP, for all users. Kind regards Hannes De Bondt
Hannes
  • 135
  • 1
  • 3
  • 17
0
votes
1 answer

SCP Stalled : Server to Oracle VM

I have a oracle VM as a test environment, when I try to scp some files from my production server it always get stalled. Sometimes with very small file <5kb scp runs successfully. Please help. PS: Both machines run on Centos 6.4 Logs: [root@mygw…
0
votes
1 answer

scp to remote server permission denied

I try to copy files to a remote server (OSXServer) using scp. I have 2 user accounts on that server with what I thought the exact same settings. Now I tried the copying files into the respective home folder (every user has one home folder) on the…
MaxJ
  • 101
  • 4
0
votes
1 answer

Cannot remote copy file via tunnel

I'm trying to get a file from server1 (localhost) with scp. I am accessing server1 from the gateway server2 (that is the only one accessible from the internet). I am able to open a ssh connection by using: ssh -p 2222 -L 8080:localhost:443…
MaPi
  • 213
  • 1
  • 2
  • 7
0
votes
1 answer

MaxStartups and MaxSessions configurations parameter for ssh connections?

I am copying the files from machineB and machineC into machineA as I am running my below shell script on machineA. If the files is not there in machineB then it should be there in machineC for sure so I will try copying the files from machineB…
arsenal
  • 217
  • 1
  • 4
  • 11
0
votes
1 answer

Change OpenVPN client, can I use the same server configurations using scp?

I want to change my old FC 4 client to new Fedora 19 client, but I need to use all the same files on openvpn and IP address. Can I use SCP command for copy all this configurations?
Vitor Mazuco
  • 103
  • 3
0
votes
1 answer

Can scp setup file mode of copied files?

The man page of scp does not mention any mode option. Is there a way (or other program) that could setup the mode for transferred files?
Skarab
  • 327
  • 3
  • 11
0
votes
5 answers

Simple and secure alternatives to FTP

I have a small Win2003 server that I need to allow remote file uploads. It is behind a router with port forwarding. Is there something simpler than setting up FTP on IIS and making the necessary changes to both IIS and the router to allow the…
0
votes
2 answers

SCP version of - ssh -A -t -l root 192.16.4.9 ssh -A -t node-17

I'm on a vpn. I ssh to a machine through another machine like so ssh -A -t -l bob 192.16.4.9 ssh -A -t node-17 I now need to scp a file from node-17:/tmp/something. How can I do the above in one step? There is no space left on the other nodes to…
user610209
  • 103
  • 2
0
votes
1 answer

How to get password prompt from scp when launched remotely via ssh

When I ssh to a remote system and execute scp, I do not get a password prompt: # ssh 192.168.1.32 "scp joe\@192.168.1.31:/etc/hosts /tmp" Permission denied, please try again. Permission denied, please try again. Permission denied…
Zek
  • 568
  • 3
  • 10
  • 24
0
votes
1 answer

PSCP Command Errror

Can anybody explain what i am doing wrong here. I am trying to copy an entire directory up to a remote server. "c:\Program Files (x86)\PuTTY\pscp.exe" -l mleyland -pw Password5 -p mleyland@9X.XX:/home/mleyland/hvn01/ D:\TEMP_BACKUP\ZIP*.* I get the…
Matt Leyland
  • 115
  • 5