Help with login script [2]
Help with login script
Monday, December 25, 2017 1:50 PM - 2d8
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
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
Re: Help with login script
Tuesday, December 26, 2017 5:01 AM - Support
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
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
Re: Help with login script
Tuesday, December 26, 2017 1:24 PM - 2d8
It wasn't really helpful, but i got your point.
Thank you for quick response.
Thank you for quick response.
Previous views: 597