|
#1
|
|||
|
|||
Solution for saving password and allow token
I am attempting to save my password for devices (which is static), but then allow for the addition of a token (which changes every login).
I believe one simple solution is to allow Keyboard Interactive mode to not automatically enter a carriage return when a password has been saved. When it does this, it is no different than the Password method. If I can save a password in Keyboard Interactive mode, then have it prompt for more input (which this mode is for), that would be ideal. Has anyone worked out a good solution for this issue? |
#2
|
||||
|
||||
The behavior you are currently seeing in SecureCRT is by design.
If there is any value saved in the Password or Keyboard-Interactive Properties of the saved session in SecureCRT, SecureCRT automatically sends it as part of its authentication attempt.One option would be to clear out any saved password in the Keyboard-Interactive/Password Properties window, and instead utilize SecureCRT's Logon Actions Expect/Send functionality to accomplish the saved/automated authentication. If you're unfamiliar with this concept, you can read more about it in this existing forum post. With such a setup, one could copy the token to the clipboard just prior to connecting to the saved session and the authentication will be automated by sending the static password followed immediately by the contents of the clipboard.In your case, you wouldn't be sending any 'ssh' command to get to a secondary host. Instead, you'd be deleting the default Username and Password entries and replacing both with a single entry that simply waits for (AKA: "Expect") the keyboard-interactive prompt that the server sends, and acts upon that. Since copying the token to the clipboard prior to authenticating isn't always ideal, I've created a feature request for the option to suppress the implicit/embedded CR that is sent with each and every Send action in a Logon Actions sequence. While the product director may evaluate this request for potential inclusion in a future release, I don't yet have any ETA for when or even if this might ever become available. However, if something along these lines becomes available, we will be happy to post here in this forum thread.
__________________
Jake Devenport VanDyke Software Technical Support YouTube Channel: https://www.youtube.com/vandykesoftware Email: support@vandyke.com Web: https://www.vandyke.com/support |
![]() |
Thread Tools | |
Display Modes | |
|
|