Score:1

Dangling ssh sessions when my laptop goes to sleep

be flag

When I get up from my laptop (a Mac with MacOS Big Sur) for long enough that it "goes to sleep", my interactive sessions with ssh servers are broken. That is annoying but I could live with it. What is worse, though, is that the server side forked sshd processes seem to stick around forever, with the socket in the ESTABLISHED state. I really don't understand why -- I have set up both TCP keep alives and ssh protocol keep alives to fairly aggressive values with should expire shortly after the client goes Zzz. And they stay around even when shut down the laptop; I'll find them when I log in the next day.

So every time I log in, I have to go through a routine of pgrep -u me sshd and kill -9 all of them except the current. It gets old. Can you give me a clue?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.