"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
    Blank page in GUI and an error in SSH/backed shell ’ license expired!’
    Viewed 932 times since Wed, Aug 16, 2017
    Could not connect to database infinite loop on restore
    Viewed 1533 times since Wed, Jun 14, 2017
    Cannot login to ezeelogin backend - CageFS-Cloudlinux
    Viewed 1015 times since Wed, Jun 14, 2017
    Failed to Connect to IP: Permission Denied cPanel / WHM login
    Viewed 1411 times since Thu, Jun 15, 2017
    An error occurred. Please contact administrator.Connection to server.hostname closed.
    Viewed 1041 times since Wed, Jun 14, 2017
    ’Failed to establish SSH session ’
    Viewed 368 times since Fri, Jun 22, 2018
    User add failed
    Viewed 1377 times since Wed, Jun 14, 2017
    fatal: no matching mac found: unable to ssh due to strict cipher set for pci dss compliance on remote box
    Viewed 1454 times since Fri, Sep 1, 2017
    Jump server ip to be licensed?
    Viewed 1220 times since Thu, Jun 15, 2017
    Unable to add server using putty private key key pair. How to convert PPK file OpenSSH format
    Viewed 1733 times since Thu, Jun 15, 2017