Jump to content

Recommended Posts

Posted

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

 

 

 

Posted

@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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...