I'm having a difficult time getting the input from the root password line to auto plug in just like the ssh
password does. So far I have this, then it crashes. I'm trying to get the batch file to input the ip, ssh password, then give su
access then auto input the root pass. Anything would help thanks!
color b
cls
echo What is the IP for the unit?:
set /p IP= :
echo What is the SSH Password for this unit?:
set /p Passw0rd= :
echo What is the Root Password for this unit?:
set /p R0ot= :
plink.exe -t -ssh user@%IP% -pw %Passw0rd% -m commands.txt
exit/b
What's in command.txt
:
su