Hi Experts,
We are running various OS/Network and Database related commands and scripts on Local and Remote Server to perform/compare the results
As part of this activity, we have bottleneck on running commands/scripts on the remote server as we need to provide password everytime whenever we use SSH command
Also, we need to run command as ssh sudo su - oracle for security purpose which prompts password two times.
we would like to automate this process in order to save password securely(temporarily) while running ssh sudo commands/scripts.
I see, there are various solutions using SSHPASS,EXPECT commands, however we dont have anything available to use within our group.
We may not be able to use SSHPASS as this component not installed during VM build, so we left with only option to use EXPECT.
So, Need your help to get any example working script using EXPECT for ssh sudo passwordless connection.
Appreciate if anybody can share ideas or working scripts
Thanks in advance