Mount a partition of image file

Solution 1: losetup

With newer version of losetup, you can easy map parition in image file to /dev/loop*.

$ sudo losetup --show -Pf <imagefile>

The output will show which loop device has been mapped to image file. Now you can mount partition of it.

$ sudo mount /dev/loop0p1 /mnt
[Read More]

SSH login without password

If ssh key (~/.ssh/id_rsa*) is not available, create new

$ ssh-keygen

Copy the public key to remote host

$ ssh-copy-id -i ~/.ssh/ <user>@<remote-host>