Browse Source

fix: print the wrong ssh port number (#1054)

Leo 1 year ago
parent
commit
2326312d3a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      opendevin/sandbox/ssh_box.py

+ 1 - 1
opendevin/sandbox/ssh_box.py

@@ -169,7 +169,7 @@ class DockerSSHBox(Sandbox):
         logger.info(
             # FIXME: mypy and autopep8 fight each other on this line
             # autopep8: off
-            f"Connecting to {username}@{hostname} via ssh. If you encounter any issues, you can try `ssh -v -p 2222 {username}@{hostname}` with the password '{self._ssh_password}' and report the issue on GitHub."
+            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."
         )
         self.ssh.login(hostname, username, self._ssh_password, port=self._ssh_port)