Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8658909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:52:45+00:00 2026-06-12T15:52:45+00:00

I am using putty in windows. I am logging to putty with an IP:Port

  • 0

I am using putty in windows. I am logging to putty with an IP:Port number. What I have to do is I have to write a script which will open another putty terminal and do login there with its username and password

Purpose:- I am trying to automate my work using scripts, I have five users with there username and password and all of the terminal should be opened in putty and so there task.
please guide me in this direction.

I am running my script in ssh shell

My code:-
putty.exe -pw "password" username@server.com hello.sh ok-1

I have only executable file of putty, I have not installed putty, just copy and paste the exe file from another machine.Its working fine manually.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:52:46+00:00Added an answer on June 12, 2026 at 3:52 pm

    There are ways to automate this task but they may not be what you were originally anticipating.

    You can pass username and password information to PuTTY via the windows command line.

    putty.exe user@server.com -pw password
    

    Alternatively you can preload the information in a windows shortcut by passing PuTTY.exe parameters.
    (More information availible in this answer: https://superuser.com/a/44117)

    Both of these approaches mean storing plain text passwords which is not desirable. You should combine one of these methods with public key authentication. Say you choose windows shortcuts, you could have one for each user, the shortcut passing PuTTY the username, and the authentication is handled by stored SSH keys.

    (A guide to SSH keys using PuTTY: http://www.howtoforge.com/how-to-configure-ssh-keys-authentication-with-putty-and-linux-server-in-5-quick-steps)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using PuTTY to access my BSD file server and I have several terminal
I have just started using Vim in a terminal (PuTTY or MinTTY), after always
I'm trying to write a batch script (CMD @ Windows XP Pro) that will
I have a DLL which starts up some basic Windows programs: using System; using
I have been using Putty on Windows XP and used the .ppk file to
I tried to run a command in windows cmd using xul to search putty.exe
Using putty in windows, you can save sessions that connect to a certain host
I'm on windows, but I'm using a putty shell to connect to a linux
I'm able to access a telnet server via PuTTY which opens a terminal and
who do i run/execute a unix shell(ksh) script which isaved on my Windows Xp

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.