"Unable to open a session" - unable login to centos server from ezeelogin jump server

Unable to open a session- ssh session fails with pam_systemd(sshd:session): Failed to create session

If you are unable to ssh via the ezsh interface and you get the error "unable to open a session" and you find these error on the remote server in /var/log/secure

 

pam_systemd(sshd:session): Failed to create session: Activation of org.freedesktop.login1 timed out

Do restart systemd-logind.service as follows on Centos7  servers

 

systemctl restart systemd-logind.service

 
Below is a snippet of the error from /var/log/secure

Sep 4 17:56:05 server2 crond[938922]: pam_systemd(crond:session): Failed to create session: Activation of org.freedesktop.login1 timed out
Sep 4 17:56:05 server2 sshd[938752]: pam_systemd(sshd:session): Failed to create session: Activation of org.freedesktop.login1 timed out
Sep 4 17:56:05 server12 sshd[938752]: pam_unix(sshd:session): session opened for user root by (uid=0)
Sep 4 17:56:05 server12 sshd[938752]: debug1: rekey after 4294967296 blocks
Sep 4 17:56:05 server12 sshd[938752]: debug1: rekey after 4294967296 blocks
Sep 4 17:56:05 server12 sshd[938752]: debug1: ssh_packet_set_postauth: called
Sep 4 17:56:05 server12 sshd[938752]: debug1: Entering interactive session for SSH2.
Sep 4 17:56:05 server12 sshd[938752]: debug1: server_init_dispatch
Sep 4 17:56:05 server12 sshd[938752]: debug1: server_input_channel_open: ctype session rchan 0 win 2097152 max 32768
Sep 4 17:56:05 server12 sshd[938752]: debug1: input_session_request
Sep 4 17:56:05 server12 sshd[938752]: debug1: channel 0: new [server-session]
Sep 4 17:56:05 server12 sshd[938752]: debug1: session_new: session 0
Sep 4 17:56:05 server12 sshd[938752]: debug1: session_open: channel 0
Sep 4 17:56:05 server12 sshd[938752]: debug1: session_open: session 0: link with channel 0
Sep 4 17:56:05 server12 sshd[938752]: debug1: server_input_channel_open: confirm session
Sep 4 17:56:05 server12 sshd[938752]: debug1: server_input_global_request: rtype [email protected] want_reply 1
Sep 4 17:56:05 server12 sshd[938752]: Received disconnect from 112.227.16.12 port 49315:11: Channel failed
Sep 4 17:56:05 server12 sshd[938752]: Disconnected from 112.227.16.12 port 49315
Sep 4 17:56:05 server12 sshd[938752]: debug1: do_cleanup
Sep 4 17:56:05 server12 sshd[938752]: debug1: PAM: cleanup
Sep 4 17:56:05 server12 sshd[938752]: debug1: PAM: closing session
Sep 4 17:56:05 server12 sshd[938752]: pam_unix(sshd:session): session closed for

5 (2)
Article Rating (2 Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    502 on login with nginx
    Viewed 1473 times since Wed, Jun 14, 2017
    Blank page when clicking add server
    Viewed 1046 times since Wed, Aug 16, 2017
    LICENSE: No license Please contact [email protected]
    Viewed 1215 times since Wed, Jun 14, 2017
    "Error: LDAP extension is not installed".
    Viewed 1138 times since Fri, Sep 8, 2017
    How to reset Ezeelogin admin user password or security code
    Viewed 1873 times since Thu, Jun 15, 2017
    Unable to connect to your database server using the provided settings.
    Viewed 2745 times since Thu, Jun 15, 2017
    404 error on login with nginx
    Viewed 1284 times since Wed, Jun 14, 2017
    reCaptcha: Could not open socket Connection timed out
    Viewed 1777 times since Wed, Jun 14, 2017
    Why does the ssh log have control characters and looks different from the actual input?
    Viewed 1213 times since Thu, Jun 15, 2017
    Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php
    Viewed 448 times since Fri, Aug 10, 2018