ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: cornet <cornet@zmail.ru>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: [mdk-re] Несколько вопросов
Date: Mon Jul  2 12:13:00 2001
Message-ID: <3B402FB1.A35A3F81@zmail.ru> (raw)
In-Reply-To: <20010702110059.A23731@enformia.com>

Michael Orlov wrote:
> 
> Всем трямс!
skip.

Взаимно трямс!

>         c. Как я уже говорил -- момед только на компе N2. Можно ли
> заставить его запускаться по команде с компа N1? Пока что
> приходится делать ssh на комп N2 и потом запускать.... Не красиво
> ;-) Хотелось ба поэлегантней ;-)

1 В качестве простейшего варианта использовать expect, но при
этом пароль от захода на N1 будет лежать открытым текстом в
скрипте expect'а. В качестве генерилки скрипта очень рекомнндую
autoexpect с последующей правкой результата ручками.

2 А еще можно прямо в строке ssh передать на выполнение команду
ifup ppp0. Тогда придется пасворд каждый раз ручками вводить, за
то секюрнее :-)

3 Можно на perl'е простейшего демоненка написать, который будет
стартовать при загрузке N2, сечь указанный порт и как только туда
придет чонть правильное - запустит момед, или остановит его.
Клиентсую часть сделать на telnet с указанием порта и
автоматизацией через тот же expect. Для секюрности рабочий порт
прикрыть снаружи ipchains а для параноиков еще и ограничить
доступ туда изнутри только тачкой N1. Тогда ваще никаких
пасвордов не потребуется. Текст демоненка могу выслать личным
мылом :-)

skip.
-- 
******** FIRE & STEEL ********



  reply	other threads:[~2001-07-02 12:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-02 11:49 Michael Orlov
2001-07-02 12:13 ` cornet [this message]
2001-07-02 16:36 ` Konstantin Volckov
2001-07-06 19:49 ` Michael Shigorin

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=3B402FB1.A35A3F81@zmail.ru \
    --to=cornet@zmail.ru \
    --cc=mandrake-russian@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