When you login from a ssh by using ssh-key to login, its nice to disable password when you use the sudo command in Debian 10, i will learn you how to disabled this and allow the user to run sudo commands whitout password.