Skip to content

Instantly share code, notes, and snippets.

@ali
Created April 18, 2015 01:45
Show Gist options
  • Save ali/aeee4516907327e3f96c to your computer and use it in GitHub Desktop.
Save ali/aeee4516907327e3f96c to your computer and use it in GitHub Desktop.
ssh-copy-id fails if the remote user's default shell is fish
~ $ ssh-copy-id -i ~/.ssh/id_rsa -o PubkeyAuthentication=no ali:@orchid.local
/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
Password:
fish: Expected a command name, got token of type 'Run job in background'. Did you mean 'COMMAND; and COMMAND'? See the help section for the 'and' builtin command by typing 'help and'.
Standard input: mkdir -p .ssh && cat >> .ssh/authorized_keys || exit 1 ;
@frederickjh
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment