Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keys_dir should contain just private key #127

Open
alinzh opened this issue Dec 14, 2023 · 0 comments
Open

Keys_dir should contain just private key #127

alinzh opened this issue Dec 14, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation invalid This doesn't seem right

Comments

@alinzh
Copy link
Member

alinzh commented Dec 14, 2023

When I create a key using the commands:

ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

the command yasetnode user@localhost returns next error:

/home/my_user_name/miniconda3/lib/python3.11/site-packages/asyncssh/public_key.py", line 3216, in import_private_key_and_certs 
    raise KeyImportError('Invalid private key') 
asyncssh.public_key.KeyImportError: Invalid private key

This error occurs because the .ssh/ directory contains both a private and public key. The AsyncSSH library processes all keys like a private (in decode_private), since the config file specifies the keys_dir path, and not path to a specific file with private key.

I think it should be stated in the documentation that keys_dir should store just private key.

@issuelabeler issuelabeler bot added documentation Improvements or additions to documentation invalid This doesn't seem right labels Dec 14, 2023
akvatol added a commit to akvatol/yascheduler that referenced this issue Jun 11, 2024
…documentation for the "spawn" command. Also update attrs library version in pyproject.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation invalid This doesn't seem right
Development

No branches or pull requests

1 participant