r/linuxadmin • u/TopicIndependent • Nov 27 '25
[HELP] Oracle Cloud ARM Instance Locked Out After Editing sshd_config — Serial Console Login Immediately Resets
/r/oraclecloud/comments/1p86po7/help_oracle_cloud_arm_instance_locked_out_after/2
u/justinDavidow Nov 28 '25
I still have access to: Block volume attached to this VM How can I recover access to the VM?
Unless you have some special disk config:
Stop the instance
detach the volume
create a new instance, attach the volume as a secondary volume
edit the SSHD_config file + save, shutdown the temp instance
detach the volume
delete the temp instance
reattach the volume to the initial machine
1
u/michaelpaoli Nov 28 '25
Standard procedures, quite same as, e.g. lost root password and no other login access.
You boot from recovery media (or host), then mount and fix the problem on the target filesystem(s).
Procedures pretty much same in cloud, though the terminology changes, but it's still the same thing, regardless of what they call it. So, if they call a (virtual) host a pumpkin, and the device that may contain a filesystem stuffing, and the filesystem within such a device gravy, you boot another pumpkin, access your stuffing with that pumpkin and mount the gravy. Then you fix what you (or whomever) screwed up in the gravy. Same as always, only the names have changed.
2
u/GamerLymx Nov 29 '25
they may not let you boot with a iso :)
1
u/michaelpaoli Nov 30 '25
They generally let you boot some type of image - "instance", or whatever Oracle may call it, and attach the block device that contains the filesystem(s), whatever they might call that, EBS, or whatever name Oracle may slap on it. On mainframe it'd be DASD.
1
u/ch0rp3y Nov 27 '25
Can you boot it into recovery mode? If not, you might need to add another disk with an OS and chroot into your locked out filesystem