Questions tagged [scp]
SCP (Secure Copy) is a secure protocol based on SSH used for transferring files between computers.
734
questions
1
vote
2
answers
4k
views
'Command not found' error when trying to scp file
I've installed Raspbian on a Raspberry Pi and I'm trying to send a test file from my Macbook to the Pi over my LAN, but I keep getting the error:
bash: scp: command not found
followed by
lost ...
1
vote
1
answer
1k
views
Proxychains – ssh working but not scp on macOS Sierra
I use proxychains4 in macOS Sierra and have an issue with scp.
For SSH I counter the pb by copying the ssh from /usr/bin to /User/mylaptop, then use this to ssh:
proxychains4 /users/mylaptop/ssh ...
1
vote
1
answer
2k
views
Transfer files over an established ssh connection
I'm wondering if there's any way, while in an established ssh session, to copy files to and from the source computer, without having to use sftp or scp to create a separate connection, requiring more ...
1
vote
1
answer
7k
views
Are there any current multi-threaded sftp Windows clients? [closed]
I found bitkinex.com had one, but is rather old and doesn't support the latest encryption.
winSCP has it on it's plan, some time way into the future, but doesn't seem likely to happen.
1
vote
1
answer
9k
views
stty: standard input: Invalid argument error when scping files
When I try to scp a file to my remote server I get the following error:
stty: standard input: Invalid argument
This is caused by a line in my .bashrc file:
stty -ixon
If I remove that line, the ...
1
vote
2
answers
4k
views
dropbear dbclient + scp, equivalent to openssh "-oStrictHostKeyChecking"
Using dropbear's dbclient and scp implementation, is there a way to get the same behavior produced by openssh when using the scp option "-oStrictHostKeyChecking=no".
In other words, can I make ...
1
vote
1
answer
2k
views
scp from ubuntu virtual machine under Windows 7: connect refused
This question is similar to Virtual Box ssh not working on Virtual Box Ubuntu machine. I actually got ssh to work, but now I want to transfer a file from my local machine to the remote machine using ...
1
vote
3
answers
362
views
Copying multiple files on linux
I have a linux machine with folders named numerically. How can I securely copy ranges of these folders to another server? The source machine runs tcsh, the target bash. At the moment, from the ...
1
vote
1
answer
2k
views
how to save the output of scp command?
I want to save the output of scp command each a laps of time, in fact we i make scp --debug , I see the progressive rate of transferring file .
I want to save each time (1s exp) the output of the ...
1
vote
1
answer
84
views
Is it possible to connect these machines with ssh tunnels or another mechanism?
I am physically on a machine that is behind a firewall and cannot be ssh'd into. Let's call that PC. PC can connect out to two machines, one on AWS and one that is part of a vpn connection, call ...
1
vote
1
answer
922
views
rsync - resume broken transfer (idea of rsync)
I have remote stations that collect data from sensors (ARM Debian) and transfers sets of data (about 1.1 MB) every 15 minutes (server is full Debian). On one station GSM reception is poor and standard ...
1
vote
1
answer
1k
views
How can I change directory back to client machine in ssh?
I'm trying to transfer files between a server and my mac using the terminal and SSH. If I haven't already logged into the server I can simply type:
scp -r [email protected]:/classes/...
1
vote
3
answers
3k
views
Need to transfer files(No SCP) from Linux to IBM-AIX
I need to transfer a tar.gz file from RHEL5 to IBM AIX... The IBM AIX does not have scp and I dont think, I could install, as I am just using the system for temporary purposes. Is there an alternative ...
1
vote
1
answer
7k
views
How to copy files and directories to a remote host without rewrite a directory, just creating new ones
I tried to use scp to that task but unfortunately doesn't work, maybe i have a wrong idea if scp can do that
Anyone can bring me some light?
I read about rsync but i can't understand if rsync can just ...
1
vote
1
answer
4k
views
Putty SCP known_hosts file or StrictHostKeyChecking=no
I need to be able to use a .known_hosts file or just disable checking, preferably the first option. I would be open to other ideas/software too, but hopefully someone can tell me how to do this with ...
1
vote
2
answers
3k
views
Windows: How to securely transfer file from windows machine to remote host
I am currently looking at have a scheduled task set-up that will transfer a file from a Windows system to a remote host (possibly another Windows or Linux). In linux I know this can easily be done ...
1
vote
1
answer
3k
views
I get "lost connection" error while using ssh and scp
mySCP="scp -q -o StrictHostKeyChecking=no -o BatchMode=yes -o UserKnownHostsFile=/dev/null -o HostbasedAuthentication=no"
rm -Rf /tmp/logdata
mkdir /tmp/logdata
$mySCP -r xyz2384:/d/d1/run_logs/...
1
vote
1
answer
595
views
Use different shell for scp
I want to use a different shell when Im scping files to a remote server as compared to when Im logging in. Is there a way to do this? Note that both scp/remote login is done with the same user, so I ...
1
vote
1
answer
301
views
.sh script is not executed as the user I want therefore scp does not work
I was using the GUI version of Transmission for Ubuntu.
When my torrents were downloaded I ran the following script as user server with the corresponding ssh keys:
#!/bin/bash
cd "/home/server/...
1
vote
1
answer
1k
views
How to use scp to transfer files from WAN to LAN
I have machine A with a public IP address (addr_a), machine B within a LAN of private IP address(addr_b), the router of the LAN has a public IP address (addr_r).
If I log into machine A by ssh from ...
1
vote
2
answers
2k
views
Mapping sftp/scp as a drive letter without user logins
I'm trying to find a software which could map sftp/scp services to a windows drive letter. I know there are quite a bunch of those available, but i haven't found a single one which could run with ...
1
vote
1
answer
139
views
Copying 6GB file with scp finishes at 1.8GB
G:\>ssh [email protected]
phrogz@nematode:~$ cd /backup/
phrogz@nematode:/backup$ la
total 6057228
drwxr-xr-x 2 root root 4096 2011-04-21 10:25 ./
drwxr-xr-x 24 root root 4096 ...
1
vote
2
answers
262
views
Questions about using scp
In a previous post, I asked a
question about simply right-click
copy and paste in Nautilus sometimes
cannot handle files with special
characters in their names under
Ubuntu.
Later I found that scp ...
1
vote
5
answers
55k
views
how to copy a file from linux to windows with scp command?
I would like copy a backup file from image vmware linux to windows but I don't know how to process it?
I tried:
scp /source/backup.tar.gz [email protected]:/c:\ProgrammefilesC:\Documentsand Settings\...
1
vote
2
answers
1k
views
Run scp as ubuntu@ copying to Ubuntu system with correct permissions?
I ssh into a ubuntu box with username "ubuntu" and I can become root without entering a password via "sudo su". How can I scp files onto this box using the ubuntu@ username? It does not allow me to do ...
1
vote
1
answer
176
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 ...
1
vote
0
answers
91
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 ...
1
vote
1
answer
177
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 ...
1
vote
0
answers
62
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 ...
1
vote
0
answers
250
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 &...
1
vote
0
answers
113
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 ...
1
vote
0
answers
654
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
195
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 $...
1
vote
2
answers
796
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 ...
1
vote
0
answers
257
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
vote
1
answer
181
views
SCP, transfer file across 3 computers
I'm having trouble understanding if it's possible to transfer a file from one PC to another passing through a third one.
To explain better my situation:
I have:
My local PC (PC-1), where I have my ...
1
vote
0
answers
404
views
Scp Tab completion for remote wsl bash does not work as the other way round
On wsl(ubuntu), I can do scp somefile ubuntu:somepath, and use tab completion for the somepath, as I use keys to ssh.
But I cant do this in reverse. On remote ubuntu I do scp somefile wsl:, and then ...
1
vote
1
answer
979
views
scp error: unexpected filename . / n00b dealing with Chef on Ubuntu
I am very new to the Ops world, like really really new so often what I do might feel like copy/pasting and I wouldn't know what command means what and what an argument is, so please bear with my ...
1
vote
0
answers
4k
views
How to find the port used for SCP?
I'm trying to copy a file from my local (Windows 10, Cygwin) machine to a remote (Raspberry Pi) machine using scp, I get a time out error:
$ scp main.bin [email protected]:
ssh: connect to host 123....
1
vote
0
answers
345
views
SSH is working but Scp is not on Windows 2008 server
I have to build a logic in our Micronaut application to scp a file from remote windows 2008 server to local (tried with both windows and Mac) Using JSCH api. So OpenSSH has been setup on the windows ...
1
vote
1
answer
2k
views
Copy file from local to remote SSH with spaces in username
I have to copy a file from my local machine to a remote server. The problem is, from what I'm understanding, is the space in my username ("User Name").
I've tried the following in command ...
1
vote
0
answers
261
views
secure file copy (scp) back and forth from remote line to Windows
Need to learn more about scp but I was able to transfer an entire directory (registry_configs) of CSV files from a remote linux machine ([email protected]) to my Windows 10 environment with this:
scp -...
1
vote
0
answers
969
views
Slow SFTP/SCP/SSH speeds, but only in Windows
I have a pretty weird issue where all my downloads over SCP/SFTP/SSH seem capped at 1.3-1.5 MB/s. This is on a system where I speedtest ~500 Mbit/s downstream, so I expect something around 30-50 MB/s. ...
1
vote
1
answer
579
views
syncing two folders into one, removing deleted files
Given folders named Drive1/Folder1 and /Drive2/Folder2 I want to have a folder /Drive3/folder3 that contains the synced merged contents of both the source folders, but does not contain any files or ...
1
vote
0
answers
1k
views
Cannot get SCP to work even though SSH works
I have a remote VPS that I can succesfully connect to via SSH, using my SSH key. I disabled password authentication in /etc/ssh/sshd_config.
I have not been able to get scp to work despite reviewing ...
1
vote
1
answer
742
views
Why does SCP fail with 'authenticity of host can't be established' but SSH works?
I've seen this question asked before but the answers always seemed to lack some specificity. I am having trouble moving some user interface files from my own machine to my server which resides on a ...
1
vote
0
answers
110
views
Cron a database dump on an external SFTP server
I have a command to dump a database in a local server, and want a daily backup of that database in an external SFTP location.
I checked out the scp command and it works smoothly, now I need (maybe ...
1
vote
1
answer
4k
views
How to override a file via scp not being the owner, but preserve timestamp?
I have 2 users on a remote machine (let's call them user1 and user2, with both being in the common group upload).
I want to be able to upload/override a file via scp, from different machines. Whereas ...
1
vote
1
answer
1k
views
FileZilla: FATAL ERROR: Signature from server's host key is invalid
I'm transferring a big file with sFTP from local to a webhosting. After 9mins30sec I've always this error. Then FileZilla reconnects and continue the upload from where it was stopped. Is it a timeout ...
1
vote
0
answers
2k
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
...