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
0answers
7 views

Backup files from server (static IP) to home server (Dynamic IP) [migrated]

I am already familiar and use rsync, scp transfers, tar, 7z etc however none of which solve a backup I intend to do rather regularly. I have a remote server with 80% used space on 100GB SSD that I ...
0
votes
1answer
28 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
25 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
68 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
29 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
60 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
50 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
935 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
224 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
113 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
715 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
146 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
91 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
281 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 ...
2
votes
1answer
187 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
312 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
77 views

Excel VBA SCP fails to transfer with files different from txt

I'm using excel vba to transfer a remote file locally. I found that if the file is txt than all works well but if the file type is different from txt than the command shell opened by excel vba return ...
0
votes
0answers
188 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
298 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
542 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
70 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
759 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
223 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
97 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
226 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
599 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
2k 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
107 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
70 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
707 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
70 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
789 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
196 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
173 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
927 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
741 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
633 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
16k 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
153 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
36 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 ...
0
votes
1answer
345 views

Cannot upload files with scp, but with pscp it works

I can login to a remote server with a login, which has a private key. This private key is without any password. When using PuTTy on Windows, I can login to that remote server without problems given ...
0
votes
0answers
86 views

ssh is working (very fast very stable) but scp and rsync are neither working

I am sending some files from Server A to Server B. And I created a key file so that I can use ssh from A to B very easy. And then I used scp and rsync to send the files. It was working quite well ...
0
votes
0answers
491 views

scp blocked at `debug1: Sending command: scp -v -f scp-test`

I'm currently experiencing a weird behavior of scp. When trying to scp a file from a server the command block at: 42sh$ scp -vvv user1@mydomain:scp-test . [stuff] debug1: Sending command: scp -v -f ...
0
votes
1answer
33 views

Check size and names via scp

I used this cmd scp -r Demo/ user@host:/Demo/ How can I set scp[or fstp] to check size and name of all files and folder? and just transfers new ones.