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

Move id_rsa.pub to the web interface and save it in the database after generation #847

Open
boffart opened this issue Dec 27, 2024 · 0 comments
Assignees

Comments

@boffart
Copy link
Collaborator

boffart commented Dec 27, 2024

Вынести id_rsa.pub в web интерфейс и сохранять в базе данных после генерации
Это позволит наладить связь сежду MikoPBX без пароля, по rsa ключу.

KEY_PATH="/root/.ssh/id_rsa"   
# Cоздаем открытый и закрытый ключ   
ssh-keygen -t rsa -b 4096 -f $KEY_PATH -N "" -q

# файл открытого ключа /root/.ssh/id_rsa.pub
# открытый ключ следует скопировать на другую машину. 

# Подключение по ssh 
ssh -o StrictHostKeyChecking=no [email protected]
# опция StrictHostKeyChecking позволяет игнорировать диалоговый вопрос про known_hosts
@boffart boffart self-assigned this Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant