BinaryONe commited on
Commit
c6ecbc2
·
1 Parent(s): 5334b6e
Files changed (2) hide show
  1. WebSSH/__main__.py +2 -0
  2. start.sh +4 -1
WebSSH/__main__.py CHANGED
@@ -134,6 +134,8 @@ def make_app(loop):
134
  ),
135
  template_path=os.path.join(base_dir, '', 'templates'),
136
  static_path=os.path.join(base_dir, '', 'static'),
 
 
137
  #websocket_ping_interval=options.wpintvl,
138
  #origin_policy=get_origin_setting(options),
139
  )
 
134
  ),
135
  template_path=os.path.join(base_dir, '', 'templates'),
136
  static_path=os.path.join(base_dir, '', 'static'),
137
+ origin_policy=options.origin,
138
+ origin=options.origin,
139
  #websocket_ping_interval=options.wpintvl,
140
  #origin_policy=get_origin_setting(options),
141
  )
start.sh CHANGED
@@ -139,12 +139,15 @@ add_ssh_key_to_agent
139
 
140
  echo "* Contents of id_rsa of Admin:"
141
  cat /home/admin/.ssh/id_rsa
 
142
  cat /home/admin/.ssh/config
 
 
143
 
144
  start_ssh_service
145
 
146
  echo "* Testing admin's SSH login locally *"
147
- ssh -o StrictHostKeyChecking=no -i /home/admin/.ssh/id_rsa admin@0.0.0.0 -p 2222 exit
148
 
149
  activate_virtual_env
150
  set_working_directory
 
139
 
140
  echo "* Contents of id_rsa of Admin:"
141
  cat /home/admin/.ssh/id_rsa
142
+ echo "* Contents of config of Admin:"
143
  cat /home/admin/.ssh/config
144
+ echo "* Contents of known hosts of Admin:"
145
+ cat /app/ssh/ssh_known_hosts
146
 
147
  start_ssh_service
148
 
149
  echo "* Testing admin's SSH login locally *"
150
+ ssh -o StrictHostKeyChecking=no -i /home/admin/.ssh/id_rsa@0.0.0.0 -p 2222 exit
151
 
152
  activate_virtual_env
153
  set_working_directory