Skip to content
Snippets Groups Projects
Commit ae3d86aa authored by jorge.leitemac's avatar jorge.leitemac :juggling_tone5:
Browse files

correction run.md

parent 1f372086
No related branches found
No related tags found
No related merge requests found
...@@ -11,14 +11,12 @@ pip3 install paramiko ...@@ -11,14 +11,12 @@ pip3 install paramiko
pip3 install pydantic pip3 install pydantic
pip3 install uvicorn pip3 install uvicorn
5. Make sure to edit file auth.py with the public key filename in the global public_key_file value and the private filename in the private_key_file 5. Make sure to edit file config.json with the correct informations
6. Launch host.py with the following command : 6. Launch host.py with the following command :
uvicorn auth:app --host 0.0.0.0 --port 8000 uvicorn auth:app --host 0.0.0.0 --port 8000
7. Make sure that the client host (A) does not have access to the private key. Only the public key should be present in the ssh-keys folder. 7. Make sure that the client host (A) does not have access to the private key. Only the public key should be present in the ssh-keys folder.
8. On the client host, edit the paramiko/auth_handler file with the API route of the authentication host, in the variable url
9. Edit the client.py file with the public key path in the public_key_file variable.
10. Launch the client with the following command : 10. Launch the client with the following command :
python3 client.py python3 client.py
...@@ -28,7 +26,6 @@ python3 client.py ...@@ -28,7 +26,6 @@ python3 client.py
13. On the client host, connexion is established 13. On the client host, connexion is established
# Protype 2 : Custom OpenSSH agent # Protype 2 : Custom OpenSSH agent
# Protype 1 : Python paramiko custom client
1. Generate simple rsa key into folder ssh-key 1. Generate simple rsa key into folder ssh-key
2. Make sure to have a host (A) and a server (B) that can connect trough SSH with this key 2. Make sure to have a host (A) and a server (B) that can connect trough SSH with this key
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment