mirror of
https://github.com/ovh/the-bastion.git
synced 2025-02-28 09:32:58 +08:00
29 lines
661 B
ReStructuredText
29 lines
661 B
ReStructuredText
|
==================
|
||
|
selfForgetHostKey
|
||
|
==================
|
||
|
|
||
|
Forget a known host key from your bastion account
|
||
|
=================================================
|
||
|
|
||
|
|
||
|
.. admonition:: usage
|
||
|
:class: cmdusage
|
||
|
|
||
|
--osh selfForgetHostKey [--host HOST] [--port PORT]
|
||
|
|
||
|
.. program:: selfForgetHostKey
|
||
|
|
||
|
|
||
|
.. option:: --host HOST
|
||
|
|
||
|
Host to remove from the known_hosts file
|
||
|
|
||
|
.. option:: --port PORT
|
||
|
|
||
|
Port to look for in the known_hosts file (default: 22)
|
||
|
|
||
|
|
||
|
This command is useful to remove the man-in-the-middle warning when a key has changed,
|
||
|
however please verify that the host key change is legit before using this command.
|
||
|
The warning SSH gives is there for a reason.
|