fix(ssh): Change bind_address to 0.0.0.0 for Docker container access (Phase 8.3)
This commit is contained in:
BIN
data/auth.sqlite
BIN
data/auth.sqlite
Binary file not shown.
@@ -34,7 +34,7 @@ impl Default for SshServerConfig {
|
|||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
port: 2024,
|
port: 2024,
|
||||||
bind_address: "127.0.0.1".to_string(),
|
bind_address: "0.0.0.0".to_string(), // ⭐⭐⭐⭐⭐ Phase 8.3: Allow Docker container access
|
||||||
security_config: SshSecurityConfig::enterprise_default(),
|
security_config: SshSecurityConfig::enterprise_default(),
|
||||||
pg_conn: None,
|
pg_conn: None,
|
||||||
upload_hook_config: crate::config::UploadHookSection::default(),
|
upload_hook_config: crate::config::UploadHookSection::default(),
|
||||||
@@ -48,7 +48,7 @@ impl SshServerConfig {
|
|||||||
let config = SshSecurityConfig::load_from_file(path)?;
|
let config = SshSecurityConfig::load_from_file(path)?;
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
port: 2024,
|
port: 2024,
|
||||||
bind_address: "127.0.0.1".to_string(),
|
bind_address: "0.0.0.0".to_string(), // ⭐⭐⭐⭐⭐ Phase 8.3: Allow Docker container access
|
||||||
security_config: config,
|
security_config: config,
|
||||||
pg_conn: None,
|
pg_conn: None,
|
||||||
upload_hook_config: crate::config::UploadHookSection::default(),
|
upload_hook_config: crate::config::UploadHookSection::default(),
|
||||||
@@ -701,7 +701,7 @@ fn extract_username_from_auth_request(
|
|||||||
pub fn run_ssh_server(port: Option<u16>, pg_conn: Option<&str>) -> Result<()> {
|
pub fn run_ssh_server(port: Option<u16>, pg_conn: Option<&str>) -> Result<()> {
|
||||||
let config = SshServerConfig {
|
let config = SshServerConfig {
|
||||||
port: port.unwrap_or(2024),
|
port: port.unwrap_or(2024),
|
||||||
bind_address: "127.0.0.1".to_string(),
|
bind_address: "0.0.0.0".to_string(), // ⭐⭐⭐⭐⭐ Phase 8.3: Allow Docker container access
|
||||||
security_config: SshSecurityConfig::enterprise_default(),
|
security_config: SshSecurityConfig::enterprise_default(),
|
||||||
pg_conn: pg_conn.map(|s| s.to_string()),
|
pg_conn: pg_conn.map(|s| s.to_string()),
|
||||||
upload_hook_config: crate::config::UploadHookSection::default(),
|
upload_hook_config: crate::config::UploadHookSection::default(),
|
||||||
|
|||||||
Reference in New Issue
Block a user