microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.63k stars 282 forks source link

Pipe MOTD to activated terminal #10295

Open dghw opened 1 week ago

dghw commented 1 week ago

Linux server administrators can use the /etc/motd to show messages to users upon SSH login. VS Code by default doesn't show the login terminal, but even if it is shown the MOTD is not printed correctly, I'm not sure why.

Example of login window using ssh over Windows terminal:

Logged on to server. Please don't break anything.

Last login: DATE from ADDRESS
USER@SERVER:~$

I think it would be useful it the /etc/motd message was shown correctly in the login shell, and if the login shell is not shown (as is the default setting), piped to the non-login shell that is automatically opened by VS Code.