Search code examples
ubuntusshssh-keys

Unknown cipher type error on trying execute remote command over ssh


I'm trying to execute the following command to my remote server:

$ ssh user@200.204.45.xx -c "mkdir -p ~/.tmp"

But I get the following error:

Unknown cipher type 'mkdir -p ~/.tmp'

What the error above mean?


Solution

  • No need to use -c to execute command with ssh, that option is used to choose a cipher (that's where your message is coming from ...) Just remove it. The -c command structure is for local sh.

    Try:

    ssh user@200.204.45.xx "mkdir -p ~/.tmp"