Loads custom SSH options into the custom options list.
(self, host: SSHHost)
| 654 | self.strict_host_key_row.set_selected(0) |
| 655 | |
| 656 | def _load_custom_options(self, host: SSHHost): |
| 657 | """Loads custom SSH options into the custom options list.""" |
| 658 | if not hasattr(self, "custom_options_list") or not self.custom_options_list: |
| 659 | return |
| 660 | |
| 661 | self._clear_custom_options() |
| 662 | |
| 663 | common_options = { |
| 664 | "HostName", |
| 665 | "User", |
| 666 | "Port", |
| 667 | "IdentityFile", |
| 668 | "ForwardAgent", |
| 669 | "ProxyJump", |
| 670 | "ProxyCommand", |
| 671 | "LocalForward", |
| 672 | "RemoteForward", |
| 673 | } |
| 674 | |
| 675 | for option in host.options: |
| 676 | if option.key not in common_options: |
| 677 | self._add_custom_option_row(option.key, option.value) |
| 678 | |
| 679 | def _clear_custom_options(self): |
| 680 | """Clears all custom option rows from the list.""" |
no test coverage detected