2
$\begingroup$

If I have a file at address /path/to/file with SSH address 192.168.0.11, username user and password password, then how can I do something like

a = RemoteFile["192.168.0.11:/path/to/file",
 Authentication -> <|"Username" -> "user", "Password" -> "password"|>]

CopyFile[a, CloudObject["file"]]

? This evaluates to $Failed on my machine. I suspect the way I'm entering the SSH path is wrong?

$\endgroup$
  • $\begingroup$ The first argument to RemoteFile should be a URI, and yours is not. For instance, here is an example from the docs: "sftp://host.example.com/tmp/test.m". See also URL in the docs. $\endgroup$ – MarcoB Jan 8 '20 at 23:31
  • 1
    $\begingroup$ MarcoB: Thanks for the lead. I've tried different combinations from the doc, but so far have been unable to convert my SSH path to an acceptalbe URL[..] that doesn't generate an error when attempting to use CopyFIle. $\endgroup$ – George Jan 9 '20 at 0:13

Browse other questions tagged or ask your own question.