0
I'm using freeftpd as an sftp server on Windows machine.
From my Linux machine (Ubuntu) I want to do a SFTP from Linux to Windows, and I want to bypass entering a password.
Can some one please explain how to do this?
UPDATE: From the Linux machine I'm generating public and private keys using: ssh-keygen -t rsa
. Two files (public and private) get generated under my /home/user/.ssh
directory: id_rsa
and id_rsa.pub
. If it's another Linux machine I'm aware that I have to append the public key (id_rsa.pub
) to the authorized_keys
file. But what should I do in the case of Windows?
Thanks for replying. Finally i got a reply :) In the freeFTPd there is an option to generate RSA key. But after generating a key on windows side i'm not sure of where to place the Key. I want to do a sftp from linux. – m4n07 – 2013-01-25T14:13:59.773
Try placing them in
~/.ssh
with the names described in my answer. The Linux ssh client should find them automatically if the default names are used. – André Stannek – 2013-01-25T14:15:47.337sftp user@10.220.x.x Enter passphrase for key '/home/user/.ssh/id_rsa': user@10.220.x.x's password: Hello, I'm freeFTPd 1.0Connected to 10.220.x.x ... Still getting the above prompt. After adding that key to those files – m4n07 – 2013-01-25T15:36:19.657
Seems the key you created has a passphrase. You have to enter it to unlock the key so it can be used for authentication. You need to create a key with empty passphrase. – André Stannek – 2013-01-25T15:38:58.013
I have not created any passphrase , I just hit enter when i get the passphrase prompt. I'm able to login with this by just hitting enter. I feel that for your expertise if you just install the freeFTPd you will be able to easily figure this out. – m4n07 – 2013-01-25T15:41:40.767
I think it uses a different algorithm, SHA1 is a hash algorithm. – m4n07 – 2013-01-25T15:53:44.347
I would have done so in the first place but I'm afraid I can't install it as I don't have any Windows ;-) Normally, if you connect to a ssh server running on Linux it doesn't ask for a passphrase if it's empty. – André Stannek – 2013-01-25T16:24:47.373
+1 for your efforts to help. Thank you. Still i'm facing the issue. As on windows i dont see any files resembling authroized_keys. – m4n07 – 2013-01-26T06:41:06.900