Hi there,
I am trying to automate an ssh login via a shell script, and having some issues. There are multiple servers to connect to and users should be able to login the remote machine by running the script file from the command line for any particular machine (without typing in any username/password). Hence, the username/password is store in the script file (and I know, this is insecure and not the preferred way but this is how that system works).
The problem is, the system does not have
Any sugestions are welcome
Thank in advance...
I am trying to automate an ssh login via a shell script, and having some issues. There are multiple servers to connect to and users should be able to login the remote machine by running the script file from the command line for any particular machine (without typing in any username/password). Hence, the username/password is store in the script file (and I know, this is insecure and not the preferred way but this is how that system works).
The problem is, the system does not have
expect
installed on it and I do not have the root privilages, so need to figure out a method to automate the login process. Normally, SSH does not read stdin so normal redirection does not work for this case.Any sugestions are welcome
Thank in advance...