<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>I asked:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">When I ssh into the same host from a remote, 'loginctl list-sessions'<br /> shows that no new session is created, and XDG_SESSION_COOKIE variable is<br /> unset.</blockquote>
</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Lennart responded:</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Yeah, this should have the same effect. Maybe "pam_systemd" is missing<br /> from the PAM configuration for your ssh? Or maybe you are running a<br /> system where PAM is turned off entirely for ssh? Which distro is this?</div>
</blockquote>
<p> Ah yes, I see that I had "UsePAM no" in /etc/ssh/sshd_config. Thanks! I wouldn't ask for assistance with sshd configuration on this mailing list, but thought I had misunderstood systemd-logind.</p>
<p>Once "UsePAM yes" is inserted in /etc/ssh/sshd_config and ssh.service is restarted, password logins are still refused, but public-key login results in a new session with appropriate cookie but not seat, which is what I would have expected.</p>
<p>Thanks,</p>
<p>Alison</p>
<div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">---<br /> Alison Chaiken <a href="mailto:alison@she-devel.com">alison@she-devel.com</a>, 650-279-5600</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><a href="http://{she-devel.com,exerciseforthereader.org">http://{ she-devel.com, exerciseforthereader.org</a> }<br /> "There is expressive potential in not being together." -- Mark Volkert, Assistant Concertmaster, San Francisco Symphony</div>
</div>
</body></html>