Questions tagged [scp]

SCP stands for Secure Copy Protocol and is related to questions regarding secure file transfer.

Filter by
Sorted by
Tagged with
0
votes
1answer
22 views

transfering data from one cluster to another

I would like to transfer my data from one cluster to another. for that, I know that I can write on the command line: scp -r Folder1 myname@XXX.YY.WW.ZZ:/work/myname However, I would like to submit a ...
1
vote
1answer
147 views

SSH local STDOUT to file on remote server

I need to copy output from local command to remote server f.e: user@localhost$ ls | scp - user@remotehost:/user/remotefile got an error: -: No such file or directory sorry, but a cannot identify ...
1
vote
1answer
45 views

SCP to multiple servers using key pair authentication

I'm using a key pair for authentication for SSH on all my servers. We disable password login over SSH for security reasons on all our Linux servers. On each server I have a folder at the root level ...
19
votes
3answers
51k views

Copy files from a server via ssh to dropbox.

I have a user in a linux server (Debian) with ssh access, and have some files on it. I need to copy the files to my Dropbox. but I donot want to copy to my Dropbox in my PC and Laptop, I want to first ...
0
votes
0answers
18 views

While already ssh'd into a remote compute node, how to transfer files to the remote computer from my local computer?

I want to transfer files and scripts from my local computer (ie. my laptop) to a remote computer (a compute node of an organization). I have to ssh three times to get to that node. Once there, how can ...
0
votes
1answer
75 views

How to transfer / copy files from docker container to local directory in ubuntu 18.04?

I am using ubuntu 18.04 with virtual machine for running my program in remote GPU server. I ran my program in docker and I want to transfer plot files in docker container to local file directory in my ...
3
votes
1answer
527 views

scp \033H message

Having a weird scp issue: $ scp user@server.org:~/test.txt ./ Password: \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H ...
0
votes
0answers
18 views

How can I move a file from my computer to a remote machine, bypassing through a second computer?

I need to copy a program (which I have modified on my computer) to a Unix. I can't do it straight away because I need first to pass from another machine. I have tried with: scp /path/of/the/...
0
votes
1answer
25 views

Not able to scp file to AWS EC2 instance - the same pem key works fine for my colleague

I am trying to scp copy a jar file to AWS EC2 instance via Jenkins' job. The copy process fails with message "Host key verification failed" The same command works fine for my colleague who uses the ...
0
votes
2answers
71 views

How to compress and download directory from remote to local?

I have a directory on my Ubuntu server that has many subdirectories and files. I want to download entire folder, so I used this command: scp -r myuser@mywebsite.com:/path/to/target_directory /path/to/...
0
votes
1answer
82 views

Duplicity (Duply) over SCP very slow. What to look for?

I'm struggling to setup a simple backup routine to go from my local fileserver over to my friend's server (both Ubuntu 18.04). I finally got it all 'working', but when I do a test of a 750Mb fileset, ...
0
votes
0answers
11 views

scp zip transfer

I have some information in a volume attached to an AMAZON AWS AMI. The AMI was created to be published and used by anybody. The creators set up a root user, from which you can access to all necessary ...
0
votes
2answers
89 views

How can I check condition statement for ssh scp over the server

myscp=$(sshpass -p testserver scp -rP 8888 root@localhost:/test/server/ ~/local/) How can I add conditional statement to this line? If its pipe broken scp will stop/break otherwise if it's open for ...
0
votes
1answer
3k views

scp creates undesired file permissions

I'm trying to copy files from a remote linux system (on which I am not the super user) to my own local system, using the scp command on Ubuntu 16.04 LTS. scp remote_username@remote-host:/path-to-...
0
votes
0answers
47 views

ssh, scp commands not working anymore. Giving very strange error message

I was using openssh client to connect to ssh servers. I never had a problem with ssh. However, for a few days, i got the following error : No user exists for uid 1000. When I try to run the command ...
1
vote
1answer
16 views

Error copying folder using scp

I want to copy a folder from remote server. When I use this command to copy just a single file> scp -P 11096 user@server:FullPathToFile WhereToSave it works well, but when I use -r to copy the ...
0
votes
0answers
28 views

problem with a remote server scp

I have admin access to a remote computer with Debian linux. At first everything were working well. I tried to define some variables globally so that all users can run a specific code. Now I can't scp ...
1
vote
1answer
2k views

how to use find in scp command

I would like to use scp command fo transfer some files from remote server to local machine. The problem I have is to find the files and then direct them to scp command. I don't want to generate an ssh-...
50
votes
4answers
220k views

Copy files from remote Ubuntu to local Mac

I've searched all around and can't seem to find this... I'm trying to copy a private key to my local machine which is a Mac. When I fire up terminal on my mac, I get Jamies-iMac:~ jamie$ So after ...
1
vote
0answers
37 views

How to create a user that can only use scp? [duplicate]

I want to create a user (named as guest) in my server where I can share my files with others, I only give the guest permission to use scp to get the file with the password I provide, he can't log in ...
0
votes
1answer
74 views

`scp -r` wont copy the directory I've selected in winows

I'm attempting to copy my desktop folder excelsite using scp -r. The folder is a django website. The command ive used is scp -r excelsite ***@***.***.*** (and yes, I was cd'd into the desktop). When ...
0
votes
0answers
40 views

Why should avoid use SCP with sudo

Can Please anyone explains to me why should avoid using sudo when used scp. I'll send a File from my Host to another Host, forward a time I to ready that best use scp without sudo, then later avoid ...
1
vote
1answer
72 views

id_dsa authentication works in one direction but not the other

I have two laptops running 18.04. Both have identical .ssh folders. I can copy from the new one to the old one using scp with id_dsa authentication, but in the other direction this mode of ...
-1
votes
1answer
60 views

Scp any 100 files and its corresponding xml files to a remote pc?

I have around 2000 images in a folder.I need to scp 100 or 'n' no of files from the directory to a remote pc folder.I have the files as follows. 1. A.jpg 2.A.xml 3.B.jpg 4.B.xml..... etc How can i ...
0
votes
1answer
129 views

How to copy a file from my Windows laptop to an Ubuntu server while using PuTTY? [closed]

I have a remote server and I connect it via PuTTY software. I've downloaded a file to my Downloads folder in my Windows OS laptop. Now, I have to transfer this file to that remote server, using SCP ...
0
votes
0answers
151 views

SCP No such file or directory

I'm trying to copy backup files to my local system but i keep get the error No such file or directory. I'm logged on to the remote system using scp push to local system. scp -r /home/ark/server/...
0
votes
1answer
45 views

Ping works, wireless connected, no stable internet

I have an old (2014) laptop that I've converted into a Linux desktop at home, mostly for storing extra stuff over scp. Today, the network of this machine slowed to a crawl. All packs installation ...
1
vote
1answer
132 views

SCP set permissions or timestamps even for user in the same group

I am not the owner but in the same group as a file. The file has -rw-rw-r-- permissions, and: beet ~> umask -S u=rwx,g=rwx,o=rx Over WinSCP, I am able to update the file but it produces this ...
0
votes
0answers
73 views

Permission denied (publickey) while using scp [duplicate]

I'm trying to copy file from remote to local (being logged to local) using scp but I get an error 'Permission denied (publickey)'. I have my public key copied in the remote authorized_keys file and ...
0
votes
1answer
58 views

copying files remotely over ssh does not work

I tried to copy recursively a folder from my linux mashine to a remote one, but it did not work. I tried with both scp and rsync, but in both cases no files were copied, although I recieved a ...
0
votes
0answers
446 views

SCP not working when sending files from remote to local

I'm trying to send some files from a remote server to my local computer. Here's the command I'm using on the remote server that doesn't work: scp name@123.123.123.123:~/path/to/file.name C:\Users\...
1
vote
0answers
94 views

Not able to connect to linux server using winscp because of login script

I am not able to connect to my remote hosting server using Winscp. I have set the file protocol as SFTP and shell as bin/bash. I am getting the following error after entering the username and password:...
1
vote
0answers
134 views

scp not running .bashrc or .bash_profile before copying file

My .bash_profile has the line export path_shortcut=/some/file/path (not wrapped in any conditionals), but calling scp file.txt target_computer:$path_shortcut still copies file.txt to the target ...
0
votes
0answers
75 views

SCP from server1 to server2 using server0 over ssh

I want to send a file from server1 to server2 by accessing server1 from server0 on SSH. I have added all servers' pub_keys in authorized_files of all 3 servers. I can connect to any server from any ...
1
vote
1answer
173 views

Error when attempting to copy files w/ scp

I'm connecting to an Ubuntu instance, running some Apache/JMeter tests, and attempting to use scp to grab the log files from said tests. I connect w/ the following command: ssh my-host.amazonaws.com ...
1
vote
4answers
9k views

scp permission denied after WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

I was using scp and ssh suddenly some warning about SOMETHING NAST! man-in-the-middle attack From that moment when that warning appeared till now, I can copy files via sftp but it is impossible to ...
0
votes
0answers
464 views

Slow SFTP transfer speeds on local network

I'm getting really slow transfer speeds over SFTP of around 4MB/s on a laptop connected to a wired 1gbps LAN, whereas a desktop connected to the same network achieves ~80MB/s. iperf3 reports: [ ID] ...
0
votes
2answers
41 views

Using scp betweeen two machines with same PEM key

I'm trying to use scp to copy a directory between machines. I'm logged into the destination box 10.10.10.98 as ubuntu. (IPs are not real). I want to copy the theme directory my-theme from another box, ...
28
votes
2answers
40k views

How to make scp to use ipv6 addresses?

When I try to use scp over IPv6 addresses I get this: scp -6 osis@::1:/home/osis/test.file ./test.file ssh: Could not resolve hostname : Name or service not known With scp all I ever get is ssh: ...
-1
votes
1answer
29 views

Can commands be transferred between machines? [closed]

I have an airgapped system with 2 linux machines, one running CentOS and one with a custom OS. The custom one does not have gcc, I can connect them with an ethernet cable and tried to scp the gcc file ...
0
votes
1answer
67 views

SCP transferred file does not appear on local machine

I'm trying to transfer files from a remote Ubuntu 16.04 server. To transfer the file, I execute this command: sudo scp -P 443 asgeir@my_ip:/home/asgeir/nodejs/first_test_app/server.js \Users\Asgeir\...
0
votes
1answer
44 views

Transfer folder from localhost to server

I'm trying to upload a folder on my server with this command: sudo scp -r the_map username@ec2.eu-west-1.compute.amazonaws.com After running command on terminal on localhost. It completes, but I can'...
15
votes
4answers
37k views

SCP with two different ports

How can I use scp command to copy files between two remote servers from my local PC ? remote server 1 : IP=67.12.21.133 & port=6774 remote server 2 : IP=67.129.242.40 & port=6774 scp -rp -...
1
vote
1answer
482 views

scp or rsync multiple files from source server to another servers

Since my nfs is a win type of server, it can't contain :. I want to copy multiple files from source server to the nfs directory on another server and rename them at the same time. The script looks ...
1
vote
3answers
11k views

Connection times out while using scp

I am trying to download a file from a computer that I have connected with using ssh. I type into the terminal scp /path/to/file <name of my computer>@192.168.0.15:home/desktop This file isn't ...
0
votes
1answer
3k views

'Permission denied' problem with 'scp' while building blockchain

Recently I built blockchain system about Hyperledger. I met error 'Permission denied' while broadcasting MSPservice to other node. Please refer below.
0
votes
0answers
351 views

Using scp -i to copy

I have two AWS EC" Ubuntu 16.04 instances. One is a Chef workstation and the other is a Chef Server. I want to copy the RSA private key file, chefadmin.pem, from the Chef server to the workstation ...
0
votes
1answer
38 views

SCP copying issue

I want to copy the files close to 500 GB from server to my local machine but I have very poor connectivity so the connection breaks in between. Every time when I run scp again, it is copying and ...
0
votes
1answer
1k views

scp error: yntax error near unexpected token `newline'

I'm using scp to copy a file to my local machine. The file is an html file and I think the error is due to the html markup, as the error is : syntax error near unexpected token `newline' /home/...
7
votes
1answer
4k views

Why is rsync 2x faster than sftp?

I'm transferring huge files, over a network to a destination server, totaling ~ 67 GB with individual zip files of size ~ 7GB. I tried copying to the destination using both sftp and rsync. rsync ...