Question: sftp do not prompt for password?
Answer: Generate the public key private key pair. ... 
Change directory to . ... 
Copy the rsa public key to the remote host. ... 
login to the remote host with password. ... 
Rename the public key file, id_rsa.pub, to authorized_keys ; ... 
Change the key file and directory permissions.