Преглед на файлове

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

Leo преди 1 година
родител
ревизия
2326312d3a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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)