Currently, whenever people Telnet to my server (or SSH), they are prompted for a username/password.
I do my own authentication afterwards on that specific user, so this is redundant. The user automatically launches a specific bash script rather than the bash shell.
I've encountered systems where if you telnet or SSH to them without specifying a user, it will automatically login and connect to a service or script. Yet, I can't find out how to change my configuration so I can do that. Most answers are related to automatically passing the password through to a remote connection.
Is it possible in Debain to configure SSH/Telnet so that if no username is specified, it defaults to this username for the script and doesn't prompt for a password either? (Essentially immediately connecting without prompting for anything).
I should still be able to manually specify a username, like
root@server - otherwise I'd have no way of getting in myself!
Here's an example of what I'm looking for:
When you SSH to
email@example.com, you instantly bypass the login screen and go straight to the BBS program.
Here is an even better example of something that does exactly what I'm looking for:
This is exactly what I'd like to. Having a username is one thing, but either the password should be bypassed or it should be null and automatically continue.
I tried modifying
sshd_config just now to allow this, and neither the old password nor a null one worked.