* [Comm] ssh-add can't connect to ssh-agent
@ 2003-03-12 11:19 Artem K. Jouravsky
2003-03-12 16:01 ` [Comm] " Alexey Tourbin
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Artem K. Jouravsky @ 2003-03-12 11:19 UTC (permalink / raw)
To: ALT community
[-- Attachment #1: Type: text/plain, Size: 1126 bytes --]
Доброго времени суток!
В Мастере 2.2 не работает проверенная уже связка ssh-agent + ssh-add,
что довольно неудобно, у меня парли на ключи чуть ли не длиннее паролей
на сами удалённые машины :)
[ujo@antarktida ujo]$ ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-XXgTLuE1/agent.13877; export SSH_AUTH_SOCK;
SSH_AGENT_PID=13878; export SSH_AGENT_PID;
echo Agent pid 13878;
[ujo@antarktida ujo]$ ps waxu|grep ssh|grep -v grep
root 1226 0.0 0.4 2596 1208 ? S 09:14 0:00
/usr/sbin/sshd
ujo 13170 0.0 0.5 2564 1420 pts/1 S 13:54 0:00 ssh ujo
ujo 13878 0.0 0.3 2144 776 ? S 14:16 0:00 ssh-agent
[ujo@antarktida ujo]$ ssh-add
Could not open a connection to your authentication agent.
[ujo@antarktida ujo]$ ssh ujo
Enter passphrase for key '/home/ujo/.ssh/id_dsa':
В чём может быть проблема? На рабочей машине всё работает нормально. Или
нормально как тут, а на работе что-то испорчено??
man ssh-agent не просветил
--
Best wishes, | ICQ 103399444
Artem K. Jouravsky, | JID ujo@jabber.ru
iFirst Ltd, System Administrator.
-----------------------
Шутить шути, а долги плати
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Comm] Re: ssh-add can't connect to ssh-agent
2003-03-12 11:19 [Comm] ssh-add can't connect to ssh-agent Artem K. Jouravsky
@ 2003-03-12 16:01 ` Alexey Tourbin
2003-03-12 18:21 ` [Comm] " Dmitry V. Levin
2003-03-12 19:08 ` [Comm] " Alexey Tourbin
2 siblings, 0 replies; 8+ messages in thread
From: Alexey Tourbin @ 2003-03-12 16:01 UTC (permalink / raw)
To: ALT community
[-- Attachment #1: Type: text/plain, Size: 599 bytes --]
On Wed, Mar 12, 2003 at 02:19:49PM +0300, Artem K. Jouravsky wrote:
> [ujo@antarktida ujo]$ ssh-agent
> SSH_AUTH_SOCK=/tmp/ssh-XXgTLuE1/agent.13877; export SSH_AUTH_SOCK;
> SSH_AGENT_PID=13878; export SSH_AGENT_PID;
> echo Agent pid 13878;
> [ujo@antarktida ujo]$ ssh-add
> Could not open a connection to your authentication agent.
> В чём может быть проблема? На рабочей машине всё работает нормально. Или
> нормально как тут, а на работе что-то испорчено??
> man ssh-agent не просветил
А если
$ exec ssh-agent $SHELL
$ ssh-add
то работает?
$ strace ssh-add 2>&1 | grep ')* = -[0-9]\+ *E'
?
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] ssh-add can't connect to ssh-agent
2003-03-12 11:19 [Comm] ssh-add can't connect to ssh-agent Artem K. Jouravsky
2003-03-12 16:01 ` [Comm] " Alexey Tourbin
@ 2003-03-12 18:21 ` Dmitry V. Levin
2003-03-13 6:19 ` Alexey I. Froloff
2003-03-12 19:08 ` [Comm] " Alexey Tourbin
2 siblings, 1 reply; 8+ messages in thread
From: Dmitry V. Levin @ 2003-03-12 18:21 UTC (permalink / raw)
To: ALT Linux general discussion list
[-- Attachment #1: Type: text/plain, Size: 759 bytes --]
On Wed, Mar 12, 2003 at 02:19:49PM +0300, Artem K. Jouravsky wrote:
> В Мастере 2.2 не работает проверенная уже связка ssh-agent + ssh-add,
> что довольно неудобно, у меня парли на ключи чуть ли не длиннее паролей
> на сами удалённые машины :)
Что-то у вас не так в "проверенной" связке.
Цитирую ssh-agent(1):
"There are two main ways to get an agent setup: Either the agent starts a
new subcommand into which some environment variables are exported, or the
agent prints the needed shell commands (either sh(1) or csh(1) syntax can
be generated) which can be evalled in the calling shell. Later ssh(1)
looks at these variables and uses them to establish a connection to the
agent."
Короче,
eval ssh-agent
См. тж. /etc/X11/profile.d/ssh-agent.sh
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] ssh-add can't connect to ssh-agent
2003-03-12 18:21 ` [Comm] " Dmitry V. Levin
@ 2003-03-13 6:19 ` Alexey I. Froloff
2003-03-14 15:48 ` Dmitry V. Levin
0 siblings, 1 reply; 8+ messages in thread
From: Alexey I. Froloff @ 2003-03-13 6:19 UTC (permalink / raw)
To: ALT Linux general discussion list
[-- Attachment #1: Type: text/plain, Size: 390 bytes --]
On Wed, Mar 12, 2003 at 09:21:38PM +0300, Dmitry V. Levin wrote:
> Короче,
> eval ssh-agent
> См. тж. /etc/X11/profile.d/ssh-agent.sh
^^^
Кстати, почему так?
--
Regards, Alexey I. Froloff
AIF5-RIPN, AIF5-RIPE
------------------------------------------
Inform-Mobil, Ltd. System Adminitrator
http://www.inform-mobil.ru/
Tel: +7(095)504-4709, Fax: +7(095)513-1006
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Comm] Re: ssh-add can't connect to ssh-agent
2003-03-12 11:19 [Comm] ssh-add can't connect to ssh-agent Artem K. Jouravsky
2003-03-12 16:01 ` [Comm] " Alexey Tourbin
2003-03-12 18:21 ` [Comm] " Dmitry V. Levin
@ 2003-03-12 19:08 ` Alexey Tourbin
2003-03-12 20:46 ` Artem K. Jouravsky
2 siblings, 1 reply; 8+ messages in thread
From: Alexey Tourbin @ 2003-03-12 19:08 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 642 bytes --]
On Wed, Mar 12, 2003 at 02:19:49PM +0300, Artem K. Jouravsky wrote:
> Доброго времени суток!
> В Мастере 2.2 не работает проверенная уже связка ssh-agent + ssh-add,
> что довольно неудобно, у меня парли на ключи чуть ли не длиннее паролей
> на сами удалённые машины :)
> [ujo@antarktida ujo]$ ssh-agent
:'<,'>s/^[^$]*$//g
> [ujo@antarktida ujo]$ ssh-agent
> [ujo@antarktida ujo]$ ps waxu|grep ssh|grep -v grep
> [ujo@antarktida ujo]$ ssh-add
> [ujo@antarktida ujo]$ ssh ujo
А-а! Так для текущего шелла надо запускать
$ eval `ssh-agent`
а не просто
$ ssh-agent
Сравните вывод команды
$ printenv | grep SSH
в одном и в другом случае.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Comm] Re: ssh-add can't connect to ssh-agent
2003-03-12 19:08 ` [Comm] " Alexey Tourbin
@ 2003-03-12 20:46 ` Artem K. Jouravsky
0 siblings, 0 replies; 8+ messages in thread
From: Artem K. Jouravsky @ 2003-03-12 20:46 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 882 bytes --]
On Wed, Mar 12, 2003 at 10:08:41PM +0300, Alexey Tourbin wrote:
> On Wed, Mar 12, 2003 at 02:19:49PM +0300, Artem K. Jouravsky wrote:
> > Доброго времени суток!
> > В Мастере 2.2 не работает проверенная уже связка ssh-agent + ssh-add,
> > что довольно неудобно, у меня парли на ключи чуть ли не длиннее паролей
> > на сами удалённые машины :)
> > [ujo@antarktida ujo]$ ssh-agent
>
> :'<,'>s/^[^$]*$//g
>
> > [ujo@antarktida ujo]$ ssh-agent
> > [ujo@antarktida ujo]$ ps waxu|grep ssh|grep -v grep
> > [ujo@antarktida ujo]$ ssh-add
> > [ujo@antarktida ujo]$ ssh ujo
>
> А-а! Так для текущего шелла надо запускать
> $ eval `ssh-agent`
Ahem! Спасибо за подробные ответы, всё заработало.
--
Best wishes, | ICQ 103399444
Artem K. Jouravsky, | JID ujo@jabber.ru
iFirst Ltd, System Administrator.
-----------------------
Утюг Moulinex - заплати и живи спокойно !
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-03-14 16:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-12 11:19 [Comm] ssh-add can't connect to ssh-agent Artem K. Jouravsky
2003-03-12 16:01 ` [Comm] " Alexey Tourbin
2003-03-12 18:21 ` [Comm] " Dmitry V. Levin
2003-03-13 6:19 ` Alexey I. Froloff
2003-03-14 15:48 ` Dmitry V. Levin
2003-03-14 16:05 ` Alexey I. Froloff
2003-03-12 19:08 ` [Comm] " Alexey Tourbin
2003-03-12 20:46 ` Artem K. Jouravsky
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