I am trying to transfer some files using SCP in a shell script, but I am being prompted for my password on the remote machine.
Can I use expect with scp to enter the password so I don't have to type it in all the time?
bashexpectscp
I am trying to transfer some files using SCP in a shell script, but I am being prompted for my password on the remote machine.
Can I use expect with scp to enter the password so I don't have to type it in all the time?
Best Answer
You don't. Use a key instead.