Find the answer to your Linux question:
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? ...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    28

    Question 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

  2. #2
    Linux 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

  3. #3
    Just Joined!
    Join Date
    Feb 2008
    Posts
    28
    Quote Originally Posted by vsemaska View Post
    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
    Can u tell me how to setup public and private keys ?

  4. #4
    Just 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.

  5. #5
    Linux 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...