[PR #380] [MERGED] Load user profile when SSH #12550

Closed
opened 2026-08-05 02:06:10 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/380
Author: @braginini
Created: 7/3/2022
Status: Merged
Merged: 7/7/2022
Merged by: @mlsmaycon

Base: mainHead: load-ssh-user-profile


📝 Commits (7)

  • 9bc2e24 Load user profile when SSH
  • 27968b9 Load user for linux on SSH session
  • e0e089a Simplify SSH sys proc commands
  • abffbb0 Fix NPE with the SSH server if couldn't start
  • 0bf61f5 Stop SSH server when stopping Engine.
  • 61c38d8 Login user when SSH
  • ea05b6a Make SSH login work on Arch

📊 Changes

5 files changed (+137 additions, -13 deletions)

View changed files

📝 client/cmd/ssh.go (+3 -2)
📝 client/internal/engine.go (+16 -4)
client/ssh/login.go (+36 -0)
📝 client/ssh/server.go (+74 -7)
📝 util/common.go (+8 -0)

📄 Description

This PR fixes issues with the terminal when
running netbird ssh to a remote agent.
Every session looks up a user and loads its
profile. If no user is found, the connection is rejected.
The default user is root.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/380 **Author:** [@braginini](https://github.com/braginini) **Created:** 7/3/2022 **Status:** ✅ Merged **Merged:** 7/7/2022 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `load-ssh-user-profile` --- ### 📝 Commits (7) - [`9bc2e24`](https://github.com/netbirdio/netbird/commit/9bc2e2421185e0e60bcd0e610fd82df62d8bda9b) Load user profile when SSH - [`27968b9`](https://github.com/netbirdio/netbird/commit/27968b9a98b7a26eea2475238e89843dcc95f6fe) Load user for linux on SSH session - [`e0e089a`](https://github.com/netbirdio/netbird/commit/e0e089a48d7814bf502fc41fa4f600abd965ba17) Simplify SSH sys proc commands - [`abffbb0`](https://github.com/netbirdio/netbird/commit/abffbb05525c45382113573d087a2b9ba0998c6c) Fix NPE with the SSH server if couldn't start - [`0bf61f5`](https://github.com/netbirdio/netbird/commit/0bf61f58d42efd7fb491f8cb0f24deab816013ae) Stop SSH server when stopping Engine. - [`61c38d8`](https://github.com/netbirdio/netbird/commit/61c38d84bd37d9170a4409fec50b4fab4f283ee1) Login user when SSH - [`ea05b6a`](https://github.com/netbirdio/netbird/commit/ea05b6a35cc4c5c1c10e7e7a8dbf824642001729) Make SSH login work on Arch ### 📊 Changes **5 files changed** (+137 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/ssh.go` (+3 -2) 📝 `client/internal/engine.go` (+16 -4) ➕ `client/ssh/login.go` (+36 -0) 📝 `client/ssh/server.go` (+74 -7) 📝 `util/common.go` (+8 -0) </details> ### 📄 Description This PR fixes issues with the terminal when running netbird ssh to a remote agent. Every session looks up a user and loads its profile. If no user is found, the connection is rejected. The default user is root. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 02:06:10 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#12550