Unfortunately, not all (client) software that supports SSH/SFTP supports publickey authentication.
How would one set up a standard Ubuntu desktop (with sshd enabled) so that you could use an easy password to login locally, but need a different (more secure) password to login to the same account via SSH?
I would prefer to remain able to login to the desktop user via publickey auth, for those programs that do support it.
Best Answer
Have another user for SSH Login and use
sudo
or
su -
if need to Access the Desktop-User Profile.Disable the Desktop-User in
/etc/ssh/sshd_conf
with "DenyUsers":/etc/ssh/sshd_config: