Skip to content

server authorization with key and user/pass on windows #102

@masoudr

Description

@masoudr

Hi,
I wanted to run simple_server example with python3.4 on windows. The problem is crypt module does not exist on windows so I had to replace this line with another module in python:
return crypt.crypt(password, pw) == pw

I tried passlib module to first generate my hash password and then replace that line with:
return hash.des_crypt.encrypt(password,salt="JQ")==pw

and it got fixed.
Is there another way to authenticate a client? for example a key, not user/pass authorization.
Can you explain how to implement that?

I tried to run simple_client.py on this example but it throws the following error:
`SSH connection failed: [Errno 2] No such file or directory: 'C:\Users\Masoud\.ssh\known_hosts'

How to define user/pass or key on the client side?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions