Ask / Submit
21

Notification in Jolla for Remote Connections invoked

asked 2015-02-06 18:23:36 +0300

I have developer mode enabled and ssh remote connection is allowed with a password. I want to see a notification on my mobile when a remote connection is made from PC.

Agree it is secure connection through a password set by user but it good to be notified when there is a session running. I don't want to uncheck remote connection everytime

Of course it should be configurable like any other option. It will be good to see it as an option in System Setting > Developer mode. But even an app also should be fine.

Other ideas / suggestions welcome. Maybe a whitelist of certain trusted connections? Eg: My home PC

Please vote to show your interest. Thanks! :)

edit retag flag offensive close delete

Comments

So basically you'd want to have an icon on the lockscreen when someone's logged in? With a quick test, the shell command "users" returns empty if no ssh logins are active. (fingerterm seems not to count as user here)

What you could do, is to write a wrapper for that so that if (users > 0) it would light up the icon. problem here of course is that polling for the connected users would probably eat a noticeable portion of your battery capacity :)

juiceme ( 2015-02-06 20:55:16 +0300 )edit

Thanks for your thoughts. Will check it out. Discussed this over IRC and @coderus showed interest to develop an app.

anandrkris ( 2015-02-06 21:07:06 +0300 )edit

2 Answers

Sort by » oldest newest most voted
13

answered 2015-02-07 20:02:58 +0300

coderus gravatar image

Application for controlling incoming SSH connections: https://openrepos.net/content/coderus/ssh-access-confirmation

edit flag offensive delete publish link more

Comments

Thanks. Grateful for all your efforts! :)

anandrkris ( 2015-02-08 09:44:34 +0300 )edit

I wish they integrate this feature in Jolla.

anandrkris ( 2015-02-11 16:21:07 +0300 )edit

i very doubt so

coderus ( 2015-02-11 16:51:37 +0300 )edit
4

answered 2015-02-06 20:56:51 +0300

lakutalo gravatar image

updated 2015-02-23 23:31:51 +0300

For security reasons you could modify your sshd conf to accept connections only from one IP address as a first approach.

You could also create a key pair and accept only connections by this key, which can be secured with a passphrase for increased security.

If you thought of opening mobile network device for ssh connections you would rather be extra careful.

I would have to look up the exact parameters but you can also use tail + grep to listen for connection attempts. This could be used as a trigger for some notifications. It would require a bit research on my side to get more specific.

Hope this helps for further ideas, as a first approach again, until you find something more comfortable, which I am also in favour of.

edit flag offensive delete publish link more

Comments

Thanks for the ideas. I suppose I should generate key instead of a defined password. I will explore options. However, will be good to have a UI way :)

anandrkris ( 2015-02-06 21:19:43 +0300 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2015-02-06 18:23:36 +0300

Seen: 398 times

Last updated: Feb 23 '15