mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 08:25:27 +02:00
[GH-ISSUE #155] Is it possible to remove a particular host key? #35
Labels
No labels
answered
bug
documentation
enhancement
enhancement
feature
feature
kept-open-for-info
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/the-bastion#35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dwydler on GitHub (Mar 8, 2021).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/155
Hi Guys,
on the weeekend had to generate a new ssh key pair on Switch. By that all users get on connection attempt an error, that the fingerprint not anymore correct. Also in the output the exact command ssh-keygen is displayed for the user.
But the user can not execute the command on this shell (osh.pl). Is there a option in the configuration file of the bastion to allow this?
Regards,
Daniel
@speed47 commented on GitHub (Mar 16, 2021):
Yes, there is an osh command to do that:
--osh selfForgetHostKey --host ip.or.example.org.The documentation is over here.
For completeness sake, if remote hostkeys change often or for some reason on specific accounts you want to relax this security, you can use
--osh accountModify --account ACCOUNT --egress-strict-host-key-checking yes|no|ask|default|bypass, more info here@dwydler commented on GitHub (Mar 16, 2021):
It's technical possible to replace the the command
ssh-keygenwith the `osh.pl``?So all users have distinct and clear instructions what is to do. I am a lazy it admin.. ;-)
@speed47 commented on GitHub (Mar 17, 2021):
Actually, this is already the case, but after looking into it, I see that the output message of SSH changed a bit in the latest versions, so this is no longer correctly detected to print our own help message instead.