ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [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

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