So basicly I need to send a command from one server to another.
ssh [email protected] 'My command'
How do I specify the password?
So basicly I need to send a command from one server to another.
ssh [email protected] 'My command'
How do I specify the password?
If have two options:
Use the sshpass utility.
sudo apt-get install sshpass
Then send commands via:
sshpass -p '<password>' <ssh/scp command>