I'm having trouble trying to get my batch file to also give me super user access in PuTTY/Plink. I can auto-input the ip and password but I want to also automate it to where it will also give me su
access when I run this batch file. So far it runs up to the point where I need to manually enter su
but I'm trying to automate that so I tried -m commands.txt
and now it just crashes.. Looking for any help here thanks.
this is what I have so far
@echo off
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 ro0t= :
start plink.exe -ssh user@%IP% -pw %Passw0rd% -m commands.txt
exit/b
what in the commands.txt
:
su