# ssh login issues adding keys to balena

**URL:** <https://forums.balena.io/t/ssh-login-issues-adding-keys-to-balena/369774>\
**Category:** balenaOS\
**Tags:** raspberrypi4\
**Created:** [January 22, 2024, 7:46pm UTC](https://forums.balena.io/t/ssh-login-issues-adding-keys-to-balena/369774 "2024-01-22T19:46:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oly99](https://avatars.discourse-cdn.com/v4/letter/o/4af34b/32.png) [@oly99](https://forums.balena.io/u/oly99)\
**Post date:** [January 22, 2024, 7:46pm UTC](https://forums.balena.io/t/ssh-login-issues-adding-keys-to-balena/369774/1 "2024-01-22T19:46:59Z")

</div>

im trying to add my ssh keys so i can use putty to ssh into my device the current mode is in production do i need to be in developer mode to use ssh to access .  
error i get is when i try to use the cli  
C:\Users\Oliver\>balena ssh 192.168.1.222 --port 22222  
[ojosbourne@192.168.1.222](mailto:ojosbourne@192.168.1.222): Permission denied (publickey).  
SSH: Process exited with non-zero status code “255”

```
can a add my keys directly to the config .json

```

like this i could before on anouther setup

“hostname”:“nebra-55DFB1.local”,  
“network”: {  
“wifi”: {  
“randomMacAddressScan”: false  
},  
“os”: {  
“sshKeys”: [“ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDA8YtPDCUXwfLqa9I1QjEg0QLbqqyiCVafflU8Nh6ngjCuxdhY/1O8EbV6HP8B1U3N8xobimRJ2gzhqhSqQCUFvzl2ruh2rP87rkyP1hC8FqQqQC0taXHdimKem6Mqo6myxXAliJVwgXo19laKKgVNwx2oqsSGyFHgaLJgoS0CXyIa/dAzm0KT94plX7w/e0OitPtSbmk8rgj0A8SjUSAuWZiJHhfQKAsY50HycCc/6WpBe4ln1IjAgUOGtXmCmuWOfeaC1PGigwM68bAXhxfGzRy9+Xczve2pFfVOJH1o5TJM/HQ9tjuB2qUteMehfp4Tj8xEZBdhcloAt+QumzbHgaoNlecicMNbKr9gq3CO9tTc4VsRacAt6QWLH4athlhjgjjI+rYswOydLGAB3aclkSdgijfhGUFz9XbEar73wnVgCCzCbNbPGXtZBFdnefYWORhhPBXHXK5RFHws1flDWVV1dzPg8PtVwc+LMESE+THZUWakubviQySbUtuKlW6EgxiM= oliver@DESKTOP-2KPAE4O”  
]  
}  
}

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [January 23, 2024, 11:25am UTC](https://forums.balena.io/t/ssh-login-issues-adding-keys-to-balena/369774/2 "2024-01-23T11:25:42Z")

</div>

Hello @oly99 did you try to move your device to developer mode?

You can modify the `/mnt/boot/config.json` file on the device to remove the `developmentMode: true` value. As always, be careful modifying this file though, as any corruption or inability to read it could render the device inaccessible.
