I want to execute commands on a remote machine. The remote user requires password authentication. I am getting following error when using the below sample script, This is the content of sample script applmgr.sh
#!/bin/bash ssh firstname.lastname@example.org -c "cd ; touch testing ; cp testing testing_is ;mv testing working" <<! applmgr ## Password of applmgr user## !
When executed, it gives below message,
[oracle@dbsrvr ~]$ sh applmgr.sh standard in must be a tty