-
tomomo
@mikael
123.123.123.123 is dummy ip address.
ssh username and password is dummy.from sshtunnel import SSHTunnelForwarder import ui with SSHTunnelForwarder( 'serveripaddress', ssh_username='user', ssh_password='pass', remote_bind_address=('127.0.0.1',80), local_bind_address=('127.0.0.1',80) ) as server: wv = ui.WebView() wv.load_url('http://127.0.0.1') #wv.load_url('https://www.google.co.jp') wv.present('panel')
I also put apache in the jump server for testing.
I tried to change the source code, but I was logged in with ssh.However, the ssh session seems to be closed immediately and the process will not continue.
-
tomomo
from sshtunnel import SSHTunnelForwarder import ui server = SSHTunnelForwarder( '123.123.123.123', ssh_username='user', ssh_password='pass', remote_bind_address=('127.0.0.1',3128) ) server.start() main = ui.ScrollView(frame=(0, 0, 375, 812)) main.content_size = (375, 812) wv = ui.WebView(frame=(0, 0, *main.content_size)) wv.load_url('http://10.10.10.254') main.add_subview(wv) main.present('panel')
-
tomomo
@mikael
Tried sshtunnel.
I was connected to the jump server, but I could not access the site via the jump server. -
tomomo
I also want to access the web site via the jump server in addition to the intranet access.
-
tomomo
@mikael
Yes, I would like to access the sshtunnel or proxy on the jump server to connect to the intranet. -
tomomo
Is it possible to use proxy or sshtunnel (Dynamic Port Forwarding) in uiwebview?
-
tomomo
@cvp Thank you for the several amendments.
I will try my best to change the contents of the alert dynamically. -
-
-
tomomo
Since you cannot press the OK button, you can only delete the app from the task.
How can I use Pythonista 3.3 beta?