diff --git a/tests/test_backup.py b/tests/test_backup.py
index 3c6a886045c8faea323cf4d0bdf3afc63d1c3696..ca33d90a7c3482e13aefb95613148c0e73082608 100755
--- a/tests/test_backup.py
+++ b/tests/test_backup.py
@@ -19,7 +19,7 @@ def test_ssh(server):
 
 def test_last_backup_is_recent(server, client):
     path = '/backup/%s/current' % client
-    cmd = 'ssh -y %s ls -l %s | grep current' % (server, path)
+    cmd = 'ssh -o StrictHostKeyChecking=no %s ls -l %s | grep current' % (server, path)
     status, out = subprocess.getstatusoutput(cmd)
     if status == 0:
         date = out.strip().split(' ')[-2]