Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No matching method found: put for class com.jcraft.jsch.ChannelSftp #38

Open
cedw93 opened this issue Sep 17, 2015 · 1 comment
Open

Comments

@cedw93
Copy link

cedw93 commented Sep 17, 2015

Hey this is my first time using this library, ive heard pretty good things about it.

I am trying to execute the following command:

(sftp "host" :put file "/" :username "user" :password "password" :port port_no)

but the following error gets thrown:

No matching method found: put for class com.jcraft.jsch.ChannelSftp

if i manually execute sftp from the command line and type the password all works as expected, however I can't figure out why this isn't working.

I am using version 0.5.11 hopefully its something trivial.

@mgaare
Copy link

mgaare commented May 13, 2019

Realizing this is quite an old issue, but I encountered this as well so thought I'd leave an answer here so it's recorded. Probably what's going on above is that file is a java.io.File object. The sftp put call is looking for a string filename, not a File object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants