-1

I got the following message when trying to ssh into a server using iterm2 in macosx

colorssh:7: maximum nested function level reached; increase FUNCNEST?

When using terminal app it worked fine. Not sure where it is coming from. Any help is appreciated.

  • 1
    Did you recently set up a script called colorssh? Did you recently edit any of your shell startup files (~/.zshrc, for instance)? – Jeff Schaller Oct 28 '19 at 17:26
  • Relating - similar error: unix.stackexchange.com/a/493397/117549 – Jeff Schaller Oct 28 '19 at 17:37
  • I dont see any script names colorssh. since it works in the terminall app and not in iterm2 makes me think somehow they are loading some different configuration. but not sure exactly what to look for. – moficodes Oct 28 '19 at 19:07
0

The issue was with zsh-256color plugin.

The plugin is supposed to colorize zsh output. For some reason it fails for ssh.

Removed it and it works fine now.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.