I have installed JupyterHub on AWS EC2 (AMI : Linux 2) following the steps mentioned Install JupyterHub and JupyterLab from the ground up .
Completing Part 1[Setup Systemd service] and starting JupyterHub as a service, I am able to access JupyterHub. But what is the admin user I login as?
If I start jupyterhub in debug mode it gives the error :
[W 2021-02-11 10:35:16.353 JupyterHub auth:1039] PAM Authentication failed (jhadmin@::ffff:220.127.116.11): [PAM Error 7] Authentication failure [W 2021-02-11 10:35:16.353 JupyterHub base:764] Failed login for jhadmin [I 2021-02-11 10:35:16.355 JupyterHub log:181] 200 POST /hub/login?next=%2Fhub%2F (@::ffff:18.104.22.168) 1957.93ms
I connect to AWS EC2 with SSH as ec2-user using my PEM file .
In TLJH install it asked for an admin user and password to be given . I couldn’t install TLJH as my OS is Linux 2 and it failed with only supported on Ubuntu.
Issue seems similar to - Invalid username or password · Issue #3049 · jupyterhub/jupyterhub · GitHub
Any pointers would be very helpful regarding PAM authentication on AWS EC2.