don't show the yes/no question as the host

git-svn-id: https://kippo.googlecode.com/svn/trunk@82 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster 2009-11-26 15:36:48 +00:00
parent 76876dd2c2
commit 1508f60838
1 changed files with 1 additions and 2 deletions

View File

@ -43,10 +43,9 @@ class command_ssh(HoneyPotCommand):
self.callbacks = [self.yesno, self.wait] self.callbacks = [self.yesno, self.wait]
def yesno(self, line): def yesno(self, line):
host = line.strip()
self.writeln( self.writeln(
'Warning: Permanently added \'%s\' (RSA) to the list of known hosts.' % \ 'Warning: Permanently added \'%s\' (RSA) to the list of known hosts.' % \
host) self.host)
self.write('%s@%s\'s password: ' % (self.user, self.host)) self.write('%s@%s\'s password: ' % (self.user, self.host))
self.honeypot.password_input = True self.honeypot.password_input = True