Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
Start debian 8.2.0 guest in Virtualbox/KVM.
From host's terminal, ssh to guest.
Now shutdown the guest (within ssh).
Guest is shutdown (you can see it in VirtualBox/KVM), but ssh is struck and wont give back command prompt.
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.
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)?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.