Hi there, I find the MOTD details that come up at SSH login quite handy when dealing with multiple droplets.
I’ve just switched to using Cyberduck as my ssh client on the mac and when I launch a terminal window from it, I don’t get the MOTD.
Is there a way to reinvoke the MOTD script from the cli?
NB: It still comes up if I use the standard ‘ssh root@xxx.xxx.xxx.xxx’ command from a natively launched terminal window, so I assume Cynberduck is either not invoking the MOTD script or ignoring the results at login.
Thanks in advance.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there, thanks for the suggestion. iTerm2 looks great but the key (no pun intended) thing with Cyberduck was the ability to set up mutiple profiles using different SSH keys so I didn’t have to swap out/in the different key’s I’d generated for the different servers. The other feature was theres also a Windows client which is important for me.
However, since posing my question, I downloaded a trial version of Coda which also has an SSH client and allows you to access different sites with different keys. Funny thing was … when I logged into the droplmet using Coda I got the MOTD!
This leads me to believe the there might be a setting in Cd that might be supressing the MOTD after sucessful login. I’ve deteerming that Cd invokes the native OSX terminal app …
Cheers
Cyberduck is primarily a SFTP client, not a SSH client. I recommend you use iTerm 2 instead.
Heya,
Cyberduck might be opening a non-interactive shell, which doesn’t trigger the MOTD display. Also Cyberduck’s SSH implementation may handle the login process differently, bypassing the MOTD display.
To manually invoke the MOTD script from the command line, you can run the following command:
run-parts /etc/update-motd.d
This command will execute all the scripts in /etc/update-motd.d, which generate the MOTD content you typically see when you log in via SSH.
You can also add the command to your .bashrc or .bash_profile file to display MOTD manually:
if [ -x /usr/bin/run-parts ]; then
/usr/bin/run-parts /etc/update-motd.d
fi
This will force the MOTD to display each time a shell session starts, regardless of how it’s initiated.
In general I’ll suggest you to switch to a ssh-client like iTerm, terminal and etc.
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.