laziness, impatience, and hubris | |
PerlMonks |
Re^9: [OT] A New Everything ?by afoken (Chancellor) |
on Sep 22, 2020 at 19:07 UTC ( [id://11122093]=note: print w/replies, xml ) | Need Help?? |
It seems fred lacks his public key in the file ~fred/.ssh/authorized_keys. You need to upload that before blocking password logins, e.g. using ssh-copy-id, add add it to the autorhized_keys file. Once that is set up, you should be able to log in using the public key.
Yes and no. It does remove su, but you are supposed to uninstall the entire package, e.g. using apt-get remove package-name on Debian-based distributions. The package name depends on the distribution. On Ubuntu, it's in util-linux, and you really don't want to uninstall that package. Just leave su as is. It won't hurt for now. After the useradd, I go in, and there's nothing in home. That doesn't make sense to me. Home is supposed to be empty, or a copy of /etc/skel/. How should the operating system know what you want to put there? Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|