From: "Прокопьев Евгений" <john@rmts.donpac.ru> To: community@altlinux.ru Subject: [Comm] OpenSSH: открытый ключ Date: Sat, 10 May 2003 11:37:38 +0400 Message-ID: <3EBCAC42.8030809@rmts.donpac.ru> (raw) Здравствуйте! Пытаюсь настроить авторизацию в 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 не помог. -- С уважением, Прокопьев Евгений
next reply other threads:[~2003-05-10 7:37 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-05-10 7:37 Прокопьев Евгений [this message] 2003-05-10 16:20 ` [Comm] " Vitaly Ostanin 2003-05-12 10:21 ` Прокопьев Евгений 2003-05-12 11:07 ` [Comm] " Valentin Nechayev
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=3EBCAC42.8030809@rmts.donpac.ru \ --to=john@rmts.donpac.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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