Skip to content

Useful information when logging in to SSH#49

Merged
baschny merged 3 commits intomasterfrom
better-motd
Jan 17, 2025
Merged

Useful information when logging in to SSH#49
baschny merged 3 commits intomasterfrom
better-motd

Conversation

@baschny
Copy link
Member

@baschny baschny commented Jan 17, 2025

Show some useful information when logging in as application user via SSH:

Useful ENV variables are shown: ENV, AWS_LOG_GROUP, BASE_URL, TYPO3_CONTEXT, FLOW_CONTEXT, PHP_VERSION.

The ENV is show nicely using figlet:

❯ make docker-ssh
ssh -A -p 1122 application@"127.0.0.1"
Linux 90a265d4c6f9 6.12.9-orbstack-00297-gaa9b46293ea3 #40 SMP Tue Jan 14 03:41:26 UTC 2025 aarch64
                                _                              
  _____  ____ _ _ __ ___  _ __ | | ___        __ _ _ __  _ __  
 / _ \ \/ / _` | '_ ` _ \| '_ \| |/ _ \_____ / _` | '_ \| '_ \ 
|  __/>  < (_| | | | | | | |_) | |  __/_____| (_| | |_) | |_) |
 \___/_/\_\__,_|_| |_| |_| .__/|_|\___|      \__,_| .__/| .__/ 
                         |_|                      |_|   |_|    

            ENV: example-app
    PHP_VERSION: 8.3.16

@baschny baschny changed the title Better motd Useful information when logging in to SSH Jan 17, 2025
@baschny baschny merged commit 706ff2b into master Jan 17, 2025
6 checks passed
@baschny baschny deleted the better-motd branch January 17, 2025 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant