🙌 OpenHands: AI-Driven Development
Fix: hostname in logging (#2914)
மனோஜ்குமார் பழனிச்சாமிb2b6d2ac1e00
diff --git a/opendevin/runtime/docker/ssh_box.py b/opendevin/runtime/docker/ssh_box.pyindex 63f476114d..fffe5a21e3 100644--- a/opendevin/runtime/docker/ssh_box.py+++ b/opendevin/runtime/docker/ssh_box.py@@ -419,7 +419,8 @@ class DockerSSHBox(Sandbox):else:password_msg = f"using the password '{self._ssh_password}'"logger.info('Connecting to SSH session...')- ssh_cmd = f'`ssh -v -p {self._ssh_port} {username}@{hostname}`'+ hostname_to_log = hostname.replace('host.docker.internal', 'localhost')+ ssh_cmd = f'`ssh -v -p {self._ssh_port} {username}@{hostname_to_log}`'logger.info(f'You can debug the SSH connection by running: {ssh_cmd} {password_msg}')