0

I have configured my sshd configuration files to listen to ipv6 addresses, but forgot to uncomment ipv4 local addresses. Here is a snippet from my configuration file:

AddressFamily any
ListenAddress 0.0.0.0(forgot to uncomment this)
ListenAddress ::

After a server reboot I tried to login via putty but couldn't. Now I can't access my server.

Can I access through rescue mode? Is it possible to regain access without reinstalling the OS?

1 Answer 1

0
  • boot into rescue mode
  • mount root filesystem (if not already mounted)
  • restore old ssh config or fix your mistakes (in your rootfs, not the one from rescue system e.g /some/mount/point/etc/ssh/sshd_config)
  • reboot into regular mode
  • profit ;)
2
  • hello can you please tell me how to mount root files @Henrik
    – sweatbar
    Jul 19, 2015 at 18:20
  • with mount - the parameters hardly depend on your disk layout (Raid, LVM, number of partition)...A good starting point is to have a look into lsblk --- but to be honest, mounting a file system is very basic Linux knowledge - maybe you want to get some professional help with your server or dig really fast into this topic because otherwise you may end as a spamserver or botnet-member...
    – Henrik
    Jul 19, 2015 at 21:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .