# how can i save password for the session in putty

For ssh login i need to save user name and password does it possible?

##### Post Metadata
- Posted at: over 6 years ago
- Author title: Protocol Stack Engineer at ASOCS
- Net upvotes: 1


## Comments
### Comment 1

In PuTTY, you can save your username for SSH login, but it does not provide an option to save the password directly. However, PuTTY offers a workaround called &quot;Public Key Authentication&quot; that allows you to securely authenticate without entering the password every time.

Here&#39;s how you can configure PuTTY to save your username and use public key authentication:

Launch PuTTY and enter the server&#39;s hostname or IP address in the &quot;Host Name&quot; field.
In the left-hand panel, navigate to &quot;Connection&quot; -&gt; &quot;Data&quot;.
Enter your username in the &quot;Auto-login username&quot; field.
In the left-hand panel, navigate to &quot;Connection&quot; -&gt; &quot;SSH&quot; -&gt; &quot;Auth&quot;.
Select the &quot;Browse&quot; button next to the &quot;Private key file for authentication&quot; field.
Locate and select your private key file (.ppk) on your local machine.
Note: If you haven&#39;t generated a private/public key pair yet, you&#39;ll need to do that first using PuTTYgen.
Click the &quot;Open&quot; button to initiate the SSH connection.


PuTTY will now use the saved username and the specified private key for authentication, allowing you to log in without entering the password manually.

Remember, public key authentication is considered more secure than password-based authentication, as it eliminates the need to transmit and store passwords. However, it&#39;s essential to protect your private key by securing it with a passphrase.

If you still prefer to save the password directly (though not recommended for security reasons), you can use a third-party tool like &quot;PuTTY Connection Manager&quot; that adds password saving functionality to PuTTY. Please note that using saved passwords carries a security risk, as anyone with access to your computer can log in to the remote server without needing to enter the password.

Please exercise caution when storing passwords and ensure that your system is adequately secured.

##### Comment Metadata
- Posted at: about 3 years ago
- Author title: IT Administrator
- Net upvotes: 1


### Comment 2

There is one option as Save you can click there and save your password before log in.

##### Comment Metadata
- Posted at: almost 3 years ago



### Comment 3

Yes you can save with or without password

##### Comment Metadata
- Posted at: about 4 years ago
- Author title: Senior Executive (Software Testing)  at Commnet Systems And Solutions - India



### Comment 4

putty.exe user@ipserver.it -pw password

##### Comment Metadata
- Posted at: over 6 years ago
- Author title: developer



### Comment 5

You can not save password in Putty but can save user name and hostname that would automatically take you to the screen to enter the password. 

##### Comment Metadata
- Posted at: over 6 years ago
- Author title: IT Analyst at Tata Consultancy Services




## Related Product
[PuTTY](https://www.g2.com/products/putty/reviews)

## Related Category
[Terminal Emulator](https://www.g2.com/categories/terminal-emulator)

## Related discussions
- [How well does Trello scale into a larger team?](https://www.g2.com/discussions/1-how-well-does-trello-scale-into-a-larger-team)
  - Posted at: about 13 years ago
  - Comments: 6
- [Can we please add a new section](https://www.g2.com/discussions/2-can-we-please-add-a-new-section)
  - Posted at: about 13 years ago
  - Comments: 0
- [Quantifiable benefits from implementing your CRM](https://www.g2.com/discussions/quantifiable-benefits-from-implementing-your-crm)
  - Posted at: about 13 years ago
  - Comments: 4


