ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Прокопьев Евгений" <john@rmts.donpac.ru>
To: community@altlinux.ru
Subject: Re: [Comm] openssh и ключевые файлы
Date: Tue, 17 Sep 2002 14:53:50 +0400
Message-ID: <3D8709BE.6070904@rmts.donpac.ru> (raw)
In-Reply-To: <3D8702C5.1080802@rmts.donpac.ru>

Прокопьев Евгений wrote:
> Здравствуйте!
> 
> А все-таки, использует ли кто-нибудь для авторизации по openssh ключевые 
> файлы?

Да я уже жаловался, но тут были такие проблемы, что не до меня с моими 
ключами :-)

ОС - Мастер, openssh установлен по умолчанию. С помощью ssh-keygen -t 
dsa были сделаны ключи, и id_dsa.pub скопирован в authorized_keys. Вот 
содержимое ~/.ssh:

[john@john john]$ ls .ssh/ -l
итого 16
srw-------    1 john     firebird        0 Сен 10 13:05 agent
-rw-r--r--    1 john     firebird      614 Сен 10 11:40 authorized_keys
-rw-------    1 john     firebird      736 Сен 10 11:38 id_dsa
-rw-r--r--    1 john     firebird      614 Сен 10 11:38 id_dsa.pub
-rw-r--r--    1 john     firebird      219 Сен 10 11:41 known_hosts

ssh localhost отрабатывает замечательно:

[john@john john]$ ssh localhost
Enter passphrase for key '/home/john/.ssh/id_dsa':
Last login: Tue Sep 10 13:05:46 2002 from localhost.localdomain
[john@john john]$ exit
Connection to localhost closed.

На соседней машине стоит NT4, запускаю putty, в 
Connection->SSH->Auth->Private key file for authentication указываю путь 
к файлу id_dsa и получаю:

login as: john
Sent username "john"
Trying public key authentication.
No passphrase required.
Couldn't load private key from E:\Temp\id_dsa.
john@192.168.10.90's password:

В логах за сегодня следующее:

[root@john john]# fgrep -r sshd /var/log | grep 'Sep 17'
/var/log/auth/all:Sep 17 08:00:46 john sshd[946]: Server listening on 
0.0.0.0 port 22.
/var/log/auth/all:Sep 17 14:46:44 john sshd[2609]: Connection closed by 
192.168.10.103
/var/log/auth/messages:Sep 17 08:00:46 john sshd[946]: Server listening 
on 0.0.0.0 port 22.
/var/log/auth/messages:Sep 17 14:46:44 john sshd[2609]: Connection 
closed by 192.168.10.103
/var/log/user/info:Sep 17 08:00:46 john sshd: sshd startup succeeded
/var/log/messages:Sep 17 08:00:46 john sshd[946]: Server listening on 
0.0.0.0 port 22.
/var/log/messages:Sep 17 08:00:46 john sshd: sshd startup succeeded
/var/log/messages:Sep 17 14:46:44 john sshd[2609]: Connection closed by 
192.168.10.103
/var/log/syslog/messages:Sep 17 08:00:46 john sshd[946]: Server 
listening on 0.0.0.0 port 22.
/var/log/syslog/messages:Sep 17 08:00:46 john sshd: sshd startup succeeded
/var/log/syslog/messages:Sep 17 14:46:44 john sshd[2609]: Connection 
closed by 192.168.10.103
[root@john john]#


-- 
С уважением, Прокопьев Евгений



  parent reply	other threads:[~2002-09-17 10:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-17 10:24 Прокопьев Евгений
2002-09-17 10:20 ` Igor Homyakov
2002-09-17 10:36 ` [Comm] " Vitaly Ostanin
2002-09-17 10:49 ` [Comm] " Прокопьев Евгений
2002-09-17 10:53 ` Прокопьев Евгений [this message]
2002-09-17 12:17   ` Sergey V. Golovin
2002-09-17 12:29     ` Прокопьев Евгений
2002-09-17 13:14       ` Sergey V. Golovin
2002-09-17 11:04 ` [Comm] " Michael Shigorin
2002-09-17 12:04 ` [Comm] " Sergey V. Golovin
2002-09-17 12:19   ` Прокопьев Евгений
2002-09-17 13:18     ` Sergey V. Golovin
2002-09-18  5:27       ` Прокопьев Евгений
2002-09-18  5:54         ` Sergey V. Golovin

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=3D8709BE.6070904@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