Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lsblk
- mkdir /mnt/recovery
- lsblk
- mount /dev/xvdf1 /mnt/recovery (here /dev/xvdf1 is secondary disk)
- cat /home/ubuntu/.ssh/authorized_keys > /mnt/recovery/home/ubuntu/.ssh/authorized_keys
- unmount /mnt/recovery/
- ssh ubuntu@192.168.0.10 –i new-keypair.ppk
Add Comment
Please, Sign In to add comment