How to add confirm in shell script in sftp mode [duplicate]
问题 This question already has answers here : How can I force ssh to accept a new host fingerprint from the command line? (6 answers) Closed 1 year ago . I have a shell script which is performing some renaming and archiving steps. I have added sftp commands to copy multiple files. But when i try to login to the remote machine thru putty it asks for confirmation like Are you sure you want to continue connecting (yes/no)? . I need to enter yes. but since this is being done thru the script am not