Using SCP function from Rcurl in R
问题 I have tested my SSH authentication using PuTTY with success, which I mean I can ssh to remote server using the private key provided. However, I am trying to use SCP function from Rcurl package in R, I got the error message saying: Error in function (type, msg, asError = TRUE) : Authentication failure Here is my code r <- scp(host='eee.com', path = "/aaa/bbb/test.sas7bdat", keypasswd = NA, user = "yyyyyy", rsa = TRUE, key = "C:/Users/.ssh/authorized_keys", binary = NA) C:/Users/.ssh