3

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?

George
  • 3,145
  • 7
  • 21
  • 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. – MarcoB Jan 08 '20 at 23:31
  • 1
    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. – George Jan 09 '20 at 00:13

0 Answers0