create keys outside of chroot/fix nano

Updated nano and replaced ssh keygen outside of chroot if not found.