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?
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 alsoURL
in the docs. $\endgroup$URL[..]
that doesn't generate an error when attempting to useCopyFIle
. $\endgroup$