-
Notifications
You must be signed in to change notification settings - Fork 483
ssh command assumes the user's shell on the server is bashish #199
Description
I set up my server with tcsh as my login shell (OK, I'm a geezer!). When I do mina setup, I get a string of errors like:
Too many ('s.
Invalid null command.
Invalid null command.
Invalid null command.
-----> Done.
Too many )'s.
Looking at the code for ssh, I see it is invoked like ssh server [options] -- #!/usr/bin/env bash \n# etc..
I don't understand exactly what -- means on the ssh command line. My man page for ssh (MacOSX 10.9) does not mention it. But apparently the receiving process does not recognize the shebang and just drops it as a comment, trying to execute the rest of the commands with the default login shell.
I encountered this on a server running SmartOS (Solaris) but just confirmed the same thing happens on an Ubuntu server.
So far the only workaround I can think of is to create a file with the commands, scp it to the server and execute it with ssh. I realize this is not very satisfactory but can't think of anything else at the moment.