Saturn
|
2010-09-18
, 23:18
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#211
|
|
2010-09-18
, 23:32
|
|
Posts: 67 |
Thanked: 7 times |
Joined on Mar 2010
@ Bahamas
|
#212
|
|
2010-09-19
, 00:34
|
Posts: 35 |
Thanked: 20 times |
Joined on Dec 2009
|
#213
|
this is more a question for the guy enquiring whether it could use pub key than it is for you as the app developer - i just don't see why he'd need YOU to support pub key, as I think it will already be inherently supported by ssh itself as long as you config your phone & home ssh servers correctly? ... but I may have misunderstood (are you maybe calling ssh via a software library rather than as a straight shell coomand? If so, I guess that may allow you to force p/w auth only?)
|
2010-09-19
, 03:37
|
Posts: 120 |
Thanked: 13 times |
Joined on May 2010
@ turkey
|
#214
|
|
2010-09-19
, 06:37
|
Posts: 200 |
Thanked: 300 times |
Joined on Nov 2009
@ The Netherlands
|
#215
|
(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':REMOTEPASSWORD + '\n', '(?i)(yes/no) ?':'yes' + '\n' }, withexitstatus = True )
|
2010-09-19
, 07:02
|
Posts: 200 |
Thanked: 300 times |
Joined on Nov 2009
@ The Netherlands
|
#216
|
If you want to improve SMScon, a few feature requests:
1) settable (GUI) password to all SMS commands. Can be, and is initially empty.
I know, as previously discussed, one can now change all commands and for example put "mypassword_" prefix to every command, but when if SMS commands are added in the future, it would be nice just to be able to change this password in one field and not in every N fields.
2) SirenOn and SirenOff SMS commands. When got, the phone will set volume to the max and play preconfigured audio file over and over. Optionally could have a parameter which would set the audio volume 1 - 10.
3) All SMS commands which give reply to email/phone-number/*, could have an optional parameter where the result is to be sent.
For example:
<password> Location mynewemail@foo.bar.invalid
<password> Location +3101234567
This can be usefull for example if you are abroad and your phone is stolen. You may not be able to get into your emai account, neither the phone number in the settings is useful for some reason. If you buy a prepaid SIM-card and a cheap phone, or lend one, you can control your stolen phone immediately.
The different type of parameters can be easily recognized by their syntax: "starting with +" means phone number, having "*@*" means email address, having "*@*:*" means username+host+portnumber.
For these parameters the feature request 1), the settable password, is a MUST, for obvious reasons. Initially when SMScon is installed and password is not set, feature 3) should be disabled.
Other example of having a parameter:
<password> RemoteOn newuser@some.host.invalid:2222
<password> TrackOn mynewemail@foo.bar.invalid
Later, if those would be implemented, also SMTP-server, a port number and a password could follow the email-type-parameter.
<password> TrackOn mynewemail@foo.bar.invalid smtp.netcafe.invalid 25 passwordForNetcafeSMTP
Also why not having ...
<password> netuser/password@some.host.invalid:2222
...type of parameters for RemoteOn, so the password is there also.
Without parameters in the SMS message SMScon would work as it now works, according the settings in the init-file.
|
2010-09-19
, 10:22
|
|
Posts: 1,648 |
Thanked: 2,122 times |
Joined on Mar 2007
@ UNKLE's Never Never Land
|
#217
|
smscon -init
|
2010-09-19
, 10:59
|
Posts: 62 |
Thanked: 6 times |
Joined on Jun 2010
@ Poland
|
#218
|
|
2010-09-19
, 11:06
|
Posts: 29 |
Thanked: 4 times |
Joined on Apr 2010
|
#219
|
|
2010-09-19
, 11:18
|
Posts: 62 |
Thanked: 6 times |
Joined on Jun 2010
@ Poland
|
#220
|