# How to log into Yocto image?

**URL:** <https://hub.mender.io/t/how-to-log-into-yocto-image/5486>\
**Category:** General Discussions\
**Tags:** yocto, raspberry-pi-3\
**Created:** [May 7, 2020, 6:59am UTC](https://hub.mender.io/t/how-to-log-into-yocto-image/5486 "2020-05-07T06:59:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![siddharthav](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@siddharthav](https://hub.mender.io/u/siddharthav)\
**Post date:** [May 7, 2020, 6:59am UTC](https://hub.mender.io/t/how-to-log-into-yocto-image/5486/1 "2020-05-07T06:59:52Z")

</div>

Hello @mirzak Sir,

I was able to build the image successfully,. Being a newbee I was struggling before but your tutorial helped me a lot. Thank you very much for this tutorial. Here I did not built any custom image I just stopped my building at the **“bitbake core-image-base”**.

But after booting I am not able to achieve ssh or putty connection to the RPI3 board from my ubuntu laptop am I doing any mistake here. Please suggest me what wrong I am doing here.

Whenever I try connect through ssh or putty I am getting **" Connection Refused error"** Please help me on this.

Also, The root login was possible but apart from root I was not able to login. May I know how can I proceed further please.

Thanks,  
Siddhartha V

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [May 7, 2020, 8:46am UTC](https://hub.mender.io/t/how-to-log-into-yocto-image/5486/2 "2020-05-07T08:46:33Z")

</div>

Hi @siddharthav,

Glad you find the tutorial helpful.

The image that you build `core-image-base` is minimal and does not contain an ssh server. You can try building a different pre-defined image e.g `core-image-full-cmdline` which does have ssh server enabled.

This is also covered in the tutorial how you enable the ssh server using `IMAGE_FEATURES` in a custom image

---

<div class="post-metadata">

**Author:** ![siddharthav](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@siddharthav](https://hub.mender.io/u/siddharthav)\
**Post date:** [May 7, 2020, 10:00am UTC](https://hub.mender.io/t/how-to-log-into-yocto-image/5486/3 "2020-05-07T10:00:31Z")

</div>

Hi @mirzak sir,

Thank you for the suggestion. But meanwhile I tried another thing i.e. I included the mete-filesystems layer from the open-embeeded the same core-base image itself is now ssh enabled putty is working. Sure I will look into your suggestion also.

But my doubt is :

1. I am not able to login as it is asking username and password may I know how to resolve this issue.please. Root is not asking any password so I am able to login as root.

2. Should I include other recipes to enable the sudo, apt-get, gcc compilers.?

Thanks,  
Siddhartha V
