ropensci / ssh

Native SSH client in R based on libssh
https://docs.ropensci.org/ssh
Other
127 stars 21 forks source link

R Windows 3.5.3 ssh_connect 0.5 fails #26

Closed conq2230 closed 5 years ago

conq2230 commented 5 years ago

R Windows 3.5.3 (64Bit) ssh_connect 0.5 fails automated -- password passed via askpass earlier in program and works with Rcurl ftpUpload -- fails in ssh. Works interactively if passwd not provided in connect string. Works in 0.4 version. Issue found with new user install with the 0.5 version.

Code snippet with sever name masked:

library('askpass') userid=askpass('Enter userid for #####:') passw=askpass('Enter password for #####:')

session <- ssh_connect(paste(userid,"@#####.company.com",sep=''),passwd=passw) print(session) out <- ssh_exec_wait(session, command = cmd) print(out) ssh_disconnect(session)

jeroen commented 5 years ago

Sorry I think there was indeed a bug. It should be fixed now in the devel version:

remotes::install_github("ropensci/ssh")

Note that you can also work around the problem simply by not setting the passwd argument. In this case R will automatically prompt for the password when needed.

conq2230 commented 5 years ago

Wow, that was fast. Didn't have time to send you the email with verbose=4. I'll just use 0.4 until the next release.

On Wed, Apr 3, 2019 at 5:25 PM Jeroen Ooms notifications@github.com wrote:

Closed #26 https://github.com/ropensci/ssh/issues/26 via 6b5b321 https://github.com/ropensci/ssh/commit/6b5b321ff1c41b3e1fcf34eec2f1b527164abd5b .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ropensci/ssh/issues/26#event-2251287321, or mute the thread https://github.com/notifications/unsubscribe-auth/Au98R7KXKk1SUDEqXTtk9kavLaD3jiOlks5vdSplgaJpZM4cbJHY .

jeroen commented 5 years ago

The fix has been released on cran in ssh 0.6.

conq2230 commented 5 years ago

Thanks. I installed 0.6 and works perfectly!

On Thu, Apr 11, 2019, 9:32 AM Jeroen Ooms notifications@github.com wrote:

The fix has been released on cran in ssh 0.6.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ropensci/ssh/issues/26#issuecomment-482139218, or mute the thread https://github.com/notifications/unsubscribe-auth/Au98Rxoomk7zXxVuGvMrrpHyfyXnh7yRks5vf0dmgaJpZM4cbJHY .