You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.sh that 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 sshd and 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 line PrintMotd 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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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.sh
that 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
sshd
and 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