Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Paperspace/gradient-ssh-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Gradient° SSH Test

screen shot 2018-04-23 at 9 52 09 am

Simple SSH workspace to connect to your running Gradient° job.

Running this workspace

paperspace jobs create --machineType P100 --container Test-Container --ports 8888:22 --command 'bash run.sh' --workspace "https://github.com/Paperspace/gradient-ssh-test.git" 

Alternatively, you can clone this repo locally and run it from your own machine:

git clone git@github.com:Paperspace/gradient-ssh-test.git && cd gradient-ssh-test

paperspace project init

paperspace jobs create --machineType P100 --container Test-Container --ports 8888:22 --command './run.sh' 

Connecting to your running job

Once this job is running it will appear to stop at processing triggers for systemd. This is expected behavior as it waits for the SSH connection.

screen shot 2018-04-23 at 10 13 53 am

You can now SSH to your job by getting the public IP address from the your console (https://www.paperspace.com/console/jobs) and then typing:

ssh ssh root@104.196.249.111 -p 8888

Note: we are forwarding port 8888 to the container's SSH port 22 which you can see in the --ports 8888:22 portion of the job run. This is because the host node cannot expose port 22 directly as it is reserved for internal communication. (TODO: make list of ports that cannot be used)

You will be prompted for your password. A password was generated here: https://github.com/Paperspace/gradient-ssh-test/blob/master/run.sh#L4 which defaults to mys3cr3t@PW. We highly recommend changing this before running in your account.

Additional Notes

Check out the accompanying HelpDesk tutorial here