Im trying to copy a public key to the
~/.ssh/authorized_keys file on a Solaris server. It fails with this error message:
$ ssh-copy-id -i ~/.ssh/id_rsa.pub <USER>@<HOST> /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "~/.ssh/id_rsa.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys <USER>@<HOST>'s password: <PASSWORD> sh: test: argument expected
Seems like this is a problem with Solaris default tcsh shell. Is there a way to either make this work or make ssh-copy-id use bash?