3
votes
1answer
48 views

How to properly invoke motd for SSH connections with PAM disabled

I have configured a nice motd message that shows me lots of relevant infos when I login to my VPS via SSH. As password authentication is disabled in sshd_config I would also prefer to disable PAM as ...
0
votes
1answer
527 views

Command not found when SSHing into Ubuntu 12.04

I have an issue when logging into my Ubuntu 12.04 machine via SSH. It lags for about 40 seconds after printing half of the MOTD. Then it says [...]: command not found and completes the login. My ...
3
votes
2answers
307 views

Environment variables in motd not working

I’m trying to send user login logs to my email with the users name and location. After making the script I found that environment variables can’t run in this script, I’m hoping that someone out there ...
3
votes
2answers
396 views

How to change the login notice on a custom shell?

I was trying to setup a custom shell for a temp user. sudo usermod --shell /home/nemo/a temp The contents of a: #!/bin/bash echo "Test" Unfortunately, on trying to login as user temp, I see ...