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.
Hi,
I wanted to run
simple_serverexample with python3.4 on windows. The problem iscryptmodule does not exist on windows so I had to replace this line with another module in python:return crypt.crypt(password, pw) == pwI tried
passlibmodule to first generate my hash password and then replace that line with:return hash.des_crypt.encrypt(password,salt="JQ")==pwand 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.