Now depending on what your use-case, you may want to do one of these things: If you're not seeing the IP address in the logs, make sure that you have added the SSH key when starting the execution. You can now add the path to your private key and connect: ssh -i 52.214.159.193 -p 2222 -t /bin/bash Wait for the execution to start and watch for the first log events. You’ll need the IP in order to SSH into the execution. Each machine has its own IP which is allocated by the cloud provider (e.g. Valohai will either run the execution on an existing virtual machine or create a new instance. You need to start the Valohai execution before you can connect to it. Never include the keys in your version control! Finally, change the TCP/IP port if your network setup requires it. Make sure to download and store the private key in a secure location. Alternatively, you can click on the Generate new SSH key button and use the generate keys. If you created the keypair yourself, Copy-paste the entire contents of the my-debug-key.pub file into the text field. Start a Valohai execution with the “Run with SSH” enabled. vh exec run -adhoc -debug-key-file=/tmp/remote-debug-key.pub -debug-port 2222 train Valohai GUI ![]() Start a Valohai execution with extra parameters debug-key-file for your public key file and debug-portfor the port you have open for the debug connections. Update your version by running pip install -upgrade valohai-cli on your own machine. You’ll need valohai-cli version 0.17.0 or higher to run executions with debugging enabled from the CLI. my-debug-key is the private key you need for connecting to the execution.my-debug-key.pub is the public key you paste into UI before starting an execution.ssh-keygen -t rsa -b 4096 -N '' -f my-debug-key Use ssh-keygen to create a new SSH key pair. Valohai can create the keypair automatically for you when starting the execution from the UI but if you want to create the keys yourself, follow the instructions here. Note that the debug connection we are establishing here is to the Docker container only and should not be the same one you might be using to access the server where the container runs. You may re-use an existing keypair, but please be mindful of regenerating it periodically according to your security standards. Create an SSH keypair (optional)Īn SSH key pair is required for securing the connection. However, you’ll still need the SSH Private Key (generated below) in order to authenticate and successfully connect. Setting the source as 0.0.0.0/0 means that inbound connections will be allowed from all addresses. Specified protocols and ports: * TCP: with the port number you specified in your Valohai organization’s settings.Source: Depending on the organization settings you can either set Source as 0.0.0.0/0 to allow connections from anywhere or whitelist certain IP ranges/source tags. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |