There’s a difference between the host and the URL I’m passing to DVC ssh:///path/to/storage DVC needs a URL with the following standard: scheme://host/path, in this case, the scheme is ssh, the host is the one we already have, and the path is the absolute path were DVC will be uploading the cache.ĭVC will be uploading ( push ) and downloading ( pull) files from your remote, the URL ssh://hostname/path/to/storage is just a way to tell DVC in which directory it will store the data. Instead of password the recommended way is to use SSH keys. dvc/config file and this file is stored with Git, so, you can end up with this information on your GitHub/BitBucket/GitLab or whatever you use to distribute your code repository. Notice the -local on the last command, this is important, because the dvc remote command modifies the. So the way I can configure the SSH remote with DVC will be the following: dvc remote add -default ssh-storage ssh:///path/to/storageĭvc remote modify ssh-storage user mroutisĭvc remote modify -local ssh-storage password 123456789 Let’s say that we are using the following configurations: hostname/ip: If everything went well, and you have both, a client on your computer and a server on the other computer that you want to connect to, you can use the client (either ssh or putty by specifying the address of the remote machine - an IP or hostname that resolves to the desire destination).ĭVC needs to know the same information in order to establish a connection, and the way you configure it is by using the remote add/modify command. Now, on the computer that you want to reach, you should have the SSH server, usually sshd (or SSH Daemon), if you are running an operative system with systemd you can check if it is running by executing on the remote server systemctl status sshd (and it should say “Active”). You can type ssh -V on your terminal to see if you have the client already installed (normally included in OSX or Linux distributions), if you are on windows, the most used client is PuTTY There’s also now an official guide that incorporates a lot of this info thanks to SSH & SFTP.Ī: SSH is a protocol to connect/logging to a remote computer, and it is commonly used to execute commands or transfer files on a remote machine.įor that to work, you’ll need an SSH client and a server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |