Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Update debug instruction for SSH Box (#1425)

Xingyao Wangfe8bb51f1722
diff --git a/opendevin/sandbox/docker/ssh_box.py b/opendevin/sandbox/docker/ssh_box.py
index 7982c12844..142c3c211f 100644
--- a/opendevin/sandbox/docker/ssh_box.py
+++ b/opendevin/sandbox/docker/ssh_box.py
@@ -176,7 +176,9 @@ class DockerSSHBox(Sandbox):
else:
username = 'root'
logger.info(
- f"Connecting to {username}@{hostname} via ssh. If you encounter any issues, you can try `ssh -v -p {self._ssh_port} {username}@{hostname}` with the password '{self._ssh_password}' and report the issue on GitHub."
+ f"Connecting to {username}@{hostname} via ssh. "
+ f"If you encounter any issues, you can try `ssh -v -p {self._ssh_port} {username}@{hostname}` with the password '{self._ssh_password}' and report the issue on GitHub. "
+ f"If you started OpenDevin with `docker run`, you should try `ssh -v -p {self._ssh_port} {username}@localhost` with the password '{self._ssh_password} on the host machine (where you started the container)."
)
self.ssh.login(hostname, username, self._ssh_password,
port=self._ssh_port)