Skip to content

Commit 2045cfa

Browse files
#23 - updated FAQ: more details on notebook instances support
1 parent 07087b9 commit 2045cfa

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

FAQ.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,20 @@ on Windows as usual.
7171

7272
Yes, the setup is similar to SageMaker Studio. Run [SageMaker_SSH_Notebook.ipynb](SageMaker_SSH_Notebook.ipynb) on the notebook instance and `sm-local-ssh-notebook connect <<notebook-instance-name>>` your local machine.
7373

74-
Review the instructions for [SageMaker Studio integration with PyCharm / VSCode](README.md#studio) for the rest of details.
74+
Add the following configuration to `~/.ssh/config` on the local machine:
75+
76+
```text
77+
Host sagemaker-notebook
78+
HostName localhost
79+
IdentityFile ~/.ssh/sagemaker-ssh-gw
80+
Port 17022
81+
User root
82+
```
83+
84+
Review the instructions for [SageMaker Studio integration with PyCharm / VSCode](README.md#studio) for more details.
85+
86+
Note that unlike `sm-local-ssh-ide`, `sm-local-ssh-notebook` doesn't support VNC or remote notebook connection. Connecting to notebook instances with SageMaker SSH Helper is more akin to connecting to a training job. It uses [SageMaker local mode](https://sagemaker.readthedocs.io/en/stable/overview.html?#local-mode) to run the container with the SSM agent.
87+
7588

7689
### How do you start the SSM session without knowing EC2 instance or container ID?
7790

@@ -307,7 +320,7 @@ torch_processor = PyTorchProcessor(
307320
role=role,
308321
instance_count=1,
309322
instance_type="ml.m5.xlarge",
310-
max_runtime_in_seconds=60 * 60 * 3,
323+
max_runtime_in_seconds=60 * 30,
311324
)
312325

313326
ssh_wrapper = SSHProcessorWrapper.create(torch_processor, connection_wait_time_seconds=wait_time)

0 commit comments

Comments
 (0)