Skip to Content

Unable to open ssh session

How to solve the error "Unable to open session" while trying to SSH?

Synopsis: This article helps gateway users to resolve the error "Unable to open session"

Step 1: Ensure that SELinux is disabled on the Ezeelogin gateway server as well as on the remote or target host. Check the status of SELinux using following command.

root@gateway_server:~ sestatus

Step 2: If SELinux is enabled, try disabling it and after disabling reboot the machine.

root@gateway_server:~ vi /etc/selinux/config

Step 3: If this is still unresolved, check for error messages in /var/log/secure , /var/log/messages, /var/log/audit/audit.log
Step 4:Check the ezsh log of the gateway user from the gateway server.

root@gateway_server:~ /home/username/ezsh.log