- Notifications
You must be signed in to change notification settings - Fork1k
Use a login shell for coder ssh#18805
-
Write now it looks like the coder agent handles a lot of the environment setup when connecting ssh. However this creates limitations, especially when connecting to full system environments like VMs. It does not initialize things like Shell to a VM with regular SSH or Tailscale
Shell to same VM through coder
Rather than start the shell directly you should use the
This is the same thing that occurs when you login from a terminal or through SSH, it takes care of changing to the $HOME directory, runs PAM to setup things like DBUS or pam_mkhomedir, etc. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments
-
I think the dbus thing is happening because Tailscale is started by systemd, whereas in most situations Coder is started through an init script or cloudinit. |
BetaWas this translation helpful?Give feedback.
All reactions
-
No on our VMs Coder is also started by Systemd.
The DBUS I'm referring to is specific to user sessions and is started by the login process. It is typically started by You can see the difference in name of the process for Coder vs Tailscale and OpenSSH. Launching the shell as Coder
Tailscale
OpenSSH
|
BetaWas this translation helpful?Give feedback.