Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
2answers
21 views

rsync except “last” file

I have a Linux server with log rotation for every 10MB. I would like to either scp or rsync all finished files to a remote storage. Is it possible to rsync except the newest file on an ongoing basis, ...
1
vote
0answers
9 views

transfer file from windows machine to hortonworks sandbox HDFS

I want to upload one file from a local windows machine to HDFS. I am using Hortonworks Sandbox for Hadoop. I have tried the following command to transfer file, but it shows connection refused. scp -...
0
votes
1answer
41 views

Unable to scp to another server

I am unable to scp to another machine in the same segment.Its getting stalled. I did a strace on the scp and i am seeing it as below. The other machines in this segment are fine except this server ...
1
vote
1answer
64 views

Permission denied when using scp, but able to ssh

I'm trying to copy a file from my local desktop to a remote server. Yes - the remote directory I want to copy to is set to chmod 777 Yes - the server is password protected, and I am sure I have the ...
2
votes
2answers
123 views

Achieving very fast (300+MB/sec) file transfer on Linux

I'm working with high end hardware, however I'm hitting cpu bottlenecks in all situations when attempting to move large amounts of data. Specifically, I'm moving large virtual machine image (VHD) ...
0
votes
0answers
26 views

ssh and scp are using different directions for ssh config files

So when I connect to the server via ssh it is reading my users ssh config. When I use scp to connect something to the server it is using the config under /etc/ssh/. Where I can set the path for ssh ...
0
votes
1answer
33 views

strange behaviour multihop ssh

I have three machines A, B, C. The aim is to be able to transfer files from A to C. I have ssh access from A to B, and B to C; B and C are on a local network. This can be achieved with the scp -o ...
0
votes
1answer
59 views

scp to pfsense not working

When ever I try to scp a file from pfsense I get back what appears to be the help for pfsense's scp: scp admin@fw:/tmp/test /tmp/ usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i ...
0
votes
0answers
110 views

SCP to ubuntu server - Transfer stalled after a bit

i need to trasfer files from my mac os to an ubuntu server on a VPN. I can ssh into it but when i try to use scp to send files (of every size), the transfer gets stalled. this is the stack trace of ...
0
votes
1answer
32 views

Copying files between servers

Here is the situation there are 2 servers: SRV1 (IP:1.2.3.4) & SRV2 (IP:9.8.7.6) you can connect to SRV1 from your local computerwith the private-key : test-user-private.pem with the username ...
0
votes
1answer
185 views

SSH scp: cannot stat file, that seems to exist

I have file on remote machine. I can list it: ssh matous@xxx ls -la the file is in the reponse: ... -rw-r--r-- 1 matous matous 796672 Oct 11 11:12 D1.db ... Now If I try to scp it to my local ...
-4
votes
3answers
59 views

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.
7
votes
1answer
1k views

SCP with password authentication only doesn't ask me for password

I'm trying to copy files from one server to another with scp. On both servers, I configured ssh port to 222. sshd_config for both servers is exactly the same (no RootLogin, PasswordAuthentication ...
1
vote
2answers
379 views

scp to google cloud-shell fails (ssh works)

I'm trying to use scp to copy a large file over to cloud shell. Using the suggested command from this SO answer gcloud alpha cloud-shell scp \ localhost:~/Sites/my-app/big_file cloudshell:~/...
0
votes
0answers
184 views

CircleCI deploy to AWS EC2

I have/want a workflow like so: Push branch to Bitbucket Pull request branch into Master in Bitbucket This triggers CircleCI to do a build CircleCI deploys the successful build to AWS EC2 instance I ...
6
votes
1answer
765 views

SCP Changing text file contents

I am trying to copy a file from machine A: apt policy openssh-client openssh-client: Installiert: 1:7.2p2-4ubuntu2.4 to machine B: apt-cache policy openssh-client openssh-client: ...
0
votes
1answer
319 views

SCP hangs before File Transfer begins

I am trying to move a file from a virtual machine (Ubuntu 18.04) on my local system to a remote server using a very basic scp command. This issue is present only on one particular server, others work ...
1
vote
2answers
98 views

Change the default SCP command flags in Linux

I am trying to move a file from a virtual machine (Ubuntu 18.04) on my local system to a remote server using a very basic scp command. This issue is present only on one particular server, others work ...
0
votes
2answers
393 views

known_host for SSH connection

I program an application in Java. This application make a connection between two PC (One Windows and One Linux). My application must make a connection and make few commands. Among commands, I want ...
3
votes
1answer
275 views

scp - What do the “-d” and “-t” options do?

I ran into this post that suggests adding the following to .ssh/authorized_keys in order to force an scp command : no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,command="scp -v -r -...
0
votes
0answers
24 views

What happens if a scp copy of a virtual disk img is interrupted

I have a vm guest on kvm turned on. Due to a human error a scp of a backup of the virtual disk from remote location is initiated to the same destination of the virtual disk of the live machine turned ...
0
votes
1answer
415 views

How do I get a server side umask to be honored in scp -r when creating directories?

I am trying to setup an scp receiver that allows select users, based on ssh keys, to scp files to a specific server as a user different than themselves. This is to satisfy access restrictions by ...
0
votes
0answers
208 views

Identity file not accessible

I need to scp a file from one ec2 instance to another (both Ubuntu). I am doing this using Python's paramiko. But it fails saying not able to find the .pem file. Python code - #!/usr/bin/env python ...
0
votes
0answers
319 views

Copy file from remote SSH to local without SSH client on remote

Suppose this setting: Full access on local machine The proxy server is accessible via SSH but only allows 2 specific commands: exit - closes the connection ssh remote - establishes an SSH connection ...
0
votes
1answer
603 views

“No space left on device” reported; trying to transfer files to EFS through EC2 instance via SCP

My setup is based on this article: https://parall.ax/blog/view/3212/how-to-run-scalable-wordpress-on-aws-amazon-web-services-tutorial I.e. Wordpress hosting via Elastic Beanstalk with a separate RDS ...
0
votes
2answers
73 views

Run a local script with configuration file remotely over ssh

I am trying to run a script that takes a configuration file over on a remote server. Currently I scp the file over to remote server then run the local script over on the server. script=localscript....
0
votes
1answer
21 views

How to allow “append only” (push) access from a remote server to a central server?

How to allow a remote server to push data onto a central server without having any other access. That is, how to allow the remote server to only append but not overwrite or read files on the central ...
-2
votes
1answer
855 views

SCP Doesn't work but SSH connection does. (Amazon EC2)

EDIT: The problem was that I was using a bad username (ec2-user) instead of "ubuntu". Sorry guys for wasting your time. :( Question: What happened: I missmoved (-R) the /home of the EC2 to /var/...
0
votes
0answers
241 views

How to leave connection to SFTP open, while other bash commands run

Problem I am using sshpass & scp to download files from a SFTP server, but the files I download are small and I end up making so many requests in a short period of time, that my server gets ...
0
votes
1answer
113 views

How could use an account “rsync” created on LDAP server to scp files between linux servers

I have a LDAP server which has an existing rsync account. I would like to use it to scp files among all of my servers. I added the public key of the rsync user to the /.ssh/authorized_keys file and ...
-1
votes
1answer
245 views

rsync copy contents of newest directory on remote server

I'm trying to copy the contents of the newest directory from a remote server to a local server. Problem is that the directory names are date based, so it can't be static value in the command. I'd like ...
0
votes
3answers
693 views

SCP on two remote hosts with nonstandard ports

Is there a way to use scp -3 to copy a file from one remote host to another, where both use non-standard SSH ports, without configuring each host involved in ~/.ssh/config? I've seen suggestions that ...
0
votes
3answers
4k views

SCP Unable to copy from server with Private Key

I'm trying to use SCP to copy a file from a remote VPS which uses private keys to a local machine. I'm getting different errors depending on what I try and I am not sure what the correct method ...
0
votes
2answers
117 views

copy ssh key from windows to synology disk

I'm trying to set up a git server on my synology following this tutorial. The step I'm stuck at is this: copy public rsa key from local computer to gituser account on server I use following command: ...
0
votes
1answer
74 views

Transfer 300+ GB at maximum speed on two headless servers? [closed]

I am currently trying to transfer over 300GB from my Mac Pro server to my Synology NAS. I only have my Windows PC I can work from, but I can SSH into both devices. They are both connected to gigabit ...
1
vote
4answers
799 views

ssh forced command: sftp/scp only

Goal: sftp/scp only access, without the need for linux users. I want to provide 10 sftp/scp directories to 10 people. Let's call this "virtual account" I don't want to create linux users for each ...
2
votes
2answers
1k views

Up-to-date alternatives of rssh or scponly [closed]

I need: An scp and sftp server With chroot-ed environment With non-login (ssh not allowed for scp/sftp users) Options and related issues I found: scponly No updates since more than 6 years Does ...
0
votes
2answers
73 views

how to avoid file's to be copy by scp from other machine

how to avoid file/s to be copied by scp from other machine example my machine - example.org: from some other OS machine: scp -rp example.org:/var/example.txt .
1
vote
1answer
852 views

Using google drive to dynamically expand VPS storage

I was wondering if anyone ever tried using the free online storage services such as Mega, Google Drive or Dropbox to dynamically increase the "small" storage provided with cheap VPS services. What I ...
0
votes
1answer
219 views

Tomcat editing a users authorized_keys file

I have a java application running on tomcat8. This application has a method for users to upload a public ssh key, which is then added to a local users authorized_keys (limited to scp on a single ...
1
vote
1answer
7k views

Download public & private keys from Google Cloud Instance

New to the cloud so pardon this question as I'm certain it's relatively simple! I've setup my Google Cloud Instance and I'm now trying to connect to it using FileZilla. I have a good understanding of ...
1
vote
1answer
34 views

Append all the files from different VM's to a particular one?

I want to get particular file from different Vm's and get it appended to a single file.I tried it like this scp admin@data-1:/var/log/elasticsearch/cluster.log /home/itadmin/logstash/logstash-2.4.1/...
0
votes
2answers
203 views

Is it possible to scp asynchronously?

I am in the process of migrating my data to a new server (from one Linux box to another), and I left my laptop running overnight whilst I scp'd barely half of my data between the two. It would be a ...
0
votes
1answer
1k views

User can access to only one directory with scp

I want to create a user for my Ubuntu server. I will use this user to copy some files from server to my local computer. So permissions should be really limited. This user can only reach to /some/path ...
-1
votes
2answers
824 views

How to get past kerberos blocker on scp-ing files?

I have a cluster with one master and one slave. From the master node, I'm able to ssh into the slave just by doing: ssh -vvv <user>@<ip>. Now, when I scp from master to slave it does ...
0
votes
5answers
722 views

File transfer speed in LAN network

I transfer from 1 linux host to another linux host around 15TB data. The sender host have those network cards: [44.206701] igb: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX ...
-2
votes
2answers
17k views

how to copy file from local to remote via ssh

this is how to shh to server ssh -p 2222 thatilike@192.185.21.105 I want to copy file logo.png to public_html folder on server This is what I tried scp ./logo.png -p 2222 thatilike@192.185.21.105:/...
3
votes
2answers
2k views

Replace scp with sftp

We have a few synchronization scripts for a client sending files, using scp, to a remote server administered by one of their providers. Recently they closed it, and the new one they provided doesn't ...
-3
votes
1answer
163 views

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

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 ...
1
vote
0answers
61 views

Is it possible to append to a file, by piping between servers/scp/etc.? [duplicate]

Short version How can I pipe text from a local machine/server and append it (not overwrite) to a file in a remote machine/server? Long version I wished to append my ~/.ssh/rsa_pub (public key) from ...