forked from M-Labs/artiq
1
0
Fork 0

remoting: fix multiuser access. Closes #1383

This commit is contained in:
Sebastien Bourdeauducq 2019-11-05 15:46:07 +08:00
parent 9dc82bd766
commit 307f39e900
1 changed files with 2 additions and 1 deletions

View File

@ -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 = {}