* [Comm] OpenSSH: открытый ключ
@ 2003-05-10 7:37 Прокопьев Евгений
2003-05-10 16:20 ` [Comm] " Vitaly Ostanin
2003-05-12 11:07 ` [Comm] " Valentin Nechayev
0 siblings, 2 replies; 4+ messages in thread
From: Прокопьев Евгений @ 2003-05-10 7:37 UTC (permalink / raw)
To: community
Здравствуйте!
Пытаюсь настроить авторизацию в OpenSSH по паре ключей:
Файлы в /etc/openssh не менялись. Я сделал следующее:
[john@athlon .ssh]$ ssh-keygen -t rsa1
Generating public/private rsa1 key pair.
Enter file in which to save the key (/home/john/.ssh/identity):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/john/.ssh/identity.
Your public key has been saved in /home/john/.ssh/identity.pub.
The key fingerprint is:
88:da:58:1d:5a:b5:c5:fd:c1:16:c0:eb:48:47:c2:2a john@athlon.home
[john@athlon .ssh]$ cat identity.pub >> authorized_keys
[john@athlon .ssh]$ ssh athlon.home
john@athlon.home's password:
^C
[john@athlon .ssh]$ ssh athlon.home -i identity
john@athlon.home's password:
^C
Т.е. у меня все равно спрашивают пароль. Я пытался вписать
PasswordAuthentication no в /etc/openssh/shhd_config, но после
перезапуска sshd я получил
[john@athlon john]$ ssh athlon.home
Permission denied (publickey).
Хотя
[john@athlon john]$ ls -l .ssh/
итого 16
srw------- 1 john john 0 Май 10 10:18 agent
-rw-r--r-- 1 john john 869 Май 10 11:19 authorized_keys
-rw------- 1 john john 979 Май 10 11:18 identity
-rw-r--r-- 1 john john 643 Май 10 11:18 identity.pub
-rw-r--r-- 1 john john 405 Май 10 11:20 known_hosts
Что я делаю не так?
И еще вопрос: как сделать ключи для версии 2? man ssh-keygen не помог.
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Comm] Re: OpenSSH: открытый ключ
2003-05-10 7:37 [Comm] OpenSSH: открытый ключ Прокопьев Евгений
@ 2003-05-10 16:20 ` Vitaly Ostanin
2003-05-12 10:21 ` Прокопьев Евгений
2003-05-12 11:07 ` [Comm] " Valentin Nechayev
1 sibling, 1 reply; 4+ messages in thread
From: Vitaly Ostanin @ 2003-05-10 16:20 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 557 bytes --]
Прокопьев Евгений пишет:
> Здравствуйте!
>
> Пытаюсь настроить авторизацию в OpenSSH по паре ключей:
<skipped/>
> [john@athlon .ssh]$ cat identity.pub >> authorized_keys
Нужно сделать
$ scp ~/.ssh/id_dsa.pub remote_host:.ssh/authorized_keys2
<skipped/>
> И еще вопрос: как сделать ключи для версии 2? man ssh-keygen не помог.
В первом абзаце этого мана упоминается "-t dsa". Для грядущей
паранойи можно сразу добавить "-b 2048" и убедиться, что не
используете пустую парольную фразу.
--
Regards, Vyt
mailto: vyt@vzljot.ru
JID: vyt@vzljot.ru
[-- Attachment #2: Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] Re: OpenSSH: открытый ключ
2003-05-10 16:20 ` [Comm] " Vitaly Ostanin
@ 2003-05-12 10:21 ` Прокопьев Евгений
0 siblings, 0 replies; 4+ messages in thread
From: Прокопьев Евгений @ 2003-05-12 10:21 UTC (permalink / raw)
To: community
Vitaly Ostanin пишет:
> Прокопьев Евгений пишет:
>
>> Здравствуйте!
>>
>> Пытаюсь настроить авторизацию в OpenSSH по паре ключей:
>
>
> <skipped/>
>
>> [john@athlon .ssh]$ cat identity.pub >> authorized_keys
>
>
> Нужно сделать
> $ scp ~/.ssh/id_dsa.pub remote_host:.ssh/authorized_keys2
>
> <skipped/>
>
>> И еще вопрос: как сделать ключи для версии 2? man ssh-keygen не помог.
>
>
> В первом абзаце этого мана упоминается "-t dsa". Для грядущей паранойи
> можно сразу добавить "-b 2048" и убедиться, что не используете пустую
> парольную фразу.
>
Все проще: ssh-keygen -t rsa - тогда создаются ключи для SSH2, а
проблема подключения отпадает сама собой. authorized_keys2 не при чем.
Только в мане этого нет, установлено методом случайного нажатия на клавиши.
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] OpenSSH: открытый ключ
2003-05-10 7:37 [Comm] OpenSSH: открытый ключ Прокопьев Евгений
2003-05-10 16:20 ` [Comm] " Vitaly Ostanin
@ 2003-05-12 11:07 ` Valentin Nechayev
1 sibling, 0 replies; 4+ messages in thread
From: Valentin Nechayev @ 2003-05-12 11:07 UTC (permalink / raw)
To: community
Sat, May 10, 2003 at 11:37:38, john wrote about "[Comm] OpenSSH: открытый ключ":
> [john@athlon .ssh]$ ssh-keygen -t rsa1
[...]
> [john@athlon .ssh]$ ssh athlon.home -i identity
> john@athlon.home's password:
> ^C
>
> Т.е. у меня все равно спрашивают пароль. Я пытался вписать
Добавь -1 к вызову ssh - должно пройти. По умолчанию же скорее всего идёт
2-м протоколом, который знает не rsa1, а rsa или dsa.
> И еще вопрос: как сделать ключи для версии 2? man ssh-keygen не помог.
Типы rsa, dsa.
-netch-
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-05-12 11:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-10 7:37 [Comm] OpenSSH: открытый ключ Прокопьев Евгений
2003-05-10 16:20 ` [Comm] " Vitaly Ostanin
2003-05-12 10:21 ` Прокопьев Евгений
2003-05-12 11:07 ` [Comm] " Valentin Nechayev
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git