Questions tagged [scp]
SCP (Secure Copy) is a secure protocol based on SSH used for transferring files between computers.
734
questions
0
votes
1
answer
21
views
Why can't `scp` be found even though it is installed?
I ran the command below.
$ scp -i <key> -P <port> <user>@<host>:<path> .
bash: scp: command not found
So I checked
$ which scp
/usr/bin/scp
Then I tried
/usr/bin/scp -i ...
0
votes
0
answers
15
views
using scp or echo in zsh with alias parameter print 'No such file or directory'
here zsh on MacOSX.
I would like to point out that I have tried several ways, with and without quoting, single or double quoting, with and without brackets, with/out $variables. But I receive ever ...
0
votes
0
answers
37
views
How to rsync to a server that does not have rsync but has the SCP tool
The remote server is a FreeBSD like system from which rsync is not installed :
$ ssh [email protected] which rsync scp
Password:
rsync not found
/usr/local/bin/scp
$ rsync -a /ring/0/share/...
1
vote
1
answer
128
views
Can transfer files using WinSCP but scp or rsync fail with errors like "Connection closed"
I get errors when trying to transfer files using scp or rsync, but I can transfer files using WinSCP, and it's using SCP protocol.
I'm running WinSCP on Windows 11 and scp rsync on WSL2, and when I'm ...
0
votes
0
answers
37
views
Can’t send over a SSH key to Windows 11 but process works with Windows 10. Why?
I'm running some tests with SSH with public keys. I am generating the keys with the ssh-keygen command in my Linux machine.
I'd like to use the SCP command to copy the public key to my Windows 11 ...
1
vote
0
answers
78
views
Copying files from Linux server to windows machine over SSH, using expect script and crontab is not reliable
We have a server that is producing reports from some elements in two formats. PDF and DOCX. I created a crontab job to automate transfer of these files from the server to one of the local Windows ...
0
votes
1
answer
87
views
SCP from server to local host failed
I am sure I was SCPing some files TO the server before, but now it does not work in opposite direction.
I'm using:
$ scp -v mysrv:/home/XXX/dir/app.rb app.rb.bak
Authenticated to mysrv ([88.88.111.11]...
1
vote
1
answer
146
views
Handling of forward/back slashes by Windows Powershell
I have been reading that Windows Powershell is slash direction agnostic, in that it can take both forward/back slashes for file paths.
For some reason, when transferring files between my Windows ...
0
votes
0
answers
629
views
Persistent SSH Error 'port 22: No route to host'
I have been trying to resolve a problem on my Windows 11 laptop dealing with openSSH server with the error message 'port 22: No route to host'. Mind you I have done the download correctly, and have it ...
1
vote
0
answers
54
views
SCP silently ignored on the remote machine
When I'm trying to copy a file using scp (in whatever direction), there's no error displayed (although the returned $? code is 1), all I can see is the message that normally the REMOTE machine prints ...
0
votes
0
answers
48
views
How to transfer very large folders from a server which I access sudo and ssh to another server with ftp access?
I have some big folders (each around 1T) on a server which I have sudo access to that. I want to transfer them to another server which I have ftp access (with username and password). What it came in ...
0
votes
0
answers
181
views
Reason for slow download speeds in scp and rsync
I am trying to download some files using scp and rsync from a remote computer. The files are ~20 MB to few GB in size. Trying to download them gives me ~20-30 KBps during the day and ~5 MBps at night (...
0
votes
2
answers
688
views
scp -O (legacy protocol) option per config file?
I basically have the same problem as described (and solved) here: https://stackoverflow.com/questions/74311661/subsystem-request-failed-on-channel-0-scp-connection-closed-macbook
This is: scp to some ...
0
votes
1
answer
48
views
Secure copy of large amounts of directories from Win to Linux and exclude certain filename patterns
I need to copy several Tbs of data FROM a Windows computer TO a Linux computer. I can do this in two commands in Command Prompt
Copy only directories and files that are not jpeg or jpg
robocopy ...
0
votes
0
answers
18
views
How to remotely download from a server that's 'firewalled' by another server? [duplicate]
I need to access and download a catalog of stars from a remote server for my thesis work from outside my university. The server that holds the data (let's call it target) can only be accessed from ...
1
vote
1
answer
369
views
Can't scp files with long/weird filenames: Invalid argument
When I try to use scp to copy files with long filenames and containing non-alphanumeric characters, I get
scp: open local "[some capricious filename]": Invalid argument
I can copy them ...
0
votes
2
answers
227
views
Secure transfer with ProFTPD - speed difference between sftp (OpenSSH secure file transfer) and scp (OpenSSH secure file copy)
After quite some network setting debugging on a EL8 Linux system, I found that the bottleneck with secure SFTP transfer actually was the CPU.
The strange thing is that there are different transfer ...
1
vote
0
answers
219
views
scp: ambiguous target when attempting to copy directory with an apostrophe and spaces in the name
I am trying to use scp to copy a directory by using ssh through windows terminal to connect to my mac and then use scp to copy a folder to my raspberry pi; I have tried many variations such as
scp -r &...
0
votes
0
answers
235
views
scp lost connection and timet out error linux
I am new to Linux and file transfer processes via scptrying to use scp between two Linux servers. I already installed SSH for both of them, and it is working. I also enabled PasswordAuthentication but ...
0
votes
0
answers
251
views
Using WinSCP (File Protocol SCP) with a server that requires "dzdo su -" for sudo
TOPIC: Using WinSCP (File Protocol SCP) with a server that requires dzdo su - for sudo
We have a few Linux Servers that require the logged in user to issue the following command to emulate the root ...
0
votes
1
answer
350
views
SCP destination path with drive
I want to copy a file to another server using the following command.
scp source_file_name username@destination_host:destination_folder
In my case, my destination folder is in a different drive. So, I ...
1
vote
1
answer
214
views
Getting "Remote to remote not supported" when copy file from Windows host to remote Ubuntu server using pscp
I'm trying to copy a file from a Windows host to a remote Linux (Ubuntu) server using pscp.
This looks straight forward at first:
pscp -P 22 'C:\text.txt' user@ip:~/Downloads
However, I get the ...
0
votes
1
answer
107
views
SCP to copy files from vmware machine remotely
I have 2 machines A1(Windows11) and A2(Linux Mint) on 2 different networks N1(Korea) and N2(Japan) respectively.
Inside A1 I install a Linux guest A11 and now I would want to copy a file from A11 to ...
2
votes
4
answers
2k
views
How to test scp without sending a file?
I have a setting where only scp connections are allowed to a remote server, with ssh login being disabled (i.e. you can't get a shell into that server), and I am seeking a clean way to test the ...
0
votes
1
answer
65
views
I need to change the port and run an authetication key through an scp command
Hi I am trying to send a file to a linux server but the ssh connection is not port 22 and i need to pass an identity key through as well. Is there anyway i can change the port and use the -i in an scp ...
0
votes
0
answers
403
views
Permission denied (publickey). scp: Connection closed
I'm having a remote server running SSH,
I use the scp from my local computer like this:
scp filename.txt username@IP:/data/production
it asks for the password, I supplied it, and then I get
...
0
votes
1
answer
646
views
Transfer a file via scp with key auth
I need to transfer a file from machine source to machine target, executing the scp command on source machine.
The source machine has a private key, and the target machine has source's public key ...
1
vote
1
answer
106
views
scp doesn't trigger initial prompt even though known_hosts is empty or deleted
I have a bash script to copy a file to a remote server using scp and expect. The script is as follows:
#!/usr/bin/expect -f
set port [lindex $argv 0]
set file_to_send [lindex $argv 1]
set login [...
0
votes
0
answers
358
views
Trying to scp files from an old Cisco C3560G to my PC : no matching key exchange method found
I'm trying to download files from an old Cisco C3560G to my PC but I get this error :
PS C:\Windows\System32\OpenSSH> ./scp.exe -pr admin@PAN-MGMT-01:c3560-ipbasek9-mz.122-53.SE C:\Users\sebastien....
1
vote
0
answers
108
views
How to deny access to shared folder from a specific user on Linux ubuntu
i have 3 machines on my virtual box, Server, Host 1 and Host 2
i shared a directory from the server to both the hosts using the scp command
but now i need to deny the access to the shared folder from ...
0
votes
2
answers
415
views
Copy files between VMs using localhost as jumpbox
I have encountered SCP through SSH-forwarding in cases where
VM-A <---> VM-B <---> VM-C
and a file is needed to be transferred from A to C or vice versa, ie. B is the Jumpbox in this ...
1
vote
0
answers
636
views
cat through ssh does not work, it hangs on "debug2: exec request accepted on channel 0" and scp never finishes
I trying to print a file through ssh on CentOS7 but it does not work somehow :
$ time timeout 60s ssh -vvv SERVER-01 cat /etc/yum.repos.d/CentOS-Base.repo
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan ...
1
vote
0
answers
184
views
How do I scp from inside a Linux container to Windows 10?
I am able to scp a directory from within a Linux (alpine:3) docker container to my windows 10 box (a VM). The problem is that after the copy successfully completes, it prints this error:
sshpass -p $...
4
votes
2
answers
2k
views
Directory contents not fully copied by scp command
I'm running Windows 10, and the server is on Debian 10 and I'm copying a Svelte build directory from my computer to a remote server. I'm using the command to copy the files:
scp -r ./build user@remote....
-1
votes
1
answer
1k
views
Using Rsync Transferring files from server to client too much slow?
Actually i am transferring files from one AM5728 Board to another AM5728 board (with Aargo Linux Kernel) with 1Gbps speed.
Tested iperf command speed is 750Mbps.
Transfer files from one board to ...
0
votes
1
answer
82
views
Why Do ssh and scp See Different File Systems
My ssh to a host "sees" one file system; my scp sees a different one. How can this be the case, and how can I fix it. e.g.
$ ssh me@otherpc 'ls -l /tmp/media-files.txt'
-rw-r--r-- 1 me me ...
2
votes
1
answer
19k
views
What is the correct usage of the scp command in Powershell?
I am trying to retrieve some data from a remote directory (with an IP address) using the scp command in Windows Powershell. However, when I enter the command
scp -r root@<remote IP>:<remote ...
0
votes
1
answer
648
views
It does not appear that the file is downloaded
I have applied the following command:
scp [email protected]:/Ejemplo/CLEAN.txt \Users\L\Downloads\CLEAN.txt
I am notified that the file is downloaded, but the file does not appear in the folder. My ...
2
votes
1
answer
861
views
Broken pipe on transfer from/to fedora system using rsync/rclone/scp
I'm trying to send some files with around 2GB to my home server running Fedora 36. On my Laptop, I have Pop OS! 22.04. Both are directly connected to my router via Ethernet.
Sadly, I'm getting errors ...
3
votes
1
answer
5k
views
Is there a way to transfer a file from windows 11 to remote Linux server without winscp or scp?
I have a locked windows 11 laptop in where I am not allowed to install any third party application such as winscp or git bash. Someone with admin permission can do it though.
What I need is transfer ...
1
vote
2
answers
768
views
Copy file from Windows to Linux server by using jump server
I have Windows machine and Linux 1 and 2 servers.
Windows machine doesn't have a direct access to Linux 2 server. I need to go via Linux 1.
How can I copy files from Windows Machine to Linux 2 server ...
0
votes
1
answer
1k
views
scp no such file or directory exists, but the file does exist
First, I want to say I am sorry if this is posted in the wrong section. this is my first post here, and this is the first time I'm making an account.
What I am trying to do is copy a file from a ...
1
vote
1
answer
159
views
Why does scp not work while scp -4 works?
I have an issue with scp:
scp -pr xyz.zip [email protected]:/home/myuser/tmp/ does not work, while
scp -4 -pr xyz.zip [email protected]:/home/myuser/tmp/ works, what could go wrong here?
My assumption ...
5
votes
1
answer
9k
views
Copy file using scp fails (debug1: Exit status -1)
I wanted to copy a single file from a remote server to my local machine.
I do not have root privileges on the remote machine but I can successfully SSH into a user given the password.
However the ...
0
votes
1
answer
894
views
Winscp to Linux guest SCP account, access denied
I'm trying to set up a restricted SFTP account on a Kali Linux box so that I can have random co-workers dump files without having to give them a ton of access (or my password). I followed the ...
1
vote
0
answers
244
views
Copying a file from a linux embedded system to local machine connected by a Serial connection
I am connected to my embedded system by serial connection to my laptop(windows), and using puTTy I booted it up. It is collecting data and making a .csv file of the collected data. I would like to get ...
-1
votes
1
answer
229
views
SCP won't transfer file... Advise: SSH key issue?
very time I'm trying to SCP something into my local linux it tells me... several things actually, starting with:
Permission denied (publickey). lost connection Progressing forward, in this case its an ...
0
votes
0
answers
604
views
logging SCP activity in remote server
I have a CentOS server which is used by many person with same user.
All users are permitted to upload and download files with scp or winscp.
Is it possible to log all file transfer activity(in and out)...
2
votes
1
answer
353
views
scp recursive upload is incomplete
I want to transmit with scp a folder and it's contents, including subdirectories. The size of the directory is 16.2GB and it contains 40.647 files and 7.463 subdirectories. The local machine runs ...
0
votes
0
answers
173
views
Limit scp from only a particular group of systems for a group of users
Allow scp from only a particular group of systems for a particular group. I think an example will be more effective to understand my requirement.
Users : user1, user2, user3 utpto user20 ( All this ...