which program I need for sftp using pramiko??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sa6113

    which program I need for sftp using pramiko??


    which program I have to install for using paramiko for sftp between a two
    windows machine in local network??
    I have installed freeSSHd for server machine but I got an Authentication
    failed erro when try to connect to server using this code :


    sock.connect((h ostname, port))
    t = paramiko.Transp ort(sock)
    event = threading.Event ()
    t.start_client( event)
    event.wait()
    if not t.is_active():
    print 'SSH negotiation failed.'
    sys.exit(1)
    else:
    print "SSH negotiation sucessful"
    event.clear()
    t.auth_password (username=usern ame, password=passwo rd,event=event)

    if not t.is_authentica ted():
    print "Authentica tion failed"

    output:

    SSH negotiation successful
    Authentication failed


    May I install any program on client computer such as openssh ?
    please help me.
    Thanks

    --
    View this message in context: http://www.nabble.com/which-program-...p20108796.html
    Sent from the Python - python-list mailing list archive at Nabble.com.

  • Larry Bates

    #2
    Re: which program I need for sftp using pramiko??

    sa6113 wrote:
    which program I have to install for using paramiko for sftp between a two
    windows machine in local network??
    I have installed freeSSHd for server machine but I got an Authentication
    failed erro when try to connect to server using this code :
    >
    >
    sock.connect((h ostname, port))
    t = paramiko.Transp ort(sock)
    event = threading.Event ()
    t.start_client( event)
    event.wait()
    if not t.is_active():
    print 'SSH negotiation failed.'
    sys.exit(1)
    else:
    print "SSH negotiation sucessful"
    event.clear()
    t.auth_password (username=usern ame, password=passwo rd,event=event)
    >
    if not t.is_authentica ted():
    print "Authentica tion failed"
    >
    output:
    >
    SSH negotiation successful
    Authentication failed
    >
    >
    May I install any program on client computer such as openssh ?
    please help me.
    Thanks
    >
    Is security really that important between two machines on the same LAN?
    If it really is that important, just use scp between the two machines.
    You don't really have to reinvent the wheel to copy files between to machines.

    -Larry

    Comment

    Working...