Ip of my Windows machine is 172.16.22.53, and it installed cygwin. I want write a bash script like that:
#!/bin/bash
sshpass -p 'myPassWord' ssh [email protected]
#and some command to run cmd command in the Windows machine.
Is it possible?
That is my try(it log in the Windows machine,and go into cygwin command interface .But don't creat the Catalog(myth) in the Windows machine!):
#!/bin/bash
sshpass -p 'myPassWord' ssh userNmae@myIp|mkdir myth