python - Connect to SSH using paramiko throue TOR -


i want know how add tor / proxy connection:

def check_server(host, user, password, port=22):     ssh = paramiko.sshclient()     ssh.set_missing_host_key_policy(paramiko.autoaddpolicy())      #failed approch     #proxy = paramiko.proxycommand("127.0.0.1:9010")      if is_work_sshd(host,port):         return 2      try:         ssh.connect(host, username=user, password=password, port=port)         ssh.close()     except:         return 1      return 0 

i made google search lot of time didn't found answer question ! , there way php phpseclib :(

if have answer python you're welcome :)


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -