Posts: 16
Threads: 7
Joined: Jan 2006
Reputation:
0
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" ?
Posts: 383
Threads: 63
Joined: Dec 2004
Reputation:
0
Hi,
I belive you can just type:
notepad
Posts: 16
Threads: 7
Joined: Jan 2006
Reputation:
0
I was just using that as an example, I just want to know how to execute commands remotely, on a networked computer
Posts: 16
Threads: 7
Joined: Jan 2006
Reputation:
0
so..... no one knows how to execute batch files on a remote computer?
Posts: 292
Threads: 45
Joined: Dec 2003
Reputation:
0
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.