mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 15:04:36 +03:00
ssh domains now support ssh_config overrides
closes: https://github.com/wez/wezterm/issues/1149
This commit is contained in:
parent
66908eabb4
commit
e352c40905
@ -42,6 +42,10 @@ pub struct SshDomain {
|
||||
pub remote_wezterm_path: Option<String>,
|
||||
|
||||
pub ssh_backend: Option<SshBackend>,
|
||||
|
||||
/// ssh_config option values
|
||||
#[serde(default)]
|
||||
pub ssh_option: HashMap<String, String>,
|
||||
}
|
||||
impl_lua_conversion!(SshDomain);
|
||||
|
||||
|
@ -15,6 +15,7 @@ As features stabilize some brief notes about them will accumulate here.
|
||||
|
||||
* unix domains now support an optional `proxy_command` to use in place of a direct unix socket connection. [Read more about multiplexing unix domains](multiplexing.html#unix-domains)
|
||||
* [ScrollToTop](config/lua/keyassignment/ScrollToTop.md) and [ScrollToBottom](config/lua/keyassignment/ScrollToBottom.md) key assignments [#1360](https://github.com/wez/wezterm/issues/1360)
|
||||
* [SSH Domains](config/lua/SshDomain.md) now support specifying `ssh_config` overrides. [#1149](https://github.com/wez/wezterm/issues/1149)
|
||||
|
||||
#### Changed
|
||||
|
||||
|
@ -35,3 +35,22 @@ It is a lua object with the following fields:
|
||||
-- remote_wezterm_path = "/home/yourusername/bin/wezterm"
|
||||
}
|
||||
```
|
||||
|
||||
*Since: nightly builds only*
|
||||
|
||||
You may now specify a table with ssh config overrides:
|
||||
|
||||
```lua
|
||||
return {
|
||||
ssh_domains = {
|
||||
{
|
||||
name = "my.server",
|
||||
remote_address = "192.168.1.1",
|
||||
ssh_option = {
|
||||
identityfile = "/path/to/id_rsa.pub",
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -518,6 +518,9 @@ impl Reconnectable {
|
||||
}
|
||||
.to_string(),
|
||||
);
|
||||
for (k, v) in &ssh_dom.ssh_option {
|
||||
ssh_config.insert(k.to_string(), v.to_string());
|
||||
}
|
||||
|
||||
if let Some(username) = &ssh_dom.username {
|
||||
ssh_config.insert("user".to_string(), username.to_string());
|
||||
|
Loading…
Reference in New Issue
Block a user