"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
    unable to start mysql in ubuntu 14 " logger command not found"
    Viewed 2242 times since Thu, Jun 15, 2017
    Can’t connect to local MySQL server through socket ’3306 ’ in ezsh.log
    Viewed 1582 times since Thu, Jun 15, 2017
    Could not download binary package. Please manually download it from downloads.ezeelogin.com
    Viewed 310 times since Thu, Apr 4, 2019
    ssh session slow and not responsive
    Viewed 1985 times since Thu, Jun 15, 2017
    F1 - F4 keys not working in ezsh when using PuTTY
    Viewed 16535 times since Wed, Jun 14, 2017
    Could not setup Ezeelogin Web SSH service in ssh jumphost
    Viewed 827 times since Fri, Feb 16, 2018
    ERROR for site owner: Invalid domain for site key
    Viewed 3486 times since Thu, Jun 28, 2018
    User could not be found on the system:: No error information
    Viewed 278 times since Thu, May 30, 2019
    vi editor having issues while logged in via ezeelogin
    Viewed 1492 times since Wed, Jun 14, 2017
    Unable to access Control Panel Error: Error occurred while communicating with the server
    Viewed 1444 times since Thu, Jun 15, 2017