automated putty script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • keydrive
    New Member
    • Oct 2007
    • 57

    automated putty script

    Hi,

    I created a simple automated putty script in Windows to launch and access my Linux boxes. The options are simple to pass; host, uid and password. Is there a way switch to another user from the putty.exe command line?

    Code:
    cd C:\PuTTY
    start putty.exe -load "hostname" -uid XXXX -pw XXXXX
    I would rather configure putty and use putty.exe then use pline.exe and create all the connection information again.

    Thanks for your suggestions
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    I'm not sure I understand your question, are you trying to switch users on a Linux system? You would do that with the 'su' command.

    Or are you trying to do something else?

    Comment

    • keydrive
      New Member
      • Oct 2007
      • 57

      #3
      Yes, I'm familar with switching to another user with su. What I'm looking for is to include this in my automated launch of an xterm window through putty.exe on the command line.
      It would be great if putty had an option like this;

      Code:
      start putty.exe -load "hostname" -uid XXXX -pw XXXXX -command "su - second_user"
      Thanks,

      Comment

      Working...