0

I'm trying to upload some files onto a remote server but the command scp is not installed on my laptop. I'm working with Anaconda on a Windows 10 machine and the server is a Linux machine with Ubuntu 18.04.

To my intuition, I think it's easier to install scp directly with conda than to install it on Windows (I'm actually using Anaconda Prompt rather than Windows DOS), so following the instruction of Anaconda website I ran

conda install -c remram scp

after which I reran the scp command, only to find scp still not installed.

I have double-checked other dependent tools like ssh and also updated my conda, but nothing worked.

Is it even possible to use scp on a conda environment when there isn't an scp on my computer? If so, what's the correct thing to do to make it available? If not, can anyone share a reliable way to install scp on Windows system?

Jiang1926
  • 1
  • 1
  • 2
    question is a little unclear but, using conda install means you are downloading the scp python package not the command prompt command..if that helps – Derek Eden Jul 21 '19 at 04:23
  • I see... then is there any recommendations on how to install scp on Windows10 easily? Many thanks! – Jiang1926 Jul 21 '19 at 04:35
  • @Jiang1926 You can try installing WinSCP but it's not the same thing. You might also want to consider installing the Linux subsystem and then run things from there. – absolutelydevastated Jul 21 '19 at 05:41
  • either that ^ or just use the python pkg if you can, some instructions here: https://stackoverflow.com/questions/250283/how-to-scp-in-python – Derek Eden Jul 21 '19 at 06:04
  • i actually gave an example how to do this on a previously deleted question: https://stackoverflow.com/questions/56728602/how-to-send-a-file-to-a-pc-that-is-not-in-same-network-with-python/56728831#56728831 – Derek Eden Jul 21 '19 at 06:13
  • I tried using WinSCP and it worked for the time being. Thank you all~ – Jiang1926 Jul 22 '19 at 03:19
  • There's also `pscp`, which is Putty's SCP client ([see docs](https://the.earth.li/~sgtatham/putty/0.72/htmldoc/Chapter5.html#pscp)). It's on the `anaconda` channel (so `conda install -c anaconda pscp`), though it doesn't look like the Anaconda team cares about updating it. – merv Jul 23 '19 at 01:12

0 Answers0