in reply to Re^6: sftp->do_write howto?
in thread sftp->do_write howto?
You're remote SSH server is *probably* not accepting cleartext password tunneling. In other words, its /etc/ssh/sshd_config is saying something like:
And that's what's causing (my) error when trying to use a username and password for authentication. When I changed it to yes, and restarted the remote SSH server, the scripts works, because debugging now said:PasswordAuthentication no
wolf: Sending request for user-authentication service. wolf: Service accepted: ssh-userauth. wolf: Trying empty user-authentication request. wolf: Authentication methods that can continue: publickey,password,keyboard-interactive.Where it used to be (with PasswordAuthentication no):
wolf: Sending request for user-authentication service. wolf: Service accepted: ssh-userauth. wolf: Trying empty user-authentication request. wolf: Authentication methods that can continue: publickey,keyboard-interactive.So the above debugging says that the remote SSH server only accepts ssh keys or a keyboard interactive password..
My advise is: create an ssh-key for the user that runs your script, and add the public key of that user to the authorized_keys file of your remote user. This is more secure than enabling clear text password tunneling ;-)
HTH
to ask a question is a moment of shame
to remain ignorant is a lifelong shame
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: sftp->do_write howto?
by chrism01 (Friar) on Sep 30, 2005 at 02:08 UTC | |
by insaniac (Friar) on Sep 30, 2005 at 09:04 UTC |