maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [M5] [Announce] OpenSSH status widget (https://talk.maemo.org/showthread.php?t=95429)

xes 2016-12-02 08:37

Re: [Announce] OpenSSH status widget
 
Thank you, nice improvements!

..While you are at it, ;) why not add an autostart (if not active) for some kind of connectivity or profile?
example:
autostart sshd when:
[ ] usb pc suite mode
- wifi profile:
[x] wifi_home
[ ] wifi_job

Then, another interesting feature would be the automatic switch of the wifi power management also for an outgoing ssh session.

Hey, weren't you that asked some ideas? :)

rasmarc 2016-12-02 16:52

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by xes (Post 1519810)
Then, another interesting feature would be the automatic switch of the wifi power management also for an outgoing ssh session.

Is this just an idea or are there in fact the same input lags for client connections (that's what is meant by outgoing ssh session?) as for server connections? I just installed the client and connected to my Linux Mint, but there didn't seem to appear those input lags?

If indeed needed, I'll add this.

xes 2016-12-02 19:32

Re: [Announce] OpenSSH status widget
 
@rasmarc

yes, the latency is the same also for an ssh client session since it is due to the lower power state of the wifi driver, just like it happens in any platform.
You can easily check the latency difference with a simple ping.
ping with power save to local ip =40-50 ms
ping without power save to local ip =3 ms

rasmarc 2016-12-03 03:58

Re: [Announce] OpenSSH status widget
 
1 Attachment(s)
I've done the following:

The wifi pm feature now includes client connections. There is no option for it. As for wifi pm client connections are handled in the same way as server connections are.

v2.0-1 of yesterday still isn't listed in Extras-devel. I will wait uploading the current version 2.1-0. If you download v2.1-0rc1 from here and install it with HAM, the new dependency on package "openssh" can't be resolved due to local installation. If need be the package "openssh" has to be installed manually.

Changelog for v2.1-0rc1:
* Extended wifi pm feature to support client connections
* Option "Stop server when not connected" moved to section "OpenSSH Options"

rasmarc 2016-12-03 04:28

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by handaxe (Post 1519797)
Great stuff, much appreciated - really!

HA

Thank you. It's simply more fun using openssh. :)

xes 2016-12-03 13:47

Re: [Announce] OpenSSH status widget
 
Thank you for the update.
Sadly, it seems that it can't detect the ssh client session since the wifi power status remains unchanged.

rasmarc 2016-12-03 14:22

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by xes (Post 1519899)
Thank you for the update.
Sadly, it seems that it can't detect the ssh client session since the wifi power status remains unchanged.

Hmmm, on my device I check wifi pm with
Code:

sudo iwconfig
It says "on". Then, after doing
Code:

ssh USERNAME@NETWORK-IP
it says "off".

If you don't mind, you could check several things:

In /etc/ssh/ssh_config is there an entry saying:
Code:

PermitLocalCommand yes
localCommand /usr/lib/openssh/session_client

Does /usr/lib/openssh/session_client exist?

In /usr/lib/openssh/wifi-power-management does line 22 contain
Code:

grep ssh
or
Code:

grep sshd:
?

With an active client connection and no server connections what does
Code:

ps | grep wifi
say? Is /usr/lib/openssh/wifi-power-management running?

xes 2016-12-03 21:10

Re: [Announce] OpenSSH status widget
 
@rasmarc
the problem is due to the write permission/owner of /home/user/nohup.

rasmarc 2016-12-03 21:51

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by xes (Post 1519947)
@rasmarc
the problem is due to the write permission/owner of /home/user/nohup.

You mean /home/user/nohup.out ? What's wrong with that? What makes you think there's a problem with nohup?

Who has write permission and is the owner of /home/user/hohup.out on your device?

Just delete it and try again...?

xes 2016-12-03 22:07

Re: [Announce] OpenSSH status widget
 
..if triggered by the sshd daemon the nohup.out is owned by root, then when an ssh client sessions tries to created the same nohup.out it can't exec the command since the file is still there and owned by root.

Generally talking, place in the home folder a nohup.out file is not a good choice. It would be better to move it in some temporary folder.


All times are GMT. The time now is 15:27.

vBulletin® Version 3.8.8