diff --git a/software/slaprunner/instance-runner.cfg b/software/slaprunner/instance-runner.cfg
index 7326894024a450de0e0416a8ed725063bca2069d..9bc32dedf68b8d07aad78651e453ef88355fd828 100644
--- a/software/slaprunner/instance-runner.cfg
+++ b/software/slaprunner/instance-runner.cfg
@@ -116,7 +116,7 @@ sessions = $${buildout:directory}/.sessions
 [recovery-code]
 recipe = slapos.cookbook:generate.password
 storage-path = $${directory:etc}/.rcode
-bytes = 4
+bytes = 8
 
 # Deploy cloud9 and slaprunner
 [cloud9]
@@ -544,7 +544,7 @@ key-file = $${ca-shellinabox:key-file}
 [shellinabox-code]
 recipe = slapos.cookbook:generate.password
 storage-path = $${directory:etc}/.scode
-bytes = 4
+bytes = 8
 
 [shell]
 recipe = slapos.cookbook:shell