a | b | |
---|
0 | | - | #!/usr/bin/env python |
---|
0 | | - | # -*- encoding: utf-8 -*- |
---|
0 | | - | import paramiko |
---|
0 | | - | |
---|
0 | | - | ssh_server = '192.168.1.1' |
---|
0 | | - | ssh_user = 'sshuser' |
---|
0 | | - | ssh_port = 22 |
---|
0 | | - | passwd = 'sshpasswd' |
---|
0 | | - | port_to_forward = 8000 |
---|
0 | | - | vnc_port = 5900 |
---|
0 | | - | |
---|
0 | | - | ssh = paramiko.SSHClient() |
---|
0 | | - | ssh.load_system_host_keys() |
---|
0 | | - | ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) |
---|
0 | | - | ssh.connect(ssh_server, port=ssh_port, username=ssh_user, password=passwd) |
---|
0 | | - | t = ssh.get_transport() |
---|
0 | | - | t.request_port_forward('', port_to_forward) |
---|
0 | | - | t.open_forwarded_tcpip_channel((ssh_server, port_to_forward), ('localhost', vnc_port)) |
---|
| 0 | + | iDc81B <a href="http://yechwyflvdxu.com/">yechwyflvdxu</a>, [url=http://kyglztqbxawy.com/]kyglztqbxawy[/url], [link=http://dqplwdgamywz.com/]dqplwdgamywz[/link], http://wesbkapweexc.com/ |
---|
... | |
---|