# Security: disable PasswordAuthentication for ssh

**URL:** <https://forums.suse.com/t/security-disable-passwordauthentication-for-ssh/3821>\
**Category:** RancherOS\
**Created:** [August 26, 2016, 7:04pm UTC](https://forums.suse.com/t/security-disable-passwordauthentication-for-ssh/3821 "2016-08-26T19:04:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elahn](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/elahn/32/1635_2.png) [@elahn](https://forums.suse.com/u/elahn)\
**Post date:** [August 26, 2016, 7:04pm UTC](https://forums.suse.com/t/security-disable-passwordauthentication-for-ssh/3821/1 "2016-08-26T19:04:10Z")

</div>

I’ve just set up a shiny new RancherOS box and I’m trying to reduce the attack surface area as much as possible. Does anyone here know how to persistently disable PasswordAuthentication for ssh?
