Skip to content

Commit

Permalink
Add PATH to .profile (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor-S authored Jul 13, 2023
1 parent 4c5d1d7 commit ed930b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/dstack/_internal/configurators/extensions/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def start(self, commands: List[str]):
[
f'echo "{self.key_pub}" >> ~/.ssh/authorized_keys',
f"env >> ~/.ssh/environment",
f'echo "export PATH=$PATH" >> ~/.profile',
f"ssh-keygen -A > /dev/null",
f"/usr/sbin/sshd -p {self.port} -o PermitUserEnvironment=yes",
]
Expand Down

0 comments on commit ed930b2

Please sign in to comment.