Results 1 to 3 of 3

Thread: hosts.deny denies all connections

  1. #1
    Join Date
    Nov 2012
    Beans
    1

    hosts.deny denies all connections

    Hi all,

    I was trying to set up the hosts.deny/hosts.accept files for a virtual machine which I can only access through ssh and I stupidly set up the files as follows:

    hosts.deny
    ALL:ALL

    hosts.accept
    localhost 127.0.0.1

    So you can see, I can't log in to the VM at all. Since it is a VM and I can't just log on to the physical machine, do I have any way of getting in to the system and/or changing the hosts.deny file? Or am I just going to have to get a new VM? If anyone has any ideas, feel free to share.

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: hosts.deny denies all connections

    Since it's a VM, I assume you have access to the host? Just login to the console and clear out the hosts.deny file.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Mar 2011
    Beans
    669

    Re: hosts.deny denies all connections

    Is this a VM hosted elsewhere? You'd have to talk to the administrator/ whoever you're paying. If it's a VM you own/ that you have access to... just log into it and deal with it locally.

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
  •