0

I'm trying to connect to the hosting via ssh. But have this problem:

$ ssh my_login@my_ip
my_login@my_ip's password: 
date: invalid option -- 'c'
Try `date --help' for more information.
Connection to my_ip closed.

What is it?

  • It would help if you say what hosting server you are using and its operating system. It looks like the server may be misconfigured. You might be able to get round this by adding `-t bash` or `-t sh` to the end of the command. – Aenfa Apr 03 '21 at 16:12
  • It is don`t help. Ubuntu, [Hosting](http://hehost.com.ua) – Sergey Derevianko Apr 03 '21 at 16:22

1 Answers1

0

If you can connect by other means, check you .profile and .bashrc (or .kshrc, depending on the default shell) for any date command.

The idea is to keep those files as lean/small as possible first, then add back their content in order to determine what causes this error message.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250