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
1 answer
242 views

Is transfer speed for transfers on local network affected by distance between computers?

I am currently doing a big scp transfer between two computers on my local Wi-Fi network (approx. 80 GB). I am transferring from a laptop running Linux to a stationary iMac. Where should I physically ...
0 votes
1 answer
233 views

How to use 'scp' to directly send my file to the target location via a gateway?

In my Linux computer, usually I login into the target location by SSH: First, SSH to gateway [email protected], then, SSH to the target location [email protected] However, I cannot directly transmit ...
1 vote
1 answer
732 views

Diagnose a network slowdown when scp and rsync locally

I have a headless ubuntu box sitting in a closet that serves as my local media server. The process I've always used to get media onto it is to download media onto my OSX laptop, then scp the file ...
2 votes
3 answers
233 views

How to copy id_dsa.pub

I am trying to create a backup server for hundreds (500+) of cloud servers that all use iptables which limit ssh connections to our companies IP's only. All the backups would go to one central cloud "...
2 votes
1 answer
2k views

SCP Through Intermediate Host

I've tried researching my options, but, nothing works quite the way I need it to. Most helpful information is found here: scp files via intermediate host I have the following setup: I'm on Machine A. ...
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
2 answers
1k views

Poor SCP performance

I have dedicated server with gigabit internet access running debian. At home I have retina iMac with gigabit internet access. I'm trying to copy lots of data via scp and rsync. The problem is, that I'...
2 votes
1 answer
4k views

"stdin: is not a tty" message from scp

I got this message when I copy file using scp to CentOS server "stdin: is not a tty". What it means and how I make it go away? The transfer is ok.
4 votes
2 answers
2k views

scp and line break in a shell script

I have an .sh file, containing a command, which copies a file from remote server to a particular directory, preserving original filename, and the second line is just a comment: scp (host):~/filename....
1 vote
0 answers
156 views

How does SFTP transfer files when SCP cannot? [duplicate]

While at work, I am restricted from using scp to copy files from a remote server to my machine and when I try, the operation always times out. However, when using an FTP client that supportssftp, the ...
4 votes
2 answers
41k views

How do I SCP from remote machine to local machine?

I know there are some similar questions has been asked here and I did read them... however, I still can not copy a file from a remote machine down to my local computer... I am keep getting error like "...
12 votes
6 answers
14k views

OSX SSH rsync - Keep remote directory up to date

I come primarily from a Windows background, migrating over to Mac. I've used WinSCP and loved a featured called "Keep Remote Directory Up To Date". Here's the question: is there an equivalent SCP ...
1 vote
1 answer
1k views

Copying file to server via ssh and the scp command

On my home computer, I have a file /Users/Me/Downloads/something.tar.gz which I would like to copy via SSH in /home/me/Matlab on the server of my university. I have tried to do this by scp /...
0 votes
1 answer
238 views

Pipe output of c program on remote machine to local machine

I am running a c program on an ec2 instance (ubuntu). I want to capture the output of that c program and save it to an excel file on my local machine. I have already tried what is listed here How do ...
12 votes
4 answers
24k views

How can I resume a large scp file transfer when using port forwarding?

I have a machine a couple of hops away, and I need to set up port forwarding in order to transfer files. Edit: To be clear, the multiple hops are needed in order to access the remote machine. From ...
3 votes
2 answers
13k views

scp and decompress file at the same time without saving it

I have been looking for an answer but nothing I have found has worked. There's a tar file that will be on a cd on a different server that I need to transfer over to my server and decompress it all at ...
1 vote
0 answers
140 views

Misconfigured shell on remote host

I installed the fish shell on a remote host through ssh. I later set it to my default shell through: sudo chsh -s /bin/fish After logging out when I later tried to log back into the remote host I ...
0 votes
2 answers
2k views

Copy files from Solaris to redhat via SCP command run on RedHat console

I have to copy several GB of little files (from few bytes to < 1MB). These files resides on a file system of a Solaris system. No rsync and rdiff software is available on Solaris and cannot be ...
3 votes
2 answers
2k views

Can i scp to an sftp-only server with RHEL5?

I have a RHEL5 box with sftp access to a central server. No ssh, not anything else but sftp. SFTP is nice, but it's interactive. I've heard of scp variants that use sftp protocol under the hood, ...
0 votes
0 answers
582 views

set up identity file but still can't ssh without environment variables

I am trying to set up a scp job on crontab and am testing that ability through the console. The crontab doesn't import environment variables, so I'm testing this through env -i, but also importing the ...
3 votes
2 answers
4k views

How is WinSCP able to provide a sudo user for executing scp?

The tool WinSCP is able to perform a sudo on the remote machine to perform the scp as the sudo user. That leads me to think that this must be possible with the command-line version of scp as well. ...
1 vote
1 answer
3k views

cannot trasnfer files from host to virtual machine using scp

This refers to my previous question .. How to SSH to s virtual machine from s Linux host? i could login but when i trasnfer files using scp it does not work. scp -p 2222 temp.sql user@localhost:...
0 votes
0 answers
285 views

iMX6 secured copy scp command fail

I am running embedded Linux on and iMX6 board. I would like to be able to put a file into my system with command 'scp'. I have Ubuntu running in a virtual machine in a desktop that has said files. ...
3 votes
2 answers
135 views

High speedtest on two different networks but different actual download speed

I'm having an issue where, from home with Comcast, I can download a file from my company's rackspace server at about 8 MB/s (what scp shows) and my speed test (fast.com) shows 80 Mbps. However at our ...
2 votes
2 answers
3k views

how to download a stream using ssh?

on a remote machine i want to launch a command that slowly produces a big stream (stream compression) and in the same time start downloading that stream. i don't want to first save the stream in a ...
1 vote
1 answer
2k views

Why can't I copy a folder from remote server to local with this command?

I'm logged into my remote server as root, I want to copy a folder to my local machine. What is wrong with my code below please ? scp -r myfolder 12.34.56.789/c/copyofmyfolder 12.34.56.789 is my ...
2 votes
1 answer
11k views

How do I transfer files from Linux to Windows server via the command line?

How do I transfer files from Linux to Windows server via the command line? No WinSCP No FileZilla No other similar tools... When trying to run this command: scp /home/user/testsite.html 001108@...
0 votes
2 answers
47 views

Copy contents of a folder form a remote machine

I have a machine which I can SSH into, but the logs I need are all compressed separately in a folder. (/path/to/folder/log_folder/{log1.gz, log2.gz, log3.gz, log4.gz, ...}) My problem is: I don't ...
0 votes
1 answer
2k views

OSX scp without -c <cipher>, default cipher

I was wondering what the default cipher was for scp, if there's any. Do I have to explicitly specify a cipher or there's a default? I could not find this in its man, nor on the internet.
0 votes
1 answer
82 views

Secure recursive copy from machine on different network to local machine running Cygwin

If I ssh from Cygwin into another machine that is on a different network, how do I conduct a recursive copy to my machine?
15 votes
2 answers
16k views

Why does rsync over SSH give me 10x the throughput of SCP?

scp user@aws-ec2:~/file file rsync --partial --progress -Pav -e ssh user@aws-ec2:~/file file scp only gives me 200K/s, but rsync gives me 1.9M/s I tested several times, all same results. rsync ...
3 votes
1 answer
5k views

scp "no such file" when the file exists?

I'm trying to copy a folder from my local computer to a remote server, but it only seems to be catching half of the files within the folder. Here's my scp command: scp read_tree [email protected]....
2 votes
3 answers
3k views

File synchronization on Linux over network: scp or rsync?

I have two Linux (Debian) machines "A" and "B" connected to each other wireless over the router. On the machine "A" I run a script that generates every 5 seconds a new 1MB file in the specific ...
0 votes
1 answer
558 views

Connect server to internet over local machine

Ive got access to a server over ssh to run some experiments and need to download some packages over the internet to perform these. Unfortunately, the server has no connection to the internet, or ...
2 votes
1 answer
2k views

Using GNU Parallel to scp huge file splitting it by chunk per host

I'm using Ansible to set up some configuration on several nodes, and as part of this setup I need to split one big file by n lines and copy each part to a remote file without creating local copy of ...
0 votes
1 answer
358 views

How to be made secure copying between remote machines on different ports by local machine

I have a cluster with 4 machines. One of them is cluster manager. When cluster manager start a backup, each slave cluster creates cluster backup files in it's own file system. After cluster manager ...
0 votes
1 answer
3k views

Access Denied using SCP; SSH is working

I am trying to SCP from an ec2 instance to my laptop, ssh is working. scp -2 ~/Downloads/NTLLSMON_TEST.pem [email protected]: /mnt/UAV_Images_Leith/...
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 ...
2 votes
1 answer
1k views

Linux ssh/terminal program with built-in file browser [closed]

I've moved back to using Linux after a stint on Windows. While there, I had discovered and heavily used MobaXterm for ssh (and the occasional X session). The standout feature for me was that when ...
0 votes
0 answers
1k views

scp from remote to local, where is my file?

I'm copying (or at least trying) a file from a remote server to my local pc (Windows) using the following command: scp user@host:/usr/filename.txt / It copies the file, but I have no idea where it ...
-1 votes
1 answer
294 views

Linux - Copy a folder including the subfolders, BUT don't copy any file that is over 5MB

I'm managing 2 linux servers and looking to copy the data from one to the other. I'm looking to just copy these files on one server first then zip it and then scp it over. I need to copy a 100GB ...
0 votes
3 answers
2k views

scp copy all files in a directory with some exeptions

I want to remote copy a directory (multiple actually but this is a simple example), but I want it to NOT copy any .dat files that it find the there. I am currently using: scp -r remotemachine:/...
8 votes
1 answer
10k views

Copying a large number of files from a remote device without creating an archive

Normally, if I wanted to copy files from a remote machine I would do scp [email protected]:/folder/* . However, in this case there are so many files that get I the error bash: /usr/bin/scp: ...
0 votes
0 answers
682 views

Transfer file to Windows Server 2008 R2

In a LAN, I have a Windows Server 2008 R2 machine; access to server through Remote Desktop is granted both 1) from a LAN host 2) from the internet, thanks to a virtual server configured in the ...
2 votes
1 answer
1k views

Write file from remote server to local directory?

I want to do some grep-magic to a logfile on a remote server and write the result to a local file on my computer. Is there an easier way than my 3 step solution: do grep-magic and write file on ...
1 vote
1 answer
47 views

Trying to get pip onto UnixWare

I have an installation of UnixWare 7.1.4 for which I'd like to add (python's) pip. I know that get-pip.py is at https://bootstrap.pypa.io/get-pip.py My problem is that the only tools I have to get ...
1 vote
0 answers
567 views

rsync/scp without root password and without allowing root ssh login

This is the scenario. We have a multitude of servers, currently we simply ssh in as root using our keyfile and then when we need to rsync we use the root user. All very easy. What we would like to ...
3 votes
4 answers
2k views

scp files between hosts through intermediate

I have access to 3 machines, A, B, and C. The only possible (ssh) connections are: A -> B A -> C I need to get files from B to C, I can only scp the files from A to B (on A: scp remote local), and ...
1 vote
1 answer
572 views

Reauthentication behavior of SCP with curly braces

I have the following files on a server: A_Hello.txt B_Hello.txt C_Hello.txt A_World.txt B_World.txt C_World.txt A_SU.txt B_SU.txt C_SU.txt A_IDONTWANTTHISFILE.txt If I try to download the desired ...
43 votes
6 answers
39k views

Is it possible to SCP from a remote to local whilst logged into the remote and without knowing the local's IP address?

I regularly find myself wanting to copy a file from remote terminal session to my local machine. Usually I log out of the remote session and call an scp transfer from local to copy the file from ...

1
7 8
9
10 11
15