How to get password prompt from scp when launched remotely via ssh
- by Zek
When I ssh to a remote system and execute scp, I do not get a password prompt:
# ssh 192.168.1.32 "scp joe\@192.168.1.31:/etc/hosts /tmp"
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password,keyboard-interactive).
If I break it up like this, it works fine:
# ssh 192.168.1.32
# scp joe\@192.168.1.31:/etc/hosts /tmp
[email protected]'s password:
How can I make it prompt me for the password in the first example above?
Note: No, I cannot use key-based authentication for this.