Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

What am trying here is .....

  • I Have some scripts that needs to run in Windows Command (command.exe) and not from Cygwin.
  • The scripts needs to access a specific Linux machine from Windows command prompt and it asks for a password every time the script runs.

How can i set a password-less authentication from Windows to Linux machine?

How can i check from a Windows Command Prompt if a Linux machine is already passwordless?

Thanks in advance.

share|improve this question
    
I don't know that you'll be able to check from the Windows command line it the Linux machine is setup for PKI authentication. You will first need access to the Linux shell by other means and look for whether or not it is permitted in the SSHd configuration and whether or not the expected user has a public and private key pair. –  Aaron Copley Oct 27 '10 at 22:08

2 Answers 2

How can i set a password-less authentication from Windows to Linux machine?

You can use public key authentication to get by without a password.

How can i check from a Windows Command Prompt if a Linux machine is already passwordless?

If you own both systems, you should already know this... testing should be as easy as starting an SSH session to the Linux machine.

share|improve this answer
    
Thanks, but what am looking for is passwordless from Windows to linux. Where do i put the public/private keys generated on linux machine into Windows? Since am using a script, –  user58489 Oct 28 '10 at 0:29

I would recommend using Pageant. PuTTY combined with Pageant has a number of options for use from the command line. Check out the documentation for specifics to what you want to do.

You will need to generate the private / public key pair on the Linux machine. The Windows machine uses the private key for the user on the Linux host.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.