Hot answers tagged window
It's really not very clear what isn't working for you. If you just want to run a command remotely, sshpass can help you. Maybe you just have the syntax a little bit wrong. For example, the following command will login to a remote server, check the uptime and print the uname: sshpass -p '<password>' ssh <username>@<myIp> "uptime;uname ...
Only top voted, non community-wiki answers of a minimum length are eligible