Deutsch   English   Français   Italiano  
<sovm7k$bf4$1@shakotay.alphanet.ch>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!news.imp.ch!news.alphanet.ch!alphanet.ch!.POSTED.localhost!not-for-mail
From: Marc SCHAEFER <schaefer@alphanet.ch>
Newsgroups: fr.comp.os.linux.configuration
Subject: Re: authentification par =?ISO-8859-1?Q?cl=E9?=
Date: Fri, 10 Dec 2021 13:55:00 -0000 (UTC)
Organization: Posted through ALPHANET
Message-ID: <sovm7k$bf4$1@shakotay.alphanet.ch>
References: <sovlvi$5r4$1@shakotay.alphanet.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 10 Dec 2021 13:55:00 -0000 (UTC)
Injection-Info: shakotay.alphanet.ch; posting-host="localhost:127.0.0.1";
	logging-data="11748"; mail-complaints-to="usenet@alphanet.ch"
User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-18-amd64 (x86_64))
Cancel-Lock: sha256:OwIKcLBV1N3VCTLSDTX0tTAoOkxvo5WrXYNfWGru8ko=
Bytes: 1784
Lines: 17

Jo Engo <yl@icite.fr> wrote:
> Comment générer une paire de clés et où faut-il ranger les clés publiques 
> pour permettre l'authentification par clé de ssh ?

ssh-keygen

mettre les clés privées p.ex. dans ~/.ssh/id_rsa # automatique
et les clés publiques dans ~/.ssh/id_rsa.pub # aussi automatique.

Si on veut activer l'authentification par clé publique sur un serveur
distant, alors déposer ~/.ssh/id_rsa.pub sur
serveur:.ssh/authorized_keys et protéger ça chmod 600.

> et (sshd) M2 me demande mon mot de passe. Comme j'ai le même nom de login 
> sur les deux machines ça passe crème (sinon je devrait faire ssh login@M2 
> mais ce n'est pas le plus important.

M2 a besoin de M1:~/.ssh/id_rsa.pub dans son ~/.ssh/authorized_keys