Created
April 18, 2015 01:45
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ $ 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 ; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://github.com/andrewpile/ssh-copy-id/issues/2#issuecomment-189783545 for a link that points to a fix for ssh-copy-id for fish shell here:
openssh/openssh-portable@ef39e8c#diff-76f25d87bdb42afb3b6fe76947d8c696R290