Thank you for you answer, I use a rsa key, so I adapt the command:
scet...@chws0018 /cygdrive/c/Documents and Settings/scettou/Desktop/key $ scp -o PubkeyAuthentication=no id_rsa.pub scet...@10.4.15.5:tempKey scet...@10.4.15.5's password: id_rsa.pub 100% 225 0.2KB/s 00:00 scet...@chws0018 /cygdrive/c/Documents and Settings/scettou/Desktop/key $ ssh -o PubkeyAuthentication=no scet...@10.4.15.5 scet...@10.4.15.5's password: Last login: Tue Dec 22 13:06:30 2009 from scbsprod.servcenterxa.ch scet...@scbsprod ~ $ cat tempKey >> .ssh/authorized_keys scet...@scbsprod ~ $ exit logout Connection to 10.4.15.5 closed. scet...@chws0018 /cygdrive/c/Documents and Settings/scettou/Desktop/key $ ssh scet...@10.4.15.5 Connection closed by 10.4.15.5 So....what I can do? Stéphanie 2009/12/22 René Berber <r.ber...@computer.org>: > Stéphanie Cettou wrote: > >> I have a problem, I will connection with key mode in my openSSH >> server. In can connect with my password. > > So this way it works. > >> I have cop[ied] m[y] public key [to] home/myUser/.ssh/authorized_keys. > > Which public key? You may have several around... > >> When I connect with winSCP, I have an error: >> The server expected closed connection. >> Authentification error. >> >> And if connect with cygwin: >> ssh myu...@10.4.15.5 >> Connection closed by 10.4.15.5 >> >> I generate the keys in my client pc (xp) with PuTTYgen. > > This is the key you refer above? This is probably the cause of the > problem, are all the different programs you are using as client using > the same pair of keys (public and private)? > > Let's try a simple test: > > In your client computer, in a terminal under your Cygwin user home > directory run the following > > scp -o PubkeyAuthentication=no .ssh/id_dsa.pub myu...@10.4.15.5:tempKey > ssh -o PubkeyAuthentication=no myu...@10.4.15.5 > cat tempKey >> .ssh/authorized_keys > exit > ssh myu...@10.4.15.5 > > Did that work as expected? > > I don't know PuTTYgen or what's the deal with .ppk keys; know even less > about winSCP so no comments there. > -- > René Berber > > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple