freeSSHd and freeFTPd

Remember me Registration (Optional)

Please note that there is no official support from the author for freeSSHd or freeFTPd. You should not expect to receive response on messages posted here.

Forums -> freeSSHd - General -> public key authentication
Postings: 1-10 11-20 21-30 31-40 41-50 51-60 61-70 71-80 81-82  >> Reply | New topic

Arghhhh

Anonymous
          
Re: public key authentication 14-09-2005 23:28
HI folks,
i decided to try Freesshd instead of cygwin, and at my surprise it's more complicated to make it works.
If i decide to enable required password authentication and public key authentication, the problems begin....
if i choose to use a public key whan i log from putty i have the following message :
Unable to use key file "G:Documents and SettingsJohn DoeMes documentsssh_public_keysjohn doe" (not a private key)
if i choose to use a private key :
if i write down the rigth passphrase i get an acces denied, if i wrtie down a bad passphrase i get wrong passphrase.
In the first case it ask me my password and refuse it....
ihave read the topic, done as it said but it doesn't work....
In an other subject i'like to know how to change the default connection directory for user ?
Thanks.
P.S.S: sorry for bad english but i'm french ;)
Reply with quote

Espen Austad

Anonymous
          
Re: public key authentication 16-09-2005 12:10
Well i got it working, however the enviroment variable $HOME did not work on this computer (winxp pro), so i had to use absolute paths, but then everything worked perfectly. This might be what is causing others to have problems with this.
Reply with quote

Sparda

Anonymous
          
Re: public key authentication 18-09-2005 04:50
I am also having trouble getting public/privet keys working, I guess it's on a basic level, but with out the basics, how can any thing work? What I'm specificly wanting to know is the layout for the public key (i.e. the sytax). I generated the DSA key, opened it in PuTTYGen and exported the public key, how ever when ever I try to connect it says "Permission denied (publickey)." so I presume there is some thing wrong with the public key, the current sytax for the public key (server side) is as follows "ssh-dss <key gose here> imported-openssh-key" is there any thing wrong with this? The sytax is slightly diffrent on the client "<ip/host name of server> ssh-dss <key gose here> imported-openssh-key". Any surgestions?
Reply with quote

Michael Newton

Anonymous
          
Re: public key authentication 28-11-2005 21:43
Quote:
I am also having trouble getting public/privet keys working, I guess it's on a basic level, but with out the basics, how can any thing work? What I'm specificly wanting to know is the layout for the public key (i.e. the sytax). I generated the DSA key, opened it in PuTTYGen and exported the public key, how ever when ever I try to connect it says "Permission denied (publickey)." so I presume there is some thing wrong with the public key, the current sytax for the public key (server side) is as follows "ssh-dss <key gose here> imported-openssh-key" is there any thing wrong with this? The sytax is slightly diffrent on the client "<ip/host name of server> ssh-dss <key gose here> imported-openssh-key". Any surgestions?


I had this problem as well; you need to copy the public key out of the PuTTYGen screen, instead of exporting it.

My question now though, is what do I do when someone emails me their public key for access to the server? They will email me the version exported from PuTTYGen, which doesn't seem to work. Key data seems the same, but it's in a different format.
Reply with quote

bourlas

Anonymous
          
Re: public key authentication 05-12-2005 21:39
freesshd author please make a proper "how to" because this program
seems intresting and as it is now, alot of people can not
use it

I tried both kind of keys from puttygen, I tried copy paste for the public key and the export functions but every time it asks me for a login and password? moreover, i tried relative and absolute paths, in a few words i tried every option, I even tried to add a user eventhough it is a key authentication.

it seems there is a bug or something which is a
little detail and it does taken into account

Thanks in advance
Bourlas
Reply with quote

Bourlas

Anonymous
          
Re: public key authentication 07-12-2005 12:29
A user from another forum suggested to take a look on the following
page, it was what I was looking for, it explains how to convert keys
from openssh to putty format and I think it would be of help to all
the users

http://theillustratednetwork.mvps.org/Ssh/Private-publicKey.html
Reply with quote

Chad Amberg

Anonymous
          
Re: public key authentication 31-12-2005 17:48
I would like to see one more variable, $USERNAME.
I'd rather have all user keys kept in one location, such as:
c:Program FilesFreeSSHDuserkeys$USERNAME

I think it would also save a lot of the problems that people are having.
Reply with quote

Richard Davies

Anonymous
          
Re: public key authentication 21-01-2006 22:16
Quote:
Finally got it working here.

4. create file called 'engineer' with openssh key of the form

ssh-dss Blurb<cut>Blurb Some Comment

Note that there MUST be a comment after the key (separated
by a space) or the key don't work!

The problem I had was that I did not have a comment after the key. Putting some arbitrary text in as a comment started things working!

Matthewcool.gif


Could someone please provide an example of the contents of their public key file? I'm trying to use a different client (from www.ssh.com) and can't seem to get it to work. I wonder if the format of the public key it exports is different or something.

Thanks!
Reply with quote

mitchymagic
Network Solution designer

Postings: 2
Newcomer
          
Re: public key authentication 20-02-2006 18:37
Hi,

Ive read through the issues people have been having using public key encryption, I had pulled my hair out too so i thought it might be of some benefit to detail my experiences for anyone still struggling.
This is what worked for me -

Setup - Laptop winxp running freesshd
- Desktop winxp running , putty , winscp client

First things first -

1) On winsshd server create your user account, i.e. mitchell.dawson and select NT authentication.
Under " authentication " disable password authentication and allow public key authentication.

2) On the server machine create a directory under the users profile like this example - C:Documents and Settingsmitchell.dawsonssh_public_keys

3) Using PuttyGen generate an openssh keypair, copy the public key output hash into a notepad document and save into the directory you created i.e C:Documents and Settingsmitchell.dawsonssh_public_keys. The name of the file has to be exactley the same as the username thats logging on i.e. the user account that you created in step 1.

4)Now some of you doing this im guessing arent setup to show file extensions automatically. i.e you see a notepad file because of the icon and not because it has a .txt extension. If you go to my computer , tools , folder options , view , untick " hide extensions for know file types " click apply etc.

5) Now go into your created directory and you should see your saved pulic key notepad doc with a .txt extension, like this " mitchell.dawson.txt . Right click the file and select rename, then delete the .txt extension. The icon will change from a text pad icon to an unknow file format icon.

6) Hopefully you havent closed down puttygen by this stage !! click save private key ( I didnt use a passphrase this time round so i recommend you dont until your more familiar with the setup )
ignore the passphrase prompt and save somewhere safe as you need to tranfser this to the client machine.

7)In freesshd under authentication , enter your path for the public key , my example being - C:Documents and Settingsmitchell.dawsonssh_public_keys

click apply and save etc

8) Transfer your saved private key onto your client machine, open putty and enter the server ip address , under authentication , tick all boxes and browse for your saved private key.

9) open the session , and you should be met with the username prompt ( this is the account that you created in step 1, enter eg mitchell.dawson

10) If all has gone to plan the you should see -

login as: mitchell.dawson
Authenticating with public key "rsa-key-20060220"
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:Documents and Settingsmitchell.dawsonDesktop>

I appreciate others have differnet ways of doing the same thing, but i was scratching my head , and just by trial and error managed to nail it. Feel free to drop me a mail , and ill try and assist if i can -

Cheers
Reply with quote

JeromeC

Postings: 5
Newcomer
          
Re: public key authentication 07-03-2006 15:46

Succes !

My config : Win XP Pro SP 2 on both server and client machines.

My parameters :

1. SSH Authentication
- Password Authentication allowed
- Public Key Authencation allowed
- Path for Public Key : D:Public_Keys [I didn't want to deal with multi user paths] [this board doesn't want to display backslash, be careful]

2. D:Public_Keys directory
one file, "myusername." [the name of the FreeSSHD user I use to connect]
the public key was pasted from the puttygen window, not exported, one row with no line break

3. On the client PC, Putty is run with following settings
- Connection / Data / Login Details / auto-login username : myusername
- Connection / SSH / Auth / Authentication Parameters / Private Key file for authentication : <full path to file on client PC> [the exported private key file from puttygen]

It's possible to connect like this already, I have set a passphrase on my key, so additionally I use Pageant on the client PC. Once Pageant is initialised at PC startup, no more manual input is required to login.

And so I also use Callinghome on the client PC, because I like it and I don't have anything more to do manually after the daily passphrase input :-)

Jerome

____________________________________
Jerome C

Reply with quote
Postings: 1-10 11-20 21-30 31-40 41-50 51-60 61-70 71-80 81-82  >>  

Search the forum

Latest posts

Current version

Related sites

Internet & Security Components

VPN and Instant Messaging - all in one!