For example, I often need to login to a new virtual machine just to open "/etc/ssh/sshd_config" and set "PasswordAuthentication" option to "no".
In this way, I can not automate this process.
How to solve similar tasks by doing the modification from the command line?