Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using freeFTPd as a sftp server on windows machine. From my linux machine(ubuntu) I want to do a SFTP from to windows and i want to bypass entering password as i'm trying to do this with scripts. freeFTPd has an option to generate a key. I saw a lot of articles of key generation and but most of them are for linux to linux . Can some one please help me on how to do this?

share|improve this question

ssh keys are the same kind of object on unix and windows - there are two types of keys: rsa, dsa. Generally speaking rsa will work on either ssh 1 or ssh 2, so consider the key type of rsa if you are asked.

Generate the key, on linux with ssh-keygen:

There will be two files created: public key, private key. Make sure protections are 755 on (example home directory) /home/m4n07, and 600 on /home/m4n07/.ssh after you have your key made.

The public key .ssh/ has to be placed on the Windows box. As a binary copy. Read the freeFTPd doc to find out where you place the file on your windows box, and what you name it. Example: We have a non-standard sftp windows implementation that uses the registry for ssh keys.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.