I am using paramiko to do an SFTP file transfer... I was able to connect
to the remote server using an SFTP client I have just to make sure
that username and password are working.. But when i try to connect
using this script it fails ....
**hostname, username and password are declared.
# now, connect and use paramiko Transport to negotiate SSH2 across
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
t = paramiko.Transport(sock)
event = threading.Event()
if not t.is_active():
print 'SSH negotiation failed.'
print "SSH negotiation sucessful"