aker-gateway / Aker

SSH bastion/jump host/jumpserver
Other
566 stars 71 forks source link

Cannot start aker #87

Open nfieric opened 5 years ago

nfieric commented 5 years ago

I receive the below error when trying to start aker.py. CentOS7, Python 2.7.5. Any idea why this would be occurring?

[root@localhost aker]# ./aker.py Traceback (most recent call last): File "./aker.py", line 174, in Aker().build_tui() File "./aker.py", line 130, in init self.user = User(self.posix_user) File "./aker.py", line 81, in init self.hosts = Hosts(config, self.name, gateway_hostgroup, idp) File "/usr/bin/aker/hosts.py", line 88, in init self.idp = IdPFactory.getIdP(idp)(config, username, gateway_hostgroup) File "/usr/bin/aker/IdPFactory.py", line 35, in getIdP return idp_class UnboundLocalError: local variable 'idp_class' referenced before assignment

anazmy commented 5 years ago

What is the content of "/etc/aker/aker.ini" ?

Also, aker is not meant to be ran in that way. Please check the readme for details of the installation. Ideally you should have aker enforced on sshd side: ForceCommand /usr/bin/aker/aker.py