"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
    Setting session time out for the webinterface
    Viewed 1734 times since Wed, Jun 14, 2017
    main admin user account suspended after entering incorrect security code
    Viewed 1479 times since Wed, Jun 14, 2017
    Blank page when clicking add server
    Viewed 1165 times since Wed, Aug 16, 2017
    PHP extension ’mcrypt’ is required.
    Viewed 2820 times since Wed, Jun 14, 2017
    stdin: is not a tty TERM Environment variable not set error
    Viewed 443 times since Fri, Jul 20, 2018
    "An error occurred. Please contact administrator." - got error while trying to access remote server from jump server
    Viewed 531 times since Tue, May 8, 2018
    Primary node showing the public ip instead of lan ip when cluster is configured
    Viewed 203 times since Wed, Nov 21, 2018
    vi editor not working , insert and delete not working in ssh
    Viewed 1469 times since Wed, Jun 14, 2017
    Configuration and error log files to check for troubleshooting
    Viewed 2663 times since Thu, Jun 15, 2017
    vzctl enter veid fails. Unable to get term attr: Invalid argument
    Viewed 1498 times since Wed, Jun 14, 2017