Tell me please. There is a script for auto-heating to the server. there is a type command
ssh $SSH_HOST
Next, you need to enter a password and continue reading the script and execution of commands.
How can I submit the password in the script and be automatically substituted? Thank!
expect
. Or, search the network utility sshpass (or write an analogue for yourself). In any case, it is necessary to communicate with ssh through a pseudo-terminal (it does not understand other interfaces). - avp