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

a = RemoteFile["",
 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?

  • $\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, 2020 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, 2020 at 0:13


Browse other questions tagged or ask your own question.