Hi team,
I know if we need to transfer the files between between 2 servser, we use SFTP through key setup between 2 server.
currently There are some problems and we are not able to setup keys between servers.
How can i use password with SFTP for temporary solutions, so that the file transfer process become automate.
i know it can be done using ftp like...
ftp -nvi <servername><<"XX"
quote user <username>
quote pass <password>
prompt
lcd <path>
mput <filename>
bye
XX
But, current system is not accepting ftp and we should use only SFTP so i have changed from ftp to sftp like...
sftp -nvi <servername><<"XX"
quote user <username>
quote pass <password>
prompt
lcd <path>
mput <filename>
bye
XX
But it says invalid n option.
Can someone help me on how to use password with SFTP, so that it won't prompt for password?