Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Can not login because of permanent restart

  1. #1
    Join Date
    Nov 2009
    Beans
    7

    Question Can not login because of permanent restart

    I have virtual server using VirtualBox on Ubuntu 10.04 with two virtual servers, both Ubuntu 10.04. From this day I can not login to one virtual server.

    When I try to login using ssh, I am disconnected with message: "The system is going down for reboot in 1 minute!" But the system never goes down and when I restart everything, it do not help. Everything on the virtual server is running fine, but I can not access it, install new applications and so on.

    I tried to restart both virtual machine and the server virtual machine is running on. No effect.

    Any ideas how to login to permanently restarting virtual server? Maybe use something else then ssh?

    Thanks for any advice, google does not help with this problem.
    Last edited by drakes; August 23rd, 2013 at 07:30 AM. Reason: added what I tried

  2. #2

    Re: Can not login because of permanent restart

    have you restarted the VirtualBox appliance since this started happening?
    Any affect if you did?
    Windows assumes the user is an idiot.
    Linux demands proof.

  3. #3
    Join Date
    Nov 2009
    Beans
    7

    Re: Can not login because of permanent restart

    Quote Originally Posted by Habitual View Post
    have you restarted the VirtualBox appliance since this started happening?
    Any affect if you did?
    Yes, I tried to restart both virtual machine and the server virtual machine is running on. No effect.

  4. #4

    Re: Can not login because of permanent restart

    Have you tried ssh as another user?
    What ssh user are you getting this message with?

    What I'm really asking is "are you ssh'ing in as root or not?"
    Windows assumes the user is an idiot.
    Linux demands proof.

  5. #5
    Join Date
    Nov 2009
    Beans
    7

    Re: Can not login because of permanent restart

    Quote Originally Posted by Habitual View Post
    Have you tried ssh as another user?
    No, I have access for only one user.

    Quote Originally Posted by Habitual View Post
    What I'm really asking is "are you ssh'ing in as root or not?"
    Im not logging as root, I do not know root password. I just have one user with admin privileges and I use su and sudo to get root access. Is there a way to recover root password and will it help to login as root?

  6. #6

    Re: Can not login because of permanent restart

    It may help to login as root.
    Recovering the root password is another matter, but if you could su or sudo, it should be trivial to do so.

    Is this owned by you?
    Windows assumes the user is an idiot.
    Linux demands proof.

  7. #7
    Join Date
    Nov 2009
    Beans
    7

    Re: Can not login because of permanent restart

    Yes, the server is owned by me.

    But how can I recover the root password from virtual server if I can not even login to it?

  8. #8

    Re: Can not login because of permanent restart

    but you can login to it.
    There are several methods for changing a root password.
    By default, the Root account password is locked in Ubuntu.
    Have you changed that behavior to allow root? This issue implies yes, but I can't make any assumptions.

    Let's start with that answer and then proceed.
    Windows assumes the user is an idiot.
    Linux demands proof.

  9. #9
    Join Date
    Nov 2009
    Beans
    7

    Re: Can not login because of permanent restart

    I think that there is some form of misunderstanding if you say, that I can log in as root and change it's password. So, lets summarize my problem:

    1) I can not log in to system with any user. The reason is, that it is virtual server and only method I know to log in to it is by ssh. And if I try it, it disconnects me immediately with message "The system is going down for reboot in 1 minute!"
    2) Because of 1) I do not know how to reset root password.

    And to answer your question, I did not change the root behavior. So the root account is still locked and I can not login to it, until I reset it's password.

    So, what I need is to find any way to login to the virtual server. Until I login to it, I can not run any commands on it and change anything.

  10. #10
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Can not login because of permanent restart

    I wonder if you can issue an immediate 'cancel shutdown' command via ssh?

    Code:
    $ ssh user@remote_host "sudo -S shutdown -c << EOF
    your_remote_password
    EOF"
    Also, the fact that the shutdown is always 1 minute makes me wonder whether the shutdown command is actually inside one of your login files (.profile, .bashrc) so it might be worth trying ssh with noprofile / norc

    Code:
    ssh --noprofile --norc user@remote_host

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •