Sign in to follow this  
Followers 0
Sumanth

Putty And password

3 posts in this topic

Hi friends...

i have to do some basic task using autoit in linux...

Have to create the user and add them into some group...

To do this i am using putty to logon to linux server

i am using this script...but it is not taking password

-----------------------------------------------------

Run("c:\putty")

WinWaitActive("PuTTY")

Send("192.168.55.60")

Send("{ENTER}")

WinWaitActive("192.168.55.60")

Send("root")

Send("{ENTER}")

Sleep(1000)

Send("sumanth")

Send("{ENTER}")

;test send

WinWaitActive("192.168.55.60")

Send("sumanth")

-----------------------------------------------------

this is sending sumanth properly

Please tell me whether i am doing any thing wrong or...is there any other way to login using putty

Thanks n Regards

sumanth

Share this post


Link to post
Share on other sites



try Controlsend()


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

This works:

ControlSend('[CLASS:PuTTY]', '', '', $sPassword & '{ENTER}')

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0