diff --git a/config/version.py b/config/version.py index 07787ea..c895c23 100644 --- a/config/version.py +++ b/config/version.py @@ -2,7 +2,7 @@ from config import global_config -__version__ = "1.7.2" +__version__ = "1.7.3" def get_version_path() -> str: diff --git a/group_center/client/machine/feature/ssh/ssh_key_pair_manager.py b/group_center/client/machine/feature/ssh/ssh_key_pair_manager.py index bcd648d..c8d0a8e 100644 --- a/group_center/client/machine/feature/ssh/ssh_key_pair_manager.py +++ b/group_center/client/machine/feature/ssh/ssh_key_pair_manager.py @@ -131,8 +131,8 @@ def restore_ssh_zip(zip_path: str): target_public_key_path = \ os.path.join(system_ssh_dir, private_key_name + ".pub") - os.rename(key_pair.private_key_path, target_private_key_path) - os.rename(key_pair.public_key_path, target_public_key_path) + shutil.move(key_pair.private_key_path, target_private_key_path) + shutil.move(key_pair.public_key_path, target_public_key_path) os.chmod(target_private_key_path, 0o600) os.chmod(target_public_key_path, 0o644)