瀏覽代碼

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)