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