From 9bea2fbc88030dc27542f173f7a1cd758a07d705 Mon Sep 17 00:00:00 2001 From: Xingyao Wang Date: Sun, 28 Apr 2024 02:01:46 -0500 Subject: [PATCH 1/2] update debug instruction for sshbox --- opendevin/sandbox/docker/ssh_box.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opendevin/sandbox/docker/ssh_box.py b/opendevin/sandbox/docker/ssh_box.py index e21895fa410..07b66318c96 100644 --- a/opendevin/sandbox/docker/ssh_box.py +++ b/opendevin/sandbox/docker/ssh_box.py @@ -176,7 +176,9 @@ def start_ssh_session(self): 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}@{hostname}` 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) From e38b3ab1efdbadb990988318ecd4a3faf741233a Mon Sep 17 00:00:00 2001 From: Xingyao Wang Date: Sun, 28 Apr 2024 02:06:58 -0500 Subject: [PATCH 2/2] fix typo --- opendevin/sandbox/docker/ssh_box.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendevin/sandbox/docker/ssh_box.py b/opendevin/sandbox/docker/ssh_box.py index 07b66318c96..2473ceb94ed 100644 --- a/opendevin/sandbox/docker/ssh_box.py +++ b/opendevin/sandbox/docker/ssh_box.py @@ -178,7 +178,7 @@ def start_ssh_session(self): logger.info( 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}@{hostname}` with the password '{self._ssh_password} on the host machine (where you started the container)." + 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)