Skip to content

Commit

Permalink
try explicitly specifying the shell to run
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Aug 19, 2022
1 parent ea44b33 commit 5e4230a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_forward/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def _check_shell(self):
def put_file(self, remote_path, content):
client = self.session.client
with client.get_transport().open_channel(kind='session') as channel:
channel.exec_command(f'cat > {remote_path}')
channel.exec_command(f'sh -c "cat > {remote_path}"')
channel.sendall(content.encode())

def run_command(
Expand Down

0 comments on commit 5e4230a

Please sign in to comment.