mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-16 14:55:44 +08:00
Opt: Change SSHUser requested by server
This commit is contained in:
@@ -102,6 +102,10 @@ def remote_access_service(
|
|||||||
logger.info(
|
logger.info(
|
||||||
f"Failed to establish remote access, this is the error message from service provider: {connection_info.get('message', '')}"
|
f"Failed to establish remote access, this is the error message from service provider: {connection_info.get('message', '')}"
|
||||||
)
|
)
|
||||||
|
new_username = connection_info.get("change_username", None)
|
||||||
|
if new_username:
|
||||||
|
logger.info(f"Server requested to change username, change it to: {new_username}")
|
||||||
|
State.deploy_config.SSHUser = new_username
|
||||||
else:
|
else:
|
||||||
global address
|
global address
|
||||||
address = connection_info["address"]
|
address = connection_info["address"]
|
||||||
|
|||||||
Reference in New Issue
Block a user