From fa0d099707874bef58bcf210fc3f67a47afd5481 Mon Sep 17 00:00:00 2001
From: Marc Bonnici <marc.bonnici@arm.com>
Date: Sat, 1 Mar 2025 16:36:42 -0600
Subject: [PATCH] ssh: Fix incorrect method name

---
 devlib/utils/ssh.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devlib/utils/ssh.py b/devlib/utils/ssh.py
index caa0f44..e64f67b 100644
--- a/devlib/utils/ssh.py
+++ b/devlib/utils/ssh.py
@@ -181,7 +181,7 @@ def _resolve_known_hosts(strict_host_check):
         if isinstance(strict_host_check, (str, os.PathLike)):
             path = Path(strict_host_check)
         else:
-            path = Path('~/.ssh/known_hosts').expandvars()
+            path = Path('~/.ssh/known_hosts').expanduser()
     else:
         path = Path('/dev/null')