mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Fix: hostname in logging (#2914)
Co-authored-by: tobitege <tobitege@gmx.de>
This commit is contained in:
parent
f249254ba4
commit
b2b6d2ac1e
@ -419,7 +419,8 @@ class DockerSSHBox(Sandbox):
|
||||
else:
|
||||
password_msg = f"using the password '{self._ssh_password}'"
|
||||
logger.info('Connecting to SSH session...')
|
||||
ssh_cmd = f'`ssh -v -p {self._ssh_port} {username}@{hostname}`'
|
||||
hostname_to_log = hostname.replace('host.docker.internal', 'localhost')
|
||||
ssh_cmd = f'`ssh -v -p {self._ssh_port} {username}@{hostname_to_log}`'
|
||||
logger.info(
|
||||
f'You can debug the SSH connection by running: {ssh_cmd} {password_msg}'
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user