Skip to content

Commit

Permalink
use ssh -v instead of ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyaoww committed Apr 8, 2024
1 parent e52bf1f commit 192f559
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions opendevin/sandbox/sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def __init__(
atexit.register(self.cleanup)

def setup_user(self):
# Check if the opendevin user exists
# Check if the opendevin user exists
exit_code, logs = self.container.exec_run(
['/bin/bash', '-c', 'id -u opendevin'],
workdir='/workspace',
Expand All @@ -151,7 +151,8 @@ def setup_user(self):
workdir='/workspace',
)
if exit_code != 0:
raise Exception(f'Failed to remove opendevin user in sandbox: {logs}')
raise Exception(
f'Failed to remove opendevin user in sandbox: {logs}')

# Create the opendevin user
exit_code, logs = self.container.exec_run(
Expand Down Expand Up @@ -194,7 +195,7 @@ 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 -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 2222 {username}@{hostname}` with the password '{self._ssh_password}' and report the issue on GitHub."
)
self.ssh.login(hostname, username, self._ssh_password, port=2222)

Expand Down

0 comments on commit 192f559

Please sign in to comment.