My end goal is to create an alias for scp:
First, I need a way of inputting the remote users' password automatically for this to be a single input command. Security isn't a big deal with this, so I' happy to have the password in a text file. I've tried the following, but there all still prompt for input:
scp from/path usr:w.x.y.z:to/path <<< "passwd"
echo "passwd" | scp from/path usr:w.x.y.z:to/path
printf "passwd\n" | scp from/path usr:w.x.y.z:to/path
All still prompt me for input.
Once I've figured that out, I'm going to run:
echo 'alias pts=" fixed command above"' >> ~/.bashrc
Where am I going wrong?