Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#4925 defect closed invalid (invalid)

Conch, SFTP on OSX

Reported by: rymurr Owned by:
Priority: normal Milestone:
Component: conch Keywords:
Cc: z3p Branch:
Author: Launchpad Bug:

Description

The attached code is meant to send a file to a remote server. I have subclassed SSHUserAuthClient to not ask for a password on the command line but instead take a string. On Linux this script runs to completion but on OSX it asks for a password on the command line. I have checked the following:

  • The getPublicKey method from my subclass is called
  • The getPassword method from the superclass is NOT called either

I have no idea from where the 'password:' prompt is originating on OSX nor how to track it down. I am on OSX Snow Leopard and have tried both Twisted 10.2 and 10.1 on Python 2.7

Attachments (1)

twisted_test4.py (2.4 KB) - added by rymurr 4 years ago.
script showing the problem

Download all attachments as: .zip

Change History (4)

comment:1 Changed 4 years ago by DefaultCC Plugin

  • Cc z3p added

Changed 4 years ago by rymurr

script showing the problem

comment:2 follow-up: Changed 4 years ago by exarkun

  • Resolution set to invalid
  • Status changed from new to closed

This is just keyboard-interactive triggering. You need to override getGenericAnswers to handle this one. The base implementation being inherited and used in the attached example prompts on /dev/tty.

comment:3 in reply to: ↑ 2 Changed 4 years ago by glyph

Replying to exarkun:

This is just keyboard-interactive triggering. You need to override getGenericAnswers to handle this one. The base implementation being inherited and used in the attached example prompts on /dev/tty.

Is there a related doc bug here, maybe? This explanation makes sense to me, but I'm not sure I could have figured it out without some help.

Note: See TracTickets for help on using tickets.