batch file - Running SSH script to Remote Ubuntu vps - Please advise on code -


i attempting run ssh script windows 7 local, run on ubuntu 12.04 vps. using plink. please advise wrong following:

i run .bat file on local containing following code:

start c:\plink.exe -ssh www.host.com -l usersname -pw password -m c:\script.sh 

the script .sh file , intention enter simple command text shell , execute. code follows:

#!/bin/bash echo text executed echo text executed done 

i able connect remote script isn't working. appreciated.

thanks time. jimy


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -