Comments (5)
I've found a solution, thanks to this issue #19
- In windows terminal (
cmd
, NOTwsl
), generate a rsa key incmd
, and place your public key on the mila cluster. You can also do this forwsl
separately, but you won't be using this for themila code
command. - If required, install python using the Microsoft Store (likely other methods work, just haven't tried).
- Run
pip install milatools
incmd
to install it on the windows side. - Add the location of
milatools
andvscode
to your WindowsPath
following this guide. - For reference, the paths I needed to add were:
C:\Users\Joseph Viviano\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0
C:\Users\Joseph Viviano\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts
C:\Users\Joseph Viviano\AppData\Local\Programs\Microsoft VS Code\bin
.
- Save all entries, and restart your windows terminal (completely close and relaunch, do not try to open a new
cmd
tab!!!). - Now,
mila code
will work incmd
, but it will not be able to launchcode
(I don't understand why). To resolve this, you must runmila code path/to/remote/folder
from an Administrator instance ofcmd
.
So when all is said and done, you simply launch cmd
as an admin, then run mila code <path>
, and you can run your remote vscode instance on the mila cluster from Windows 11.
from milatools.
Yes -- this does not work, it produces the behaviour in the first post. I've now successfully performed the second post on two different Windows machines successfully.
from milatools.
I doubt it will ever work on WSL - it's a win11 limitation I think - It's worth reproducing the effort on the cmd side.
from milatools.
Hey @josephdviviano , did you try running mila init
inside the WSL shell, to setup your ssh config?
from milatools.
I've found a solution, thanks to this issue #19
In windows terminal (
cmd
, NOTwsl
), generate a rsa key incmd
, and place your public key on the mila cluster. You can also do this forwsl
separately, but you won't be using this for themila code
command.If required, install python using the Microsoft Store (likely other methods work, just haven't tried).
Run
pip install milatools
incmd
to install it on the windows side.Add the location of
milatools
andvscode
to your WindowsPath
following this guide.For reference, the paths I needed to add were:
C:\Users\Joseph Viviano\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0
C:\Users\Joseph Viviano\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts
C:\Users\Joseph Viviano\AppData\Local\Programs\Microsoft VS Code\bin
.Save all entries, and restart your windows terminal (completely close and relaunch, do not try to open a new
cmd
tab!!!).Now,
mila code
will work incmd
, but it will not be able to launchcode
(I don't understand why). To resolve this, you must runmila code path/to/remote/folder
from an Administrator instance ofcmd
.So when all is said and done, you simply launch
cmd
as an admin, then runmila code <path>
, and you can run your remote vscode instance on the mila cluster from Windows 11.
@josephdviviano thanks for this. Have you been able to find a workaround to make this work with WSL? Your setup is based on CMD, and I have set up everything on WSL already.
from milatools.
Related Issues (20)
- [v0.1.2] `mila code` with `--persist` fails!
- [v0.1.2] Intermittent connection errors ("ssh-copy-id appears to have failed", "An error occured while trying to establish a connection with mila")
- [v0.0.18] Issue running the command `mila init` HOT 1
- Bug with mila init ssh path in WSL HOT 1
- [v0.1.3-post.1+db9b7bc] Issue running the command `mila code` HOT 1
- [v0.0.18] Issue running the command `mila serve` HOT 1
- [Feature Request] Avoid making unneeded SSH connections to Mila cluster
- [v0.0.18] Issue running the command `mila code`: socket.gaierror: [Errno -3] Temporary failure in name resolution
- Error running VSCode from Windows terminal
- Impossible to "ssh-copy-id mila" in the "mila init" process on Windows 11 HOT 1
- [v0.0.18] Issue running the command `mila code`
- The ControlMaster/ControlPath/ControlPersist SSH entries added by `mila init` are not supported on Windows
- The `hostname -s` command used to check if running on the Mila cluster isn't supported on Windows
- `mila init` doesn't work if a non-default name (path) is selected for the SSH public key during `ssh-keygen`
- Unable to install milatools with Poetry HOT 1
- (master) Bug in `mila init`: `'tuple' has no attribute 'pop'`
- [v0.0.18] Issue running the command `mila code`
- `mila init` seems to create ssh keys with a passphrase (sometimes?)
- Feature suggestion: config file HOT 1
- [v0.0.18] Issue running the command `mila init` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from milatools.