Replies: 1 comment 1 reply
-
|
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
Is it possible to configure Termux to display a Message of the Day (MOTD) on the remote console after connecting via SSH?
I've created a script at
/data/data/com.termux/files/home/.termux/motd.shthat dynamically outputs information, including current IP addresses. This script works as expected when I launch the Termux terminal directly on my Android device (the output appears when the console starts).However, when I start
sshdand connect from my PC on the local network via SSH, the MOTD doesn't show up. Instead, I only see the message indicating that key authentication was used for the connection.In the sshd_config file located at
/data/data/com.termux/files/usr/etc/ssh/sshd_config, I've uncommented the linePrintMotd yes. Despite saving the file, restarting sshd, and reconnecting, the MOTD still doesn't appear.Any insights or advice would be greatly appreciated! Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions