Results 1 to 5 of 5
Hi,
I am new to Linux,I want to know wheather I can run bat file from windows to connect Linux server to run script in Linux? If yes then how? ...
- 03-12-2008 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 28
shell script
Hi,
I am new to Linux,I want to know wheather I can run bat file from windows to connect Linux server to run script in Linux? If yes then how? ,
Regards,
Manoj
- 03-12-2008 #2Linux User
- Join Date
- Jun 2007
- Posts
- 318
You would have to install on your Windows system some version of Secure Shell (SSH) like Putty. Putty has the comannd line utility plink. The command would look something like this:
plink -i <key> user@host "command"
Since you want to run this from a .bat file you'll have to learn how to set up and use private/public keys.
Vic
- 03-13-2008 #3Just Joined!
- Join Date
- Feb 2008
- Posts
- 28
- 03-13-2008 #4Just Joined!
- Join Date
- Feb 2008
- Posts
- 50
To use PuTTY, You will have to install ssh server on your linux machine.. so then you able to use putty as ssh client from windows.
- 03-13-2008 #5Linux User
- Join Date
- Jun 2007
- Posts
- 318
If you're going to use PuTTY you would run puttygen to generate the private/public keys. Then you would copy the public key over to the Linux box and append it to file ~/.ssh/authorized_keys.
On the Windows box look at the on-line help for puttygen for more information.
On the Linux box 'man ssh' and 'man sshd' for more information.


Reply With Quote
