From: Michael Shigorin <mike@altlinux.org>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] соединить два домашних компа по ssh
Date: Mon, 30 Mar 2020 22:22:13 +0300
Message-ID: <20200330192212.GV13395@imap.altlinux.org> (raw)
In-Reply-To: <CAN5SjACP5LX3WjsiH2m7WkHLax+tF9zCm-Ajhf37ov3bo_fmWQ@mail.gmail.com>
On Mon, Mar 30, 2020 at 09:37:13PM +0300, Michael Bykov wrote:
> > > Нужен необходимый минимум.
> > Левый порт вместо :22 и control sshd-password-auth disabled
> > (при сгенерированных и разложенных ключиках) на него тянут,
> > полагаю.
> Я в файле sshd_config уже все перепробовал, вот и боюсь, что
> лишнего напортачил. А вменяемого современного и под Alt образца
> нет.
Сгенерируй ключики, ed25519 вполне подойдут для p9:
http://altlinux.org/ssh
Если или когда можешь добраться до удалённой стороны -- положи
строчку из _публичного_ ключа в /root/.ssh/authorized_keys
и проверь, что получается добраться по ключу.
Затем сделай apt-get reinstall openssh-server; видимо,
верни после этого пакетный конфиг из .rpmnew рядом
(это чтобы "лишнего напортачил" не висело над головой;
в принципе можно и из пакета вытащить файлик в mc).
Дальнейшее предполагает доступность или проброшенность
упоминаемых портов -- разумеется, не стоит обрывать себе
единственный доступный :22 удалённо.
Раскомментируй и поменяй Port на, скажем, четыре двойки
в /etc/openssh/sshd_config, затем выполни
control sshd-password-auth disabled
service sshd reload
Проверь наличие доступа с помощью ssh -p2222 кем@туда.
Как-то так...
--
---- WBR, Michael Shigorin / http://altlinux.org
------ http://opennet.ru / http://anna-news.info
next prev parent reply other threads:[~2020-03-30 19:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-30 17:05 Michael Bykov
2020-03-30 18:15 ` Michael Shigorin
2020-03-30 18:37 ` Michael Bykov
2020-03-30 19:22 ` Michael Shigorin [this message]
2020-03-31 18:10 ` Alexander Yereschenko
2020-03-31 19:17 ` Michael Bykov
2020-04-02 13:22 ` Michael Bykov
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=20200330192212.GV13395@imap.altlinux.org \
--to=mike@altlinux.org \
--cc=sisyphus@lists.altlinux.org \
/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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git