From 0e033d77a3a2f731e4c712038769d5c811aa7114 Mon Sep 17 00:00:00 2001 From: Cong Date: Thu, 26 Mar 2020 13:22:28 +0900 Subject: [PATCH] Permit ssh user environment --- remocolab.py | 1 + 1 file changed, 1 insertion(+) diff --git a/remocolab.py b/remocolab.py index cd4ba0d..32bacd8 100644 --- a/remocolab.py +++ b/remocolab.py @@ -66,6 +66,7 @@ def _setupSSHDImpl(ngrok_token, ngrok_region): #Prevent ssh session disconnection. with open("/etc/ssh/sshd_config", "a") as f: f.write("\n\nClientAliveInterval 120\n") + f.write("PermitUserEnvironment yes\n") print("ECDSA key fingerprint of host:") ret = subprocess.run(