Questions tagged [scp]

SCP (Secure Copy) is a secure protocol based on SSH used for transferring files between computers.

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

Unable to copy SSH key from Win10 to Ubuntu server using PSCP

I'm trying to copy my .pub key to my server that is on the same router. I keep getting a "No such file or directory" error and I just can't get why as the file is clearly there. PS C:\Users\black> ...
0
votes
0answers
38 views

How to copy file from SecureCRT Linux server to Windows desktop using command or shell script?

Please don't suggest tools like WinSCP, PuTTY, etc., as I have already tried the following scp commands on the Linux server, but am still not getting the output: scp /file/to/send username@remote:/...
0
votes
1answer
33 views

how to scp from a PC in a local network to my PC inside my local network?

CONTEXT I have 2 PCs, PC1 and PC2, both are in the same local network, A, and both use Unix PC2 does stuff, and when it finishes, it transfers data to PC1 automatically via scp since PC1 & PC2 ...
0
votes
0answers
44 views

scp: ambiguous target error, with quotes, escape characters in Windows 10

Getting scp: ambiguous target while transferring file to white spaced folder name in Windows 10 (both pc). I already tried solutions mentioned in here and also tried another solution on different ...
0
votes
0answers
26 views

Read file content from server to batch variable

My client I use is a Windows 10 Pro. My server is an Ubuntu server. On my Ubuntu server, there is a file called password.txt. Right now, in my batch file I am executing, I download this file via scp ...
0
votes
1answer
16 views

Transferring django app to server through scp?

Firstly I want to note that I am both beginner in deploying Django app and Linux overall. I saw that it's possible to transfer Django app to the server through SCP in one of Corey Schafer's videos ...
0
votes
0answers
44 views

Windows 10 scp returns “fork: No such file or directory”

Want to use scp to copy a file to a remote server using: scp C:\Users\me\pathto\file.zip user@remotelinux.server:./directory Windows 10 does not recognize the remote location and returns fork: No ...
8
votes
2answers
856 views

Scp the current dir `.` to another name

This is an edge use case, but I can't find a solution. I want to copy the current directory ., without necessarily knowing or caring for its name, to a new directory. Using scp. Bash does not seem ...
0
votes
0answers
19 views

SCP fails on specific system

I'm trying to SCP some files (both ways) to my raspberrypi. However, on ONLY my Ubuntu 18.04 desktop, I am unable to SCP into it. Both ways, I can SSH into each other, both via password and ...
0
votes
1answer
22 views

How to get files from a VM to host machine

My host machine is Ubuntu. I am running a debian VM on virtualbox. I want to get files from the VM to the host machine. I tried to use scp by doing the command from the VM: scp filename ...
0
votes
1answer
106 views

How to setup key authentication for unix to windows ssh?

I would like to setup a passwordless SSH connection from FreeBSD (not exactly unix system, but in this context it is unix enough) to Windows 10. To do this I added OpenSSH optional feature to Windows ...
-1
votes
1answer
554 views

Is there a best way to detect errors after receiving a file transfer?

Is there any way to have error detection and be 100% sure that all errors will be detected at the receiver? or even while in the transfer. CRC, checksum, hashing or ...
-1
votes
1answer
19 views

Transferring files from one server to another via a third machine, using key not password

I want to transfer files from one server to another. scp -r user@11.11.11.22:/home/filename.php user@server.com:/home/scripts When I run this command I received an answer that I need to put password ...
0
votes
0answers
25 views

SCP through intermediate host and no strict host key checking

This is probably not the first question about using scp with an intermediate host, but the way I access the target host through ssh has a bit of extras which I am not familiar with, and I have not ...
0
votes
1answer
36 views

The -r flag for directories seems to be useless now [closed]

cp, scp, rm and other command needs to the -r flag to perform an action on a directory, compared to just a file. can't copy a directory because WHOOPS you forgot the -r flag I don't feel this is ...
1
vote
2answers
178 views

How to host a file using SCP on Linux without root privilege

I am a user on a Linux server. I want to host a file on the server by starting an SCP server, similar to starting an HTTP server over a custom port. e.g. "python -m SimpleHTTPServer". I want to use ...
0
votes
2answers
126 views

I am trying to copy file from remote server to local machine

I get this error: ssh: connect to host ' my ip addr ' port 22: Connection refused I am try ing to copy a csv file, from REMOTE SERVER to my computer, using SCP command This is my code: scp ...
0
votes
1answer
23 views

Does SCP between 2 machines copy file to the current machine in the background?

If I am copying file from remotemachine1 to remotemachine2 and I am currently at remotemachine3, will the file from remotemachine1 in background first copy to remotemachine3 and then to remotemachine2?...
0
votes
0answers
22 views

Can I use a disk image on a different linux device with the same OS?

I want to be able to copy an Amazon Linux 2 instance from my Linux academy lab servers to my personal AWS account. They don't provide a built in way to do this but they do let me SCP files out from ...
1
vote
2answers
32 views

scp file to remote server via tunnel using identity file

I'm wanting to scp a file from my local machine to a remote server, using an intermediary tunnel. I've tried a few options already suggested, but none seem to work. Breakdown: local machine The file ...
0
votes
0answers
19 views

Transfer files from 1 machine to 2 remote

I have a network configuration with machine A, machine B and machine C (they are linux). The network is slow and I want to copy a big file from machine A to machines B and C. The particularity is ...
2
votes
1answer
127 views

How to setup scp with custom parameters?

I want to setup a centos server from where users can copy files using their user id, password and a key. Based on the unique key I want to give the user access to multiple files. Have figured out a ...
0
votes
0answers
36 views

how to define ssh port for file transfer using scp from remote server to another server [duplicate]

I want to transfer a file from server3 to server1 at server2. I used this command for copy file: root@server2:~# scp -3 root@server3:~/file root@server1:~/. But I must connect to server 1 by port ...
0
votes
1answer
34 views

First time using scp -r before and I keep getting an error “Host Key verification error”

I've never used the bash language before (is scp -r part of bash?) and there's a C++ Xcode file I want to copy to a different IDE (more specifically for a robot controller). That C++ file is in a ...
0
votes
0answers
209 views

SCP stuck on file copying

I have a test file with a simple text inside. If filesize more then 750 bytes I can not transfer it via SCP or rsync. Internet works fine on the host and has Download: 16.53 Mbit/s Upload: 2.83 ...
0
votes
1answer
27 views

spawn, expect, send aborts during scp transmission

I have a basic scp sending mechanism with spawn, expect and send. However it gets aborted during the scp transmission. Here is the expect command: expect -c "spawn sh -c {scp -r -P 22 /tmp/rootfs/* ...
0
votes
0answers
11 views

how to scp files from multiple source hosts onto the same target when user only exists remote

I want to scp files from multiple source hosts onto the same target. The scp user only exists at target. I want to generate the key pair on target then distribute the private key to all connecting ...
0
votes
0answers
113 views

SCP hangs after “Sending command: scp -v -t /tmp/” but SSH works

I have a remote raspberry pi that I'm able to SSH into just fine from Windows (from the Windows linux subsystem), but I can't copy files to it with SCP. When trying to copy a file to /tmp on the ...
1
vote
1answer
72 views

how to transfer files stably in linux

I am trying to transfer large data from windows to linux by using SCP. scp GEOS* username@ip:/path/to/destination It works. But it is pretty slow and the connection would be reset two hours later. ...
1
vote
1answer
1k views

How to scp from a windows host to a windows host where the source path has spaces?

I want to do something like scp JoeBloe@WindowsHost:c:\Some Folder\foo.txt c:\temp I know this is a matter of getting the quoting right both in the local shell and ensuring the remote host also ...
3
votes
2answers
287 views

Why “scp” does not print all output of script specified by “command” directive of authorized_keys file (or any other startup script)

I need a bash script to be automatically launched when doing an ssh or scp command to a server. I do my ssh and scp this way: ssh -i path/to/key me@server some_command or scp -i path/to/key ...
0
votes
0answers
190 views

Trying to scp .png, .jpg files resulting in broken pipe error

I am trying to scp images to use for my website. When I try to scp these files I get an error saying "Broken pipe lost connection". The file downloads 100% but then crashes. Are you not able to ...
1
vote
2answers
100 views

how to split a string in two then assign each segment into a variable

I have this code: #!/bin/sh echo "--------- Backup config files -------------" find /vmfs/volumes/datastore1/ \ -type f \ -regex '.*\.\(vmx\|nvram\|vmsd\|vmdk\)$' \ ! -name '*-flat.vmdk' \ -...
0
votes
4answers
136 views

cannot escape space in scp command in a while loop

I'm trying to build a script to make a mirror-backup of a free ESXi 6.5 to another free ESXi 6.5 host. I'm almost there but this issue is driving me crazy. This is a part of the script; I am using ...
0
votes
1answer
63 views

How to find remote login address from terminal

I use scp to copy files from a remote (Linux) computer to my local machine (Mac OS Mojave). I have "Remote Login" enabled on my Mac. In the "Sharing" section of System Preferences, where I enabled "...
0
votes
1answer
26 views

How can I transfer a large directory between two servers that can't see each other directly?

The server named SeesBoth sees both server A and server B. A can see SeesBoth, but not B. B can see SeesBoth, but not A. (I'm told this is because of subnet masks.) I have been tasked with ...
0
votes
1answer
89 views

SFTP/SCP command re-prompts for passphrase

I'm logged into remote unix server and want to transfer file to sFTP. Issue is that entered passphrase is not accepted and constantly re-prompted. This is my setting of folder and RSA file ...
0
votes
1answer
55 views

Trouble using SCP command

After successfully establishing a ssh connection between two Ubuntu systems via ssh chh1@192.168.1.67 from a local machine with user name chh2 I tried copying a file from my server with the ...
1
vote
1answer
45 views

Moving directory from PC to server with Bash, SCP, and SSH

I am attempting to move my Flask Application directory from my PC to my Ubuntu server (hosted on Linode) using the Ubuntu Bash terminal (I'm running Windows). When I run this: scp -r C:\...
0
votes
1answer
58 views

SCP file copy gets frozen in mid transfer

For some reason I am experiencing an issue with scp/network that file download gets stuck in mid transfer. Usually at the end of the completion, like 90%, 97% or 99%. Files are around 200mb to 1,5gb. ...
0
votes
0answers
648 views

How can I specify network interface for scp?

I want to transfer a file from a Debian based computer (Asus Tinker Board) to my laptop running Ubuntu 18. Tinker Board is connected to internet through a 4G/LTE module (ppp0 connection), but also ...
1
vote
1answer
44 views

How can I make scp support a globstar?

Is there a clean way to make scp support a globstar, or do I need to do this with rsync? [garnett@cherry aips]$ ls **/ACN-2017-008_1977*.7z works, after doing shopt -s globstar or using zsh [garnett@...
0
votes
2answers
77 views

Diff directory contents from Mac to PC on same network

I have a Mac and a PC on the same LAN. The PC is running OpenSSH. I copied a folder of (subfolders containing) 30 GB of files from the Mac to PC via: scp -r ~/orig_folder/* my_user@192.168.1.106:...
0
votes
0answers
116 views

WinScp connects while filezilla does not

I have a device running Linux that has an ssh server on it. ssh to the device using username and password works fine. However, scp is not available on the device, so I can't copy files around using ...
0
votes
0answers
18 views

Error in copying folders from mac to chpc remote linux server

I am trying to copy a folder containing 100 files into a folder named "scratch" present in the CHPC remote server. I have logged in to the CHPC server and I am using the following command: scp -r /...
0
votes
0answers
35 views

How to transfer files between two remote servers where one is a NetApp

We have a system with the following three servers NAS - NetApp filer master server - with write access to NAS via NFS mount Compute servers with data but no write access to NAS (Actually there are ...
0
votes
0answers
48 views

Permission denied using PSCP, Raspberry pi. Special permissions?

I keep get what follows when I try and use pscp to transfer a folder using -r. pscp -r -P 22 -pw password C:\test pi@111.111.111.11:/home/pi/stuff And I keep getting - unable to create directory /...
0
votes
1answer
290 views

Password denied in SCP

I have a problem of SSH saying the password is incorrect (even though it’s right). I have gone through similar posts, but I did not find them helpful as I'm a newbie to this. Here is the background ...
-1
votes
1answer
75 views

Transfer 9million <100KB files totalling ~500GB to google cloud filestore

I have a lot of images, organised into some 40 odd folders, where the largest number in a folder is 1280000 images and the smallest 1 image. I need to transfer these images to a google cloud compute ...
0
votes
1answer
173 views

scp can't access SSH alias: Name or service not known

I want to move a directory from one host to another. This is my command: scp -r host1:filepath host2:filepath I get this error: ssh: Could not resolve hostname host2: Name or service not known lost ...

1
2 3 4 5
13