LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-28-2021, 01:38 AM   #1
andrewysk
Member
 
Registered: Mar 2020
Posts: 583

Rep: Reputation: Disabled
what can be done when remote ssh connection dropped and konsole become not responding ?


I am learning ssh on KDE to remote ssh server.
Question1:
while i was connected to remote ssh server, when i need to rush to leave home, i would just "suspend the local machine into ram" . Is it ok like this ? will the "hanging" connection give loop hole to some hacker ? or it will not, since it is ssh.. what is the proper procedure to disconnect remote ssh ? " quit " command ?

Question2:
After i woke up the local computer from ram suspend, the konsole will be not responding to anything... it will not try to reconnect.. the console just doing nothing.. i have to close the konsole windows and reopen another konsole window in order to start a new ssh connection.
What are the way to "reset" the hanging console apart from close the window and reopen window ?

Question3:
There is one case i encountered, the ssh still connected after woke from suspension, any idea how ? Why only 1 time it ever "still connected" while other cases, not ?

Thx
 
Old 07-28-2021, 01:45 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 5,767
Blog Entries: 3

Rep: Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991
1) You can usually disconnect the remote session by exiting the program. If it is the shell, type "exit". Or you use an escape sequence, "~.", to disconnect. See "man ssh" and scroll down to the section on escape characters.

2) More information is needed. Was there a program running prior to the suspend?

3) The timeout had not been exceeded. You can set ClientAliveCountMax and ClientAliveInterval in the SSH server's configuration file or you can set ServerAliveCountMax and ServerAliveInterval in the client's configuration file. See "man sshd_config" or "man ssh_config". The client's configuration file is usually ~/.ssh/config but you might have to create it yourself.
 
Old 07-28-2021, 02:47 PM   #3
andrewysk
Member
 
Registered: Mar 2020
Posts: 583

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
1) You can usually disconnect the remote session by exiting the program. If it is the shell, type "exit". Or you use an escape sequence, "~.", to disconnect. See "man ssh" and scroll down to the section on escape characters.

2) More information is needed. Was there a program running prior to the suspend?
The escape character and other escape characters are mostly not working.. however " ~? " this one work. lol.

No, there was no program running, only empty shell.
 
Old 07-28-2021, 02:51 PM   #4
andrewysk
Member
 
Registered: Mar 2020
Posts: 583

Original Poster
Rep: Reputation: Disabled
It is ok.. This is not something i really need an answer to.. if there is answer; i am grateful, if no also never mind.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Spectre and Meltdown: Explanation, Info, What's being done, What can be done Zyblin Linux - Security 7 02-17-2018 09:48 PM
[SOLVED] open Konsole after boot and login, run a command, keep Konsole open for use heronlin Linux - General 3 10-20-2014 03:01 AM
Shouldn't "Slackware64" Become just "Slackware" and 32-bit Become "Slackware32"? foodown Slackware 6 06-23-2009 01:24 PM
Konsole always give SuperUser Konsole - can't get regular shell checkmate3001 Linux - Desktop 3 08-05-2008 10:00 AM
Can I set ssh to change my konsole colours when I connect to a remote box? davee Linux - General 2 12-16-2004 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration