以下のように公開鍵認証の設定となっているホストであっても
~/.ssh/config
Host target-host
HostName xx.xx.xx.xx
User no-password-user
# 通常は公開鍵認証のみとする
IdentitiesOnly yes
PasswordAuthentication no
IdentityFile ~/.ssh/secret_key
コマンドラインで -o PasswordAuthentication=yes
すれば設定をオーバライドしてくれる。
一時的にパスワード認証を使用する
$ ssh another-user@target-host -o PasswordAuthentication=yes