

A key-based SSH login could not be relayed this way.
There is no good reason to use ssh with a password. Always use key based authentication.
Here is a tutorial for anyone who may need it. https://www.digitalocean.com/community/tutorials/how-to-create-ssh-keys-with-openssh-on-macos-or-linux

Agreed. Great additional and needed information that I neglected to mention.