Questions tagged [scp]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
33 views

Need help using the SCP command line

I have a server with Ubuntu 18.04 I want to transfer my website to a new server. Here are my questions : How to copy files with png extension ? I tried the following command line but it doesn't work : ...
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
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 ...
0
votes
0answers
19 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
76 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 ...
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
73 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
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
94 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
0answers
48 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 ...
0
votes
1answer
87 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, ...
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
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
75 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
73 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
130 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/...
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
462 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
95 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
135 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 ...
0
votes
0answers
467 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, ...
1
vote
1answer
154 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
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'...
1
vote
1answer
491 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 ...
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
352 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/...
1
vote
1answer
6k views

How to use scp to transfer files between ubuntu and windows10?

I'm using the command scp -P${myport} ${username}@${ip} to tranfer the files, but I don't know how to write the filepath in windows. For example, if the filepath in windows isC:/Download, how to write ...
1
vote
1answer
326 views

scp directory from remote ubuntu desktop to virtual machine

I want to transfer my project to a virtual machine. I have mac book, so I logged in to my Ubuntu 18.04 remote desktop. Still, I can't transfer my project directory to the virtual machine. I have moved ...
0
votes
1answer
342 views

how to recursively transfer folders between two remote servers on a local machine [duplicate]

I want to use a program like rsync or scp to recursively transfer folders from one remote server to another on the shell. I connect from one server usually via sftp and the other via ftp, but I ...
1
vote
1answer
291 views

is it possible to scp any file type in all subdirectories starting from root?

I am trying to copy any files with the extension .pf to another box. is it possible to do this and keep the file path structure too? I tried scp -rp /*.pf user@10.10.10.10:CP but it fails with *....
6
votes
3answers
2k views

How can I avoid having to enter a password for an scp command by hard-coding the password into my script?

I've created a bash script that sometimes need me to enter some information (other machine password / username) when I run it. Is there a way to prevent this by entering (hard-coding) this ...
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 ...
0
votes
1answer
119 views

Dump a database and scp it to a remote server with date hour suffix

I would like to dump a database and scp it to a remote server and suffix the file with date_hour. Here is what I have done (of course it doesn't work) : mysqldump -u root -p myDb > myDb.sql &&...
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-...
0
votes
2answers
483 views

How to use scp -i without prompting the key

I use the following line in a gitlab pipeline : scp -i "$SSH_PRIVATE_KEY" -r dist user@1.1.1.1:/home/user/preprod However when this line is executed the private key is prompted in the pipeline ...
0
votes
2answers
2k views

scp output from remote grep back to my machine in a script

I am trying to write a script that would use a ssh session to do a grep on a huge logfile, cat the ouput to a temp file and scp the temp file back to the client machine: ssh user@server grep pattern ...
0
votes
1answer
276 views

Error while running Bash Script within landscape web UI

On landscape quickstart I running a simple script from the UI. My script look like that: #!/bin/bash cp $LANDSCAPE_ATTACHMENTS /home/afadmin/Downloads/ I got the following error: cp: omitting ...