1832869 Members
5066 Online
110048 Solutions
New Discussion

Re: Automated SFTP

 
M. Tariq Ayub
Regular Advisor

Automated SFTP

I want to do a automated sftp. what is the procedure for that.
4 REPLIES 4
Muthukumar_5
Honored Contributor

Re: Automated SFTP

You can run SFTP in batch mode using -b option as,

sftp -b

contains all commands

Proper setup is needed between source and destination machines for not asking password furing sftp. Else it will prompt for password.

hth.
Easy to suggest when don't know about the problem!
Gopi Sekar
Honored Contributor

Re: Automated SFTP


if you can not automate the password entry procedure for sftp, then you can use 'expect' to script the sftp process.

Gopi
Never Never Never Giveup
Wilfred Chau_1
Respected Contributor

Re: Automated SFTP

Use publickey authentication can avoid being asked for a password. Provided that there is no passphase added to the publickey.

M. Tariq Ayub
Regular Advisor

Re: Automated SFTP

Solved