We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e7b3ab commit c7de41cCopy full SHA for c7de41c
pywebio/platform/remote_access.py
@@ -12,6 +12,7 @@
12
import time
13
import shlex
14
from subprocess import Popen, PIPE
15
+import shutil
16
17
logger = logging.getLogger(__name__)
18
@@ -109,6 +110,9 @@ def start_remote_access_service_(**kwargs):
109
110
111
112
def start_remote_access_service(**kwargs):
113
+ if not shutil.which("ssh"):
114
+ return logging.error("No ssh client found, remote access service can't start.")
115
+
116
server = os.environ.get('PYWEBIO_REMOTE_ACCESS', 'app.pywebio.online:1022')
117
if ':' not in server:
118
server_port = 22
0 commit comments