Move public key commands to the ssh module

Prefer single-quoted strings when you don't need string interpolation or special symbols.