![]() |
Re: [Announce] OpenSSH status widget
Quote:
Did you try deleting it? |
Re: [Announce] OpenSSH status widget
1 Attachment(s)
Anyway, in the end it makes no difference who put the file there ;) .
Why not simply change read/write permissions to 666 if needed... and let the devil be in the detail. So I added a check for /home/user/nohup.out every time user logs into a server in the network - to make sure nohup can handle the file.... should do it. Ah, and I had forgotten to link this feature with the wifi pm setting "keep off: yes/no" - done now. If the fix and the feature work, I'll have to leave it at that. Time is eating me up a bit (even a bit more). Of course, reporting a bug is welcome at any time. v2.1.0 will be uploaded to Extras-devel if there are no more obstacles occurring. I think it can be promoted to Extras-testing. @xes ...please test the fix in v2.1.0-rc2. |
Re: [Announce] OpenSSH status widget
@rasmarc
thank you for looking into this feature and problem. Anyway, while your are partially right since the problem is not in fact with the sshd creating the nohup.out file, the real trouble is with the use of nohup in general. Now, every time you run "ssh HOST" your receive a message "..appending to nohup.out" and a file nohup.out will be created in the folder where you are. After some time this will result in a filesystem filled of nohup.out files leaved there in any folder where you were positioned while starting an ssh session. Then, if you are in the /home/user folder and as root you run "ssh HOST" you will leave there a nohup file owned by root. All this to explain why the nohup approach is not a good idea, especially if you don't use a temporary folder somewhere in /tmp to leave the output files. After this complaints ;) thank you for this applet, i think is very useful for who, like me spends his life over ssh. |
Re: [Announce] OpenSSH status widget
@xes Thank you very much, I was thinking nohup.out will always be put in the home directory. As it is now, it's almost a bug ;). I had a closer look at nohup... should have done before, and it seems to be a simple solution redirecting nohup.out to /dev/null, or is there any need for it?
Code:
nohup <command> >/dev/null 2>&1 |
Re: [Announce] OpenSSH status widget
1 Attachment(s)
No more nohup.out. Works without annoying output now?
|
Re: [Announce] OpenSSH status widget
v2.1-1 is in Extras-devel. If no one objects I'll promote it to Extras-testing.
Here's the changelog: * extended wifi pm feature to support client connections * removed all "nohup.out" messages on login * button "Connections" (when tracking is disabled) renamed to "Server connections" * option "Stop server when not connected" moved to section "OpenSSH Options" * bugfix: tracker subroutine could rarely fool wifi pm script * bugfix: reverse section order function messed up due to recent changes |
Re: [Announce] OpenSSH status widget
1 Attachment(s)
There's unexpected news:
While the latest version works well using wlan as it seems, using ssh over usb network makes it buggy and even worse unusable. The latter is due to a seeming bug in sshd regarding "ForceCommand". Login hangs. This means the wifi pm feature has to be rewritten using a different approach than using "ForceCommand" in sshd config in order to make the widget compatible with usb connections. After a search I found out how to count just wlan connections without gettings triggers from the users logging in. Apparently this is my friend now: "netstat -ant | grep :22.*ESTABLISHED", because he lets me count ips. In case you want to install the widget as it is and use ssh over usb you have to comment out "ForceCommand" in /etc/ssh/sshd_config. As a result the wifi pm feature can only be started manually using the wifi pm button. It will then be active as long as the last user logs out, including usb connections. Therefore a fix is attached (if it works as expected). After removing the suffix, making it executable and copying it into the folder "/usr/lib/openssh" wifi pm should switch back to "on" when the last wlan connection is closed (with a max. delay of 40 sec). |
Re: [Announce] OpenSSH status widget
I've already done something working (I want to say there's an alternative approach that works), but I'm trying to find a chance for OpenSSH to do a trigger on login/logout using PAM.. it doesn't work.
Can anybody tell me if this version of OpenSSH supports PAM? "ldd /usr/sbin/sshd" does not list any libpam. I was just reading about this for the first time and don't have a clear view at all. If PAM could be used for triggering there would be no more need for a tracking routine (consuming power and therefore has to remain simple). Is PAM support included in N900's OpenSSH version? :o:confused: |
Re: [Announce] OpenSSH status widget
Quote:
I am writing this shattered by the utterly cr*p news I read upon logging in. Win7Mac.... |
Re: [Announce] OpenSSH status widget
1 Attachment(s)
Changelog for v2.2.0:
* wifi pm feature partly rewritten for compatibility with usb connections * wifi pm feature partly rewritten to save all parameters in the config file * fixed bug in client related wifi pm - "user" couldn't tell sshIP at least sometimes * added option to show connections overview in the dialog window: server/clients, wlan/usb * changed from counting log-ins to counting established connections Changelog for v.2.2.3: * bugfix: when connecting just locally connections were not counted properly - third time lucky |
All times are GMT. The time now is 15:27. |
vBulletin® Version 3.8.8