Questions tagged [scp]
SCP stands for Secure Copy Protocol and is related to questions regarding secure file transfer.
240
questions
-1
votes
1
answer
139
views
Why server name not used in sftp get and put
To transmit a file, sftp syntax is:
get /A/B/abc.txt /C/D/
In contrast, scp syntax for the same task is:
/A/B/abc.txt username@servername:/C/D/E/
Why don't we need username@servername in case ...
4
votes
1
answer
2k
views
scp \033H message
Having a weird scp issue:
$ scp [email protected]:~/test.txt ./
Password:
\033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H \033H
...
2
votes
3
answers
15k
views
SCP over SSH with no password - cannot get it to work
I have an Ubuntu 16.04 server with SSH, I have configured a keypair so I can SSH on to a remote system with no password, this works fine.
I am trying to SCP from Local (system1) to ther remote (...
0
votes
0
answers
3k
views
SCP to copy a file from Linux to windows is failing with Permission Denied error
I am using scp command to copy a file from Linux to Windows. It's failing with the mentioned log.
Steps accomplished:
Installed openssh in windows
copied id_rsa.pub key to Linux box under .ssh/...
9
votes
1
answer
11k
views
Why is rsync 2x faster than sftp?
I'm transferring huge files, over a network to a destination server, totaling ~ 67 GB with individual zip files of size ~ 7GB. I tried copying to the destination using both sftp and rsync. rsync ...
1
vote
1
answer
2k
views
Cron job : dump and scp tar dump to remote server
I want to make a cron job that dumps a MySQL database and tars the dump with date|hour|minute and then scps it to a remote server.
0 */2 * * * mysqldump -uroot myBase>myBase.sql && tar -...
0
votes
1
answer
653
views
escape character not working in scp
I am trying to transfer some file through scp. But it is not working,
scp "vogo_psql_db\:2017-08-30T18\:00\:01.762662" "[email protected]:db-dump"
ssh: Could not resolve hostname vogo_psql_db\\: ...
0
votes
1
answer
932
views
SCP the other way Around [duplicate]
Let me redo this, I was accessing a sever via ssh, i can access the server easily from my system (the server is in my local network).
I tried copying a file from my local system to my server and it ...
0
votes
1
answer
206
views
How to managing ECDSA key fingerprints on mobile host
I have a number of automated scripts that use SSH authentication when connecting to a remote host (mobile robot in my case). The problem I have is that this robot is sometimes located in our lab, and ...
16
votes
1
answer
7k
views
How do I scp files of size less than x?
I am developing something on my laptop and scp'ing the files to a high performance PC (a server with no monitor). Out of laziness I just do this currently (on the laptop):
scp -r ~/project/* server:~/...
0
votes
1
answer
11k
views
scp command doesn't transfer files
I'm trying to upload a folder to the root directory at my server
$ scp -r folder [email protected]:
then I see some like:
However when I go to server
ssh [email protected]
and check files (using ...
1
vote
0
answers
3k
views
Capturing the "progress bar" shown in a terminal
I am looking for the "verbose" output of scp, as shown by the following command, but excluding all lines containing debug1::
scp -v /path/to/some_very_large_file user@host:/home/user/test.deleteme 2&...
1
vote
1
answer
327
views
How do I sent files from Ubuntu to windows via terminal? [duplicate]
I want to sent files over a private network from Ubuntu 16.04 to a windows box.(Its an IOT box) I am able to scp into other linux devices but how do I send files to windows? I want to do this via ...
0
votes
0
answers
10k
views
SCP permission denied when copying from server to local
So I am setting up a vpn and I keep getting a permission denied error when I use scp. I've tried several methods (the ones I found online) but nothing seems to help.
root@debian-512mb-fra1-01: scp ...
1
vote
1
answer
2k
views
expect script to scp via an intermediate host
I found a command to directly scp my file to a host (C) via another host (B) from my computer. The command is in this form:
scp -oProxyCommand="ssh -W %h:%p B" thefile C:destination
I used it and it ...
1
vote
1
answer
176
views
Is there a shorthand way to write 'scp' to copy back to connecting host?
If I'm already remoted into a machine via SSH, is there an easy short-hand way to write an scp command that will copy the file back to the computer that is connected?
In other words, if I'm on ...
2
votes
2
answers
17k
views
scp command returned `no such file or directory` error
I am trying to copy files from my laptop to a host via ssh command:
roberto@xxxxx1:~$ scp /home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz [email protected]:/media/disk7/...
10
votes
4
answers
102k
views
How to copy (or move) files from remote machine to local machine?
I SSH tunneled from my local Ubuntu machine to a remote Ubuntu machine and I want to copy/move files from the remote Ubuntu to the local one.
I need to do that from within the SSH session (i.e, from ...
2
votes
1
answer
679
views
Does scp over cp matter when copying to a remote SSH location?
I am a little confused here.
Say I do the following: cp /this x@x:x/to-this.
Will not this already be a secure way of transferring the file since it uses the SSH protocol? Or is scp when used with ...
0
votes
2
answers
4k
views
Can you tell SCP to cancel [as opposed to renaming] if file is present?
In order to help avoid generating errors, I need a way to stop an automated scp script to stop from overwriting files if they are already present on the remote folder, and just do nothing instead.
Is ...
0
votes
3
answers
306
views
Scp Command issue
I am trying to copy the image maldives.jpg from another computer into mine using scp. However when I enter the line:
scp -r [email protected]: ~/maldives.jpg
I get:
...
1
vote
0
answers
591
views
scp not working when my ssh is working perfectly
I am having issues in scp a file to another user:
scp filename [email protected]:~/path/to/directory
I only get the below line, but scp doesn't happen:
SSH_AUTH_SOCK=/tmp/ssh-KjEHW3vNQqjE/agent....
1
vote
0
answers
680
views
How to transfer files from one ssh to another ssh by scp?
I want to copy files from one ssh to another ssh using scp command.
scp user@host:~/file/to/be/copied user@host:/location/to/save/file/
But Following error occurred:
Permission denied (publickey).
...
0
votes
0
answers
947
views
IPv6 not working from terminal
I was able to scp files from my VPS using IPv6 but after some mess-ups (like using shadowsocks and Foxyproxy to circumvent GFW) with my Ubuntu 16.04 I have a strange problem. I can access IPv6 ...
1
vote
1
answer
2k
views
How to achieve fast transfers over 10Gbe
I'm trying to transfer files over 10 gigabit ethernet. However the maximum speed I can achieve between 2 RAM-Disks (mounted on /mnt on each node) is around 200MB/s:
root@odin$ scp /mnt/largeFile marc@...
11
votes
5
answers
3k
views
Is there any SCP program available for Ubuntu that does not require SFTP on a remote host?
I need a program that can manage files on a remote device running Linux using SCP. The remote device runs OpenWrt. On Windows there is a perfect one WinSCP. it is weird that there is no native program ...
2
votes
1
answer
7k
views
Why does a .sh file's md5sum change when copying to another folder?
I have downloaded a sh file from a webpage. I want to copy it to another machine so I can install it there. The other machine is an imx6 tiny rex. I tried to copy/move/scp to my Ubuntu machine to the ...
0
votes
2
answers
4k
views
How to run scp command without password from ubuntu to centOS machine
I want to run scp command from my machine(Ubuntu_14) to my server (CentOS_6)
I have already generate a pair of authentication keys,
also append my public key to my servers .ssh/authorized_keys,
now I ...
0
votes
1
answer
4k
views
SCP from ssh remote machine to my local ubuntu machine
I am trying to scp some files from a remote machine to my local ubuntu 16.04 machine. However, I am getting error with the port and network. my machine name is trina and I am trying
$ scp -r ...
0
votes
1
answer
5k
views
scp creates undesired file permissions
I'm trying to copy files from a remote linux system (on which I am not the super user) to my own local system, using the scp command on Ubuntu 16.04 LTS.
scp remote_username@remote-host:/path-to-...
1
vote
3
answers
24k
views
Connection times out while using scp
I am trying to download a file from a computer that I have connected with using ssh. I type into the terminal
scp /path/to/file <name of my computer>@192.168.0.15:home/desktop
This file isn't ...
3
votes
0
answers
6k
views
scp from a remote server - Permission Denied
I am trying to copy a tar file from a remote server to the local machine. The command is
sshpass -p 'somepass' scp someuser@somedomain:/some/dir/some_file.tar.gz /local/dir
Syntactically, the ...
1
vote
2
answers
5k
views
How to copy files and rename on the fly when source filename contains embedded spaces
I am trying to copy and rename image files from one directory into another directory.
The files I want to copy have blank spaces embedded in their file names, and I want to replace part of the file ...
1
vote
3
answers
13k
views
Using SCP and nohup to transfer large folder between servers
I want to copy a ~50GB folder from one server to another. This is understandably going to take quite a while, so I'd like to be able to perform it "in the background". Using the standard SCP command ...
1
vote
1
answer
290
views
Error when attempting to copy files w/ scp
I'm connecting to an Ubuntu instance, running some Apache/JMeter tests, and attempting to use scp to grab the log files from said tests.
I connect w/ the following command:
ssh my-host.amazonaws.com ...
0
votes
1
answer
113
views
ssh connection between two distant computer
i try to transfer files between two distant ubuntu pc with scp. It works on a local network (using the wlan0 inet addr ip) but failed (connection refused on port 22) when the scp command comes from a ...
2
votes
0
answers
7k
views
SCP gives error: "Read-only file system" [closed]
Using Ubuntu 16.04, I am having an issue. When I try to transfer a file to a server that I've transferred to in the past (server is Ubuntu 14.04 server), I get an error that reads "Read-only file ...
2
votes
1
answer
4k
views
Rename Duplicate Files when using SCP (Secure Copy)
I'm using scp to move files between servers on my network as follows...
scp /folder/file user@<ip address>/User/Documents/Transfer
...however I don't want to overwrite duplicate files. Is ...
0
votes
1
answer
3k
views
scp Permission Denied
scp was working. After I added LetsEncrypt it wasn't.
Probably LetsEncrypt added new rsa key and i don't have it. If that's the problem how can i find it.
I'm Trying
scp ~/Downloads/filename ...
2
votes
0
answers
1k
views
problem with scp: cannot open shared object file
I am using Ubuntu 14.04. When I use scp command, I get this error:
scp: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory lost connection
By ...
1
vote
1
answer
135
views
File copy fails over Ubuntu Gateway using NAT
I have managed to successfully set up NAT on my Ubuntu 14.04.4 machine so that my computer acts as a gateway for a computer connected on the internal interface (eth0) to the external interface (eth1)....
7
votes
1
answer
38k
views
GUI SCP Client? [duplicate]
Is there a SCP Client like WinSCP just for Linux?
it has to support SCP and not SFTP as the other questions suggested
as the Server I have to connect to, only understands ssh and scp no sftp
its a ...
0
votes
1
answer
125
views
Auto-input help
My end goal is to create an alias for scp:
First, I need a way of inputting the remote users' password automatically for this to be a single input command. Security isn't a big deal with this, so I' ...
2
votes
2
answers
3k
views
scp command password problem
I am new to Ubuntu. I have two scaleway servers A and B. I need to transfer a file from A to B. I am using:
scp root@IP(A):/path/to/file root@IP(B):/path/of/destination
Upon executing the command it ...
0
votes
1
answer
749
views
command not found
I have compile my code in my local computer terminal and after that I run scp command to transfer the result of the compiling to the bin of the remote computer.
When I tried to run my code from the ...
0
votes
1
answer
157
views
Is `scp` for non sudo users executable?
Can non sudo users execute scp command while using two remote servers?
8
votes
1
answer
14k
views
Permitting scp but not ssh - without scponly
I'm migrating a Debian server to Ubuntu 16.04. One of the packages on the Debian server is scponly which acts as a shell and permits ssh connections for scp purposes only (not login or running ...
-1
votes
2
answers
2k
views
How do I use SCP with two different ports on each IP in script bash
How do I use scp with two different ports on each IP.
SSH LOCAL : IP=111.111.111.111 & port=22
I have a redirection ports on a router
EXAMPLE SCRIPT BASH:
for i in "${array[@]}"
array[1]=192....
2
votes
1
answer
11k
views
Copy file with scp command
Trying to copy a file from RPi to my PC:
$ scp MyFile.pdf [email protected]:~
ssh: connect to host 192.168.0.83 port 22: connection refused
lost connection
When copying the same file from my PC ...
9
votes
2
answers
25k
views
Escape username spaces in SCP
I've been playing around with SCP for a while, and I've been able to transfer files from one place to another.
It all worked nicely until I needed to copy a file from Ubuntu to a Windows user who had ...