set ssh password ubuntu code example Example 1: add password to user ubuntu passwd {username} Example 2: how to set up password ssh access askubuntu ssh-keygen -f foo