title: How to specify port number with Paramiko
body: <p>I am trying to connect to Avaya Media server using Paramiko module.
  It connects when I dont specify a port.But I want it to mimick the behaviour of Avaya Site Administration/Putty using port 5022.
  Can someone please help me with the code</p>
  
  <pre><code>import paramiko
  import time
  import os
  import sys
  time.sleep(1)
  
  ip = "10.xx.xx.xx"
  host = ip
  username = "admin"
  password = "xxxxxxxx"
  
  ssh=paramiko.SSHClient()
  ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  ssh.connect(ip,username=username,password=password)
  channel=ssh.invoke_shell()
  channel.send("vt100 \n")
  time.sleep(5)
  output=channel.recv(9999)
  print output
  channel.send("almdisplay \n")
  time.sleep(5)
  output=channel.recv(9999)
  print output
  </code></pre>
  
  <p>This code works. But how can code it to use Port 5022?</p>