Connect to you Multipass through SSH
Jovylle B
Posted on December 5, 2023
Connect to you Multipass through SSH
Go to your multipass vm
multipass shell foo
Edit ssh config and allow PasswordAuthentication
sudo nano /etc/ssh/sshd_config
find "PasswordAuthentication no" and make it "yes" instead of "no"
restart ssh
sudo systemctl restart ssh
go exit
exit
from your host do try ssh now.
ssh ubuntu@multipassIp
(get ip from multipass list
to show ip of your vm)
say yes
if it asks for fingerprint, input your password.
And it shoud work by now.
if not try this
multipass shell foo
sudo passwd ubuntu
set your password again,
and exit
try again to ssh.
And you could try this too.
inside multipass vm
sudo usermod -aG sudo ubuntu
exit and try ssh again.
đź’– đź’Ş đź™… đźš©
Jovylle B
Posted on December 5, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
githubcopilot AI Innovations at Microsoft Ignite 2024 What You Need to Know (Part 2)
November 29, 2024