You are not logged in.
I've been trying to ssh into a user that launches a program on login instead of a shell, but I can't. It could be an issue of passwords, but I've been trying that with nothing happening, and I now think it is the ssh that's the problem, anyone help? (Maybe I just setup the server wrong, I'll see if it's that in the meantime.)
Offline
What do you mean you "cant". I suspect you can and you do, but if there is no shell the currently-unspecified program runs and ssh exits.
Why do you have the user configured to launch the program on login instead of a shell and how is this configured? And what program is it?
Note that you can specify a program to run in your ssh command other than the default login shell for the user.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
if there is no shell the currently-unspecified program runs and ssh exits.
The "Unspecified Program" is browsh, so it should stay running.
Why do you have the user configured to launch the program on login instead of a shel
So I can (stupid, i know) access browsh from my phone, as the ssh demo is:
1) a demo, I only get 15 minutes
2) currently down, so I just run a server so I can run browsh.
how is this configured?
usermod -s /bin/browsh
(when I made the user it was in bash so i could setup browsh (yes, i could have done it with root))
Offline
So just specify an actual shell (e.g., bash) in your ssh command. Just be sure to also include the -t flag, e.g.:
ssh -t <user>@<hostname> bash
Then check the logs to see why browsh is failing. I suspect it's due to an incompatibility with the terminal (TERM value) specified by the phone.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I discovered that the problem was not this, sorry!
Offline