I downloaded id_rsa to my laptop and saved it as tester.pem and used it to login to linux server successfully using Tera Term. Now i want to make it automatically which means i can just use 1 click to .ttl file and voila, login successful. Here's the script of tester.ttl but it didn't work.
username = 'tester'
keyfile = '"C:\path\to\keyfile\tester.pem"'
hostname = 'server's ip'
pass = '789789'
msg = hostname
strconcat msg ':22 /ssh2 /auth=publickey /user='
strconcat msg username
strconcat msg ' /keyfile='
strconcat msg keyfile
connect msg