# how to auto login into ssh on a squashfs

**URL:** <https://forums.digi.com/t/how-to-auto-login-into-ssh-on-a-squashfs/12438>\
**Category:** Linux\
**Tags:** linux\
**Created:** [January 24, 2014, 6:42pm UTC](https://forums.digi.com/t/how-to-auto-login-into-ssh-on-a-squashfs/12438 "2014-01-24T18:42:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![olaoni](https://avatars.discourse-cdn.com/v4/letter/o/bc79bd/32.png) [@olaoni](https://forums.digi.com/u/olaoni)\
**Post date:** [January 24, 2014, 6:42pm UTC](https://forums.digi.com/t/how-to-auto-login-into-ssh-on-a-squashfs/12438/1 "2014-01-24T18:42:33Z")

</div>

Hi All,

I will like ssh autologin into my Digi Connect 9210 board which is currently running squashfs.

How can I achieve this, as I can’t copy the ssh generated keys to the target filesystem directory.

Regards

onio

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [January 30, 2014, 2:47pm UTC](https://forums.digi.com/t/how-to-auto-login-into-ssh-on-a-squashfs/12438/2 "2014-01-30T14:47:59Z")

</div>

\> I can’t copy the ssh generated keys to the target filesystem directory.

You can’t on already running system, but you can include those keys in to your rootfs when you building it on the host in digiESP using add\_files.sh script in your rootfs project.  
Or if you are not terribly running out of space convert squashfs to jffs2. Let me know if you need the instructions.  
or you have by default extra space in flash for userfs jffs2 writable partition. put your keys there and create a symbloic link to the file from squashfs rootfs using add\_files.h when you building it.
