Xshell Forum

Help with login script

Last post: Tuesday, December 26, 2017 1:24 PM by 2d8, 2 reply

 
Monday, December 25, 2017 1:50 PM - 2d8

Help with login script

 
Hello!
I am trying to make login script that execute couple commands right after connection and password should be used in one of them.
It works fine, but i have to input password twice - one to initially establish connection, and second time to pass password to login script.
Is it possible somehow to pass password from ssh authentication to script, without user interaction? Maybe password is stored somewhere, on filesystem, related to current session (it works when you choose "duplicate session", so it should be stored somewhere?)?

Thank you in advance

Program Ver. : Xshell 6
Tuesday, December 26, 2017 5:01 AM - Support

Re: Help with login script

 
Currently, it's not possible for users to reuse a login credential password after a login has been completed.

However if you use public key authentication and Xagent's agent forwarding, you don't need to input a password again to jump to another system. Does this help?

Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog
Tuesday, December 26, 2017 1:24 PM - 2d8

Re: Help with login script

 
It wasn't really helpful, but i got your point.
Thank you for quick response.