Jump to content
Sign in to follow this  
arbalest

Batch files, continued.

Recommended Posts

Is there any commands to remotely execute a batch file on another machine in the network?

like say I wanted to open like note pad or execute any number of batch files on another computer on the network, what would be the command and parameters before "open notepad" ?

Share this post


Link to post
Share on other sites

well there is rsh which is remote shell but that is very insecure.. so I would look into setting up ssh hostkeys with no passpharse included in the key you generate. That way you can do this

 

ssh user@hostname date

 

it will run the date command on the remote machine with no password or passpharse prompt if you just hit enter 2 times when it prompts you for the pharse when you run ssh-keygen. a hostkey is kind of like a lock and key you put your lock on the other server and you are sending the key to try to unlock.. the passpharse is just an extra security level if someone takes your machine physically or steals your private key.

Share this post


Link to post
Share on other sites

er.. im guessing that "batch" as in windows, hence whilst ssh is perfect for linux it wouldnt work on windows.

 

as for windows, well as far as I understand it.. rshsvc.exe is the only way?

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...