Ezsh shell disallowed
ssh gateway users are getting the error "Ezsh shell disallowed" while trying to access the backend via ssh.
[email protected]’s password:
Last login: Tue May 7 06:04:37 2019 from 192.168.56.1
Ezsh shell disallowed.
Connection to 192.168.56.106 closed.
The ssh gateway user needs to be explicitly given access to the ezsh shell in access control. As you can see below the user zan is granted access to ezsh shell under Access Control -> User-Action->Gateway->Ezsh Shell or under User-Group ->Action->Gateway->Ezsh Shell .
If you want to allow ezsh shell for all users run the following command on jumpserver
[email protected]:~# php /usr/local/ezlogin/ez_queryrunner.php "replace into prefix_usergroup_func_acls (usergroup_id, func_id) select id, 253 from prefix_usergroups"