View Single Post
Posts: 62 | Thanked: 18 times | Joined on Dec 2009 @ Missouri, USA
#276
Originally Posted by SaintGermain View Post
I just added "passphrase" to the regexp for making smscon compatible with 'public key authentication' (the password you provide in smscon_config will be processed as the passphrase to your private key):

Code:
(Output, ExitStatus) = pexpect.run( 'ssh -n -N -T -f -p %s -R %s:%s:%s %s@%s &' % (REMOTEPORT, LocalPort, LocalHost, REMOTEPORT, REMOTEUSER, REMOTEHOST), events = { '(?i)(password|passphrase)':REMOTEPASSWORD + '\n', '(?i)(yes/no) ?':'yes' + '\n' }, withexitstatus = True )
With that, I managed to make reverse-SSH works with public key authentication !
Does the above setup work with an empty passphrase?
I have set up the keys and I'm able to connect via ssh and open the tunnel from the command line as root in the N900, but smscon fails to establish the connection.


Update: I added a passphrase to my private key on the N900 and added it to smscon_config and it didn't work either. The ssh connection cannot be established with smscon but it is possible from the command line.

Any suggestions? The smscon -log output does not provide a lot of information.

More information: the remoteuser in my ssh server does not have shell access but it is able to forward ports.

Last edited by DojwqIO; 2010-09-26 at 04:10. Reason: Update