pinpox / lollypops

Lollypop Operations - NixOS Deployment Tool
https://pinpox.github.io/lollypops/
GNU General Public License v3.0
118 stars 17 forks source link

Allow using current-running username for SSH connection #40

Open christoph-heiss opened 4 months ago

christoph-heiss commented 4 months ago

Hi!

tl;dr adds the possibility to set ssh.user = null, which when uses the $USER enviroment variable the username to connect as. This is e.g. very useful for infrastructure that multiple people should be able to deploy, using their own, local username.

$USER is normally for all user session on any *nix system, set by the login shell/ssh/sudo/etc.