Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ssh defaults to coming in as user "root"?
Date: Sat, 11 Jul 2020 05:13:31
Message-Id: 20200711051241.GA21618@waltdnes.org
In Reply to: Re: [gentoo-user] ssh defaults to coming in as user "root"? by Walter Dnes
1 On Fri, Jul 10, 2020 at 08:36:03PM -0400, Walter Dnes wrote
2 >
3 > The question is how did .ssh/config ever get there in the first place?
4
5 Would the following activity trigger creation of .ssh/config ??
6
7 * at the end of the Gentoo minimal install I rebooted
8 * oops; can't do passwordless ssh in to root (the only account)
9 * walked over to laptop; tweaked sshd_config to allow root login via
10 password (I'm behind a NATting router); and restarted sshd
11 * ssh into laptop and ran ssh-keygen
12 * walked back to desktop and pushed .ssh/id_rsa.pub from desktop root
13 and waltdnes accounts to .ssh/authorized_keys on laptop
14 * confirmed that desktop could do passwordless ssh to laptop
15 * walked over to laptop; tweaked sshd_config to forbid root login via
16 password; and restarted sshd
17
18 --
19 Walter Dnes <waltdnes@××××××××.org>
20 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] ssh defaults to coming in as user "root"? Grant Taylor <gtaylor@×××××××××××××××××××××.net>