• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 652
  • Last Modified:

Creating a saved session with putty that holds username and password

How do i create a saved session to a switch using putty. I just want to be able to open putty and open a saved session that will take me directly to either the user exec mode or privilege exec by passing the login and password. Is this possible?
  • 2
1 Solution
You could create a batch file containing similar to this:

PuTTyPortable.exe -ssh Username@IPAddressOfHost -pw Password

and then just execute that batch file. But as the password and the username is easily readable that isn't recommended for security reasons. You might be able to encrypt the file to get more security, or follow the instructions in the Links below:

dvs8o8Author Commented:
I am not able to access the links provided. Is there a way to save a session in putty where it takes you directly to privilege exec. I just want to click on a saved session and have the login, password, and enable password already stored in that session. dont know if this is possible
As I said you could create a batch file with similar commands I posted above, just replace the entries with your needed entries. Then when you start the batch file it should just start putty with your credentials.

Maybe you should try the links again, I can open them without issue. It's mainly the manual for putty though. probably you have that somewhere local on your PC (I don't, as I'm using Putty Portable where not everything is included).
why don't you just use an ssh certificate only acces...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

On-Demand: Securing Your Wi-Fi for Summer Travel

Traveling this summer?Check out our on-demand webinar to learn about the importance of Wi-Fi security and 3 easy measures you can start taking immediately to protect your private data while using public Wi-Fi. Follow us today to learn more!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now