linux - Wrong entry in /etc/deny.hosts file -


i mistakenly edited /etc/deny.hosts file , added following entry-
all: all. now, i'm unable ssh it. after searching, found denies users accessing system. 1 have idea on how overcome this?

if root device of instance ebs, below steps come out of situation.

  • stop instance (instance1)
  • detach root volume
  • attach volume different running instance (instance2) non-root device.
  • mount device on instance2
    • find newly attached volume name using lsblk , try mount volume.
  • edit deny.hosts file, under /mountpath/etc/deny.hosts
  • detach volume instance2 , re-attach instance1 root device.

Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -