enabling of ssh keepalives on the client side changed nothing important (except of keeping the ssh session alive). if i close the ssh session manually (kill, force close putty etc.), vlock stays alive and faillock locks my user account.
BUT... when i vlock the session manually (just by typing "vlock") i can force close my ssh-session and reconnect without problems (my user account is *not *locked by faillock). the difference is that i got a new pty (pts/1). a process of the old vlock process (for pts/0) still exists (ps -ef). is this an expected behaviour? at the moment i "autostart" tmux/vlock via .bashrc. i searched the web and found dozens of possibilities. i decided to add the following code to ~/.bashrc: if [ "$SSH_TTY" ] then '[ -n "$PS1" -a -z "$TMUX" ] && exec tmux' fi regards Sven Am Donnerstag, 20. Februar 2020 13:57:47 UTC+1 schrieb Nicholas Marriott: > > What if you enable ssh keep alives? Put this in .ssh/config: > > TCPKeepAlive yes > ServerAliveInterval 10 > > vlock should die on SIGHUP, I don't see it ignoring it in the code. > However, this can take a long time on a TCP connection. > > > On Thu, 20 Feb 2020 at 12:50, 'Sven' via tmux-users > <[email protected] <javascript:>> wrote: > > > > yes, it's still active after closing the ssh-connection. i need to open > a new ssh-session, login as root (because "user1" is locked), kill the > vlock-process and finally reset the faillock record of "user1". > > > > > > > > Am Donnerstag, 20. Februar 2020 11:37:43 UTC+1 schrieb Nicholas > Marriott: > >> > >> Did you close the terminal containing vlock? vlock should exit in this > >> case, if it doesn't it is a vlock bug. Can you see it still running? > >> > > -- > > You received this message because you are subscribed to the Google > Groups "tmux-users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] <javascript:>. > > To view this discussion on the web, visit > https://groups.google.com/d/msgid/tmux-users/257297e1-0ceb-4647-bbf5-9809fcfcdfad%40googlegroups.com. > > > -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/b661b91d-0804-4c24-8eb8-b82f4e62f9da%40googlegroups.com.
