SSH access to incus VM #1221
Replies: 1 comment 4 replies
-
The behaviour on Linux and macOS are slightly different, because the Incus instance is abstracted behind a VM on macOS. To be able to access your Incus instances directly from macOS host, you need to do two things. 1. Start with network address enabledThis will likely prompt you for a
2. Ensure your Incus instance is using the colima networkBy default, instances use the default
Afterwards, the instance should be accessible from the host. NoteThe The experience can be improved based on user feedback. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to setup a Linux environment for development on my Mac.
I use colima with incus to spin up a Linux VM (using vz virtualization with nesting enabled).
This works so far and I can start a terminal by
incus exec
, push/pull files byincus file
and also can ping the VM with the IPv4 address shown byincus list
:Now I want to connect my VS code running on the Mac through ssh with the VM. Therefore I have installed the openssh server in the VM and did following configuration beyond the default in
/etc/ssh/sshd_config
for it (since I'm still usingroot
user in VM):However, I always get "connection refused" errors when I do
ssh [email protected] -p 25
.ping 192.100.0.33
gives proper results.netstat
on the VM shows that the ssh server listens on the port:and I also checked logs
/var/log/auth.log
that show that the sshd is listening (but nothing else pops up here):What am I doing or getting wrong with my setup to not being able to connect to the VM through ssh?
Beta Was this translation helpful? Give feedback.
All reactions