LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-26-2016, 07:36 AM   #1
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 89

Rep: Reputation: Disabled
Debian SSH - Cannot close remote host.


Hello All

I'm trying Debian 8.2.0 in VirtualBox/KVM and I cannot exit from ssh session. While every other linux distros logout successfully, only Debian fails. I'm new to this distro, and I have installed this from net-install iso with no gui (and minimal).

Reproducing this problem:
  1. Start debian 8.2.0 guest in Virtualbox/KVM.
  2. From host's terminal, ssh to guest.
  3. Now shutdown the guest (within ssh).
  4. Guest is shutdown (you can see it in VirtualBox/KVM), but ssh is struck and wont give back command prompt.
  5. Have to break ssh session by ~. every-time to get back host's command prompt.

This happens only to Debian 8.2.0, not for other linux distros.

Any help would be much appreciated. Thanks.
 
Old 01-26-2016, 01:25 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i have the same behavior with a real debian box, but i don't consider it a problem.
simply close the terminal/shell?
what is the host system?
what shell/terminal are you using to ssh into the guest?
have you tried ctrl+c or ctr+d (i don't know what "~." is)?
 
Old 01-26-2016, 01:34 PM   #3
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 89

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
what is the host system?
Fedora 23 (Workstation Edition)

Quote:
what shell/terminal are you using to ssh into the guest?
GNU bash, version 4.3.42(1)-release (x86_64-redhat-linux-gnu)

Quote:
have you tried ctrl+c or ctr+d (i don't know what "~." is)?
Yes. SSH Escape Sequences

Thanks
 
Old 01-26-2016, 01:44 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by mangya View Post
GNU bash, version 4.3.42(1)-release (x86_64-redhat-linux-gnu)
so, is it a terminal emulator from a graphical desktop?
what is wrong with just closing the window/tab?

edit:
to me, it just feels logical and normal that an ssh session freezes when you shut down the machine ssh'd into. not elegant, maybe (and maybe ssh documentation offers asolution?) - but ok.

Last edited by ondoho; 01-26-2016 at 01:46 PM.
 
1 members found this post helpful.
Old 01-26-2016, 02:35 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Some of my machines do this, some don't, I pay no attention to it. As ondoho mentioned, it seems perfectly reasonable to me for the session to hang when the remote host is shut down.
 
1 members found this post helpful.
Old 01-26-2016, 02:56 PM   #6
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 89

Original Poster
Rep: Reputation: Disabled
I was thinking there could be a problem with ssh server in Debian. But if its a common problem, then no worries.

Thanks ondoho and suicidaleggroll.

Last edited by mangya; 01-26-2016 at 02:59 PM.
 
  


Reply



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
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 35 10-23-2017 12:21 AM
[SOLVED] SSH to remote host sn0rcha Linux - Newbie 3 05-13-2013 04:52 AM
Fedora 10/unable to ssh out from box to remote host (SSH within LAN ok) huskeypm Linux - Networking 3 04-14-2009 07:37 PM
Dns Error: Connection to the remote host close mosharaf_linux Linux - Server 3 12-24-2008 05:34 AM

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

All times are GMT -5. The time now is 11:33 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