Skip to content

mrluaf/SSH-Tunnel-Dynamic-Port-Forwarding-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

SSH Tunnel Dynamic Port Forwarding Python

Build Status

New Features!

  • Hoạt động trên tất cả các hệ điều hành: Window, UNIX
  • Chỉ mới thử nghiệm trên Python 3.x

Giới thiệu

Một thư viện sử dụng để enable kết nối SSH về Socks5 Proxy. Giống như cách sử dụng OpenSSH.

ssh -D 1080 -N username@host

Ví dụ

def test(host, username, password, port):
  controlssh = SSHProxyControler(host, username, password, port)
  sshstatus, host, port = controlssh.start()
  print(sshstatus, host, port)
  if sshstatus:

    time.sleep(30) #Make some request right here

    controlssh.stop()
    print('SSH is Stoped')
  else:
    print('Can not connect to SSH')

test('14.177.235.133', 'admin', 'admin', 1082)

Installation

pip3 install asyncssh
  • asyncssh - Full support for SSHv2, SFTP, and SCP client and server functions

Author

👤 Văn Tài

📝 License

Copyright © 2019 Văn Tài.


Made with ❤️ by Văn Tài

About

SSH Tunnel Dynamic Port Forwarding Socks5 Proxy Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages