sftp password problem

Hello,
trying to download data by the ksh via sftp (password protected). I am looking for the exact syntax. (I know there are 1000 of threads but I have not found anything how to add the password).

User:ABC
Passwrd:123

I tried several stuff like:

sftp -b ABC@ftp.XYZ.com:123
mget *.txt

sftp -b ABC@ftp.XYZ.com
password:123
mget *.txt

sftp -b ftp.XYZ.com
user ABC 123
mget *.txt

Without "-b" it is working but I am always promped to add the password and thats not what I want,

Thanks for help
Jurgen

You have to configure, both the servers such that the sftp will work OK. First you need to generate a key and have to passon the same/paste it over the remote server for password less authentication.

Follow the procedure for passwordless ssh and you are good to go!
Check this link...