impeham
|
2010-09-25
, 13:42
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#271
|
|
2010-09-25
, 14:09
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#272
|
Same for me. None of the commands trigger a reply (sms or email). The "test" works just fine for gps, call and picture...
Version: 0.4.4-6
Status: Daemon is running
Log: No incoming (received) sms commands are listed
Any ideas what this might be up to?
|
2010-09-25
, 14:35
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#273
|
|
2010-09-25
, 21:45
|
Posts: 6 |
Thanked: 1 time |
Joined on Jun 2010
@ Moscow, Russia
|
#274
|
|
2010-09-25
, 23:21
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#275
|
The Following 2 Users Say Thank You to Saturn For This Useful Post: | ||
|
2010-09-26
, 03:50
|
Posts: 62 |
Thanked: 18 times |
Joined on Dec 2009
@ Missouri, USA
|
#276
|
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):
With that, I managed to make reverse-SSH works with public key authentication !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 )
|
2010-09-26
, 04:19
|
Posts: 62 |
Thanked: 18 times |
Joined on Dec 2009
@ Missouri, USA
|
#277
|
@ DojwqIO:
COM_POWER show you the current battery charge percentage (returns SMS).
COM_TRACKON will continiously send the GPS coordinates with SMS or email to you.
The port can be adjusted in the smscon_daemon file (look at "LocalPort" under "variables")
Keyboard use is opening/closing the keyboard slider.
|
2010-09-26
, 10:12
|
Posts: 11 |
Thanked: 1 time |
Joined on Sep 2010
|
#278
|
Some questions to both to help debug this:
1. Did you change/rename the commands?
2. Did you check you didn't put any space after the command sms?
3. What is your default language.
4. do you see the sms you have sent to the messages and does it have more than just the command?
|
2010-09-26
, 22:19
|
Posts: 62 |
Thanked: 18 times |
Joined on Dec 2009
@ Missouri, USA
|
#279
|
smscon is not able to establish the reverse tunnel with public key authorization.
if StatusSSH() == False: if StatusRemoteHost() == False: logging.error('ssh ping failure to "%s". Will try connect anyway' % REMOTEHOST) StartSSH() return else: StartSSH() return else: logging.info('ssh connection is already active') return
|
2010-09-27
, 08:13
|
Posts: 200 |
Thanked: 300 times |
Joined on Nov 2009
@ The Netherlands
|
#280
|
OK, found out what was going on. When trying to make the ssh connection, smscon first pings the ssh server, and if there is no response, it does not even attempt to establish the connection. My server does not respond to pings and that's why I was able to ssh using the command line, but smscon was not working.
I changed the code in smscon_daemon to try to connect even after a failed ping:
and now smscon can establish the connection.Code:if StatusSSH() == False: if StatusRemoteHost() == False: logging.error('ssh ping failure to "%s". Will try connect anyway' % REMOTEHOST) StartSSH() return else: StartSSH() return else: logging.info('ssh connection is already active') return
Hope this helps.