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.
- find newly attached volume name using
- edit
deny.hostsfile, under/mountpath/etc/deny.hosts - detach volume
instance2, re-attachinstance1root device.
Comments
Post a Comment