OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: [suse-security] encore:.. winscp& openssh

From: Dirk Schreiner (Dirk.Schreinertria.de)
Date: Wed Dec 14 2005 - 12:21:39 CST


Hi,

Miguel ALBUQUERQUE wrote:
> piet <prooroawanadoo.nl> wrote on 14.12.2005 17:04:19:
>
>> ok people,
>>
>> server is 9.3 suse open ssh
>>
>> xp-box is winscp.
>> I made a public & private key with PuTTY, copy-paste the public to a
>> text file: renamed it public.pub
>> put it in /home/xxxx/.ssh
>>

You did export it as openssh-key right?

>> did:
>> touch authorized_keys
>> chmod 600 authorized_keys
>> cat public.pub >>authorized_keys
>> rm public.pub
>>
>> loaded private key (private.pkk) in peagent key on de xp-box
>>
>> but cannot login why????

I guess, becaus you didn`t ;-) .

Give it a try the other way:

use ssh-keygen on the linux box.

ssh-keygen -b 4096 -t rsa -C my_linux_box_key -f my_linux_box_key

Give a propper passphrase.

cat my_linux_box_key.pub >> authorized_keys

Copy the my_linux_box_key to youre win Box, and open
the key with puttygen.
Save it afterwards in ppk format and use this key to
connect to the linux box.

Test the connection.

Delete the private key on the Linux Box.

Have fun.

      Dirk
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
TRIA IT-consulting GmbH
Joseph-Wild-Straße 20
81829 München
Germany
Tel: +49 (89) 92907-0
Fax: +49 (89) 92907-100
http://www.tria.de
 
 
Registergericht München HRB 113466
USt.-IdNr. DE 180017238 Steuer-Nr. 802/40600
Geschäftsführer: Richard Hofbauer
kaufm. Geschäftsleitung: Rosa Igl--------------------------------------------------------
Nachricht von: Dirk.Schreinertria.de
Nachricht an: miguel.albuquerquecodalis.ch, prooroawanadoo.nl, suse-securitysuse.com
# Dateianhänge: 0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

--
Check the headers for your unsubscription address
For additional commands, e-mail: suse-security-helpsuse.com
Security-related bug reports go to securitysuse.de, not here