Qertyans Posted October 10 Share Posted October 10 I want to create script to putty auto login and its work. RunWait('"C:\Program Files\PuTTY\putty.exe" -ssh SERVER -l root -pw PASSWORD') but I want to declare like SERVER , username(root or something) , and password. but somehow its not works. Local $SERVER = "SERVER" Local $USER = "root" Local $PASPROT = "PASSWORD" RunWait('"C:\Program Files\PuTTY\putty.exe" & " -ssh " & $SERVER & " -l" & $USER & " -pw " & $PASPROT') kindly need help Link to comment Share on other sites More sharing options...
Solution BigDaddyO Posted October 10 Solution Share Posted October 10 Remove the ' at the end and begining of your RunWait and it should work Link to comment Share on other sites More sharing options...
Qertyans Posted October 10 Author Share Posted October 10 @BigDaddyO thanks for helping, its work. Local $SERVER = "SERVER" Local $USER = "root" Local $PASPROT = "PASSWORD" RunWait("C:\Program Files\PuTTY\putty.exe" & " -ssh " & $SERVER & " -l" & $USER & " -pw " & $PASPROT) I want to create this script but with multple different SERVER , root , PASSWORD. instead create manual copy paste script one by one and change it, is possible to create automatic script for multiple script purpose? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now