bash: Server: command not found
Closed this issue · 5 comments
I'm sure this is a user error, but I can't find a solution for it. I have (1) Ubuntu server that I created an sshto entry for in my config file. Its' entry is simply: hostname (ip address), user remote user account), port 22. That is it. When I execute it, I am prompted for a password, which I enter and then I get "bash: Server: command not found" and the next key press closes the session. If I go to a command prompt and try ssh (username)@(ip address), enter the same password, I get a command prompt. Any idea what is causing my issue?
Thanks!
Jon
Hi Jon,
Can you show me your ssh config file?
So this is interesting... I went ahead and generated a user cert and copied it over to the Ubuntu server, under the user account I use to authenticate. It is no longer giving me the error while authenticating via cert. I then went back removed the cert and tried username and password, but now I don't get the error. Here is the config snipit for the target Ubuntu server, from my ssh config file:
Host GrayLog #Office
HostName 192.168.X.X
user ******
port 22
Config looks good, looks like this is one of those 'strange things'.
NP)