Mailinglist Archive: opensuse-security (138 mails)

< Previous Next >
Re: [suse-security] encore:.. winscp& openssh
  • From: "Dirk Schreiner" <Dirk.Schreiner@xxxxxxx>
  • Date: Wed, 14 Dec 2005 19:21:39 +0100
  • Message-id: <43A062B3.3060205@xxxxxxx>
Hi,

Miguel ALBUQUERQUE wrote:
> piet <prooroa@xxxxxxxxxx> 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.Schreiner@xxxxxxx
Nachricht an: miguel.albuquerque@xxxxxxxxxx, prooroa@xxxxxxxxxx, suse-security@xxxxxxxx
# Dateianhänge: 0























< Previous Next >
References