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
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
13 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
60 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
9 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
63 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
42 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
50 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
15 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
24 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
36 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
62 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
35 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
51 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
46 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
108 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
139 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
112 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
68 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
56 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
368 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
75 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
114 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
69 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
370 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
102 views

scp 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'...
0
votes
0answers
187 views

Crontab, scp and passphrase

Just a doubt. My server does backup of MySQL in a zip file. I have a raspberry pi that downloads the zip file of the backup once a week. It does in a scp command in a crontab, it always worked, but ...
1
vote
1answer
411 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
0answers
331 views

Not able to copy folder from local to EC2 instance

I am getting difficulty in copying folder from my local machine to EC2 instance folder using putty. I am using below command scp -i <pem> -r ./docproc ec2-user@<ip>:/opt/ in above ...
0
votes
1answer
2k 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
340 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
33 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
5k 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
289 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
305 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
267 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
109 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
445 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
1k 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
153 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 ...
1
vote
0answers
776 views

ssh works, scp hangs forever

I would like to copy files from my laptop to another machine - a headless TX2 -- over my home wifi network. Both my laptop and the TX2 are running Ubuntu 16.04 and both have the latest version of ...
1
vote
0answers
394 views

fix scp autocomplete in 18.04

in 16.04 there is no /usr/share/bash-completion/completions/scp and tab will work with scp and local paths in 18.04 there is a /usr/share/bash-completion/completions/scp and tab will fail with scp ...
1
vote
0answers
2k views

How to use sshpass to sftp upload file?

I have following : $ cat upload.sh sshpass -f ~/path_to_password/pass.txt sftp user@remote.location.net:/pools/path/ << EOF put backup.tar EOF When i execute the upload.sh it shows nothing (...