Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration with SSH #1957

Open
zeminzhou opened this issue Feb 6, 2021 · 4 comments
Open

Add integration with SSH #1957

zeminzhou opened this issue Feb 6, 2021 · 4 comments

Comments

@zeminzhou
Copy link

What are you trying to do?
A description of what you want to happen.
I want to use VScode SSH to VM, but seemingly I can only use “multipass shell vm-name" to interact with an instance

@Saviq
Copy link
Collaborator

Saviq commented Feb 6, 2021

Hi @zeminzhou, you can use --cloud-init <file> to populate the authorized keys, like so:

ssh_authorized_keys:
    - <your key>

Then, if using Hyper-V, you can use <instance-name>.mshome.net as the host you're trying to connect to. If using VirtualBox, you'll need to forward the SSH port from the instance, or use the new --network feature to have direct networking between your host and the instance.

We plan to improve this by populating your ssh config with instances so they're always in sync.

@Saviq Saviq changed the title How should I SSH to VM in win10 ? Add integration with SSH Feb 6, 2021
@zeminzhou
Copy link
Author

Think your answer

@gparmeggiani
Copy link

We plan to improve this by populating your ssh config with instances so they're always in sync.

I think this would be very useful.

@nikelborm
Copy link

The only thing left is to manually copy or link private key from internal multipass store as explained here: #913

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants