Automate connection in putty through 2fa (batch)

0

I wanted to know how to automate the connection on Putty using a batch.

The script for in 2fa, using the password parameter as code 2fa. There is no point in duplicating the parameter.

cmd line to connect:

start putty -ssh usuario@ipdamaquina -pw senha
    
asked by anonymous 23.10.2018 / 20:59

1 answer

0

You have to add a script and run putty informed this script in the command

The script will have some pre-set variables needed in execution, more details on this link !!

putty.exe [email protected] -pw password -t -m commands.txt

    
26.11.2018 / 05:17