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 command for setting up SSH config for simple access for other applications #2240

Closed
leighmcculloch opened this issue Sep 16, 2021 · 1 comment

Comments

@leighmcculloch
Copy link

What are you trying to do?
multipass shell is a handy command when needing to get shell access, but whenever using other applications that require using SSH, it is much more inconvenient to get access. For example, if I start a multipass instance and want to SSH to it with VSCode, I need to have setup an ~/.ssh/config entry that has the IP, username, and references the identity (private key) file that is located at /var/root/Library/Application Support/multipassd/ssh-keys on macOS.

What's your proposed solution?
Add a command, such as multipass sshconfig that mutates the system .ssh/config writing in a config entry that has host name equal to the multipass instance name, and has its IP, username, and identity file configured. Something like:

Host primary
    HostName 172.16.16.7
    User ubuntu
    IdentityFile /var/root/Library/Application Support/multipassd/ssh-keys
    IdentitiesOnly yes

Additional context
N/A

@Saviq
Copy link
Collaborator

Saviq commented Sep 16, 2021

Hey @leighmcculloch yup, we have something like this planned.

Duplicate of #1957

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

2 participants