From 307f39e9004939a09113ba3f88b11be797dc44b9 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 5 Nov 2019 15:46:07 +0800 Subject: [PATCH] remoting: fix multiuser access. Closes #1383 --- artiq/remoting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/remoting.py b/artiq/remoting.py index 2c5f8af31..24e53b53a 100644 --- a/artiq/remoting.py +++ b/artiq/remoting.py @@ -7,6 +7,7 @@ import shlex import subprocess import hashlib import random +import getpass __all__ = ["LocalClient", "SSHClient"] @@ -62,7 +63,7 @@ class SSHClient(Client): self.jump_host = jump_host self.ssh = None self.sftp = None - self._tmpr = "/tmp/artiq" + self._tmpr = "/tmp/artiq-" + getpass.getuser() self._tmpl = tempfile.TemporaryDirectory(prefix="artiq") self._cached = [] self._downloads = {}