SSH not honoring use of ~/.ssh/authorized_keys
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Have tested this successfully on other distros, used the same steps to updating /etc/ssh/
Simple test
mkdir -m 700 ~/.ssh
cd ~/.ssh
ssh-keygen -t rsa -b 4096
press enter to accept the defaults and empty passphrase
cp id_rsa.pub authorized_keys
ssh localhost /bin/date
works
mv id-rsa $(hostname -s)
mv id-rsa.pub $(hostname -s).pub
ssh localhost /bin/date
**fails. this works on CentOS, RHEL
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: openssh-server 1:8.0p1-6build1
ProcVersionSign
Uname: Linux 5.3.0-1014-raspi2 aarch64
ApportVersion: 2.20.11-0ubuntu8.2
Architecture: arm64
Date: Sat Jan 4 12:42:58 2020
ExecutablePath: /usr/sbin/sshd
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SourcePackage: openssh
UpgradeStatus: No upgrade log present (probably fresh install)
Also, i just tested this on Ubuntu 17.10 "Artful" as well so it seems to not be a problem for 19.10.