[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 648
  • 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?
0
dvs8o8
Asked:
dvs8o8
  • 2
1 Solution
 
rindiCommented:
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:

http://the.earth.li/~sgtatham/putty/0.53b/htmldoc/Chapter3.html
http://the.earth.li/~sgtatham/putty/0.53b/htmldoc/Chapter8.html#8
0
 
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
0
 
rindiCommented:
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).
0
 
pmasottaCommented:
why don't you just use an ssh certificate only acces...
http://www.codelathe.com/blog/index.php/2009/02/20/ssh-without-password-using-putty/
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

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