Skip to Content

Error: Server login failed. Authentication by SSH key failed!. Remote Error: (1) if: Expression Syntax..

Error: Server login failed. Authentication by SSH key failed!. Remote Error: (1) if: Expression Syntax..


Make sure the ssh user is using the bash shell.

  finger <username> or grep <username> /etc/passwd would show the shell in use.

To change shell, use the command

chsh -s /bin/bash <username>