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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -