安装Aker网关后无法通过SSH访问实例

时间:2018-07-03 06:53:55

标签: amazon-ec2 ssh centos

我有一个AWS EC2实例(亚马逊Linux ami),我通过SSH对其进行了连接,并且正在其中安装aker网关(在https://www.kitploit.com/2018/06/aker-ssh-bastionjump-hostjumpserver.html?m=1之后)。 经过以下步骤

选择Json:

创建/ etc / aker并在其中复制/usr/bin/aker/aker.ini并进行如下编辑     :

[General]
log_level = INFO
ssh_port = 22
idp = Json
hosts_file = /etc/aker/hosts.json
gateway_group = gateways

我的SSH超时(因为我在做其他事情)。 之后,我尝试再次通过SSH登录,但出现以下错误

X11 forwarding request failed on channel 0
Traceback (most recent call last):
File "/usr/bin/aker/aker.py", line 174, in <module>
Aker().build_tui()
File "/usr/bin/aker/aker.py", line 130, in __init__
self.user = User(self.posix_user)
File "/usr/bin/aker/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

我想重新获得对我实例的访问权限如何连接它。如果有人对此有答案,请告诉我

0 个答案:

没有答案
相关问题