.zshrc alias for ssh gives "unknown host"

Posted by eeeeeean on Super User See other posts from Super User or by eeeeeean
Published on 2012-11-28T20:51:41Z Indexed on 2012/11/29 5:08 UTC
Read the original article Hit count: 382

Filed under:

New zsher here.

When I do

$ ssh [email protected]

all is well. But when I create an alias in .zshrc:

alias foo='ssh [email protected]' and run foo, I get "Could not resolve hostname". Question: how do I begin to figure out what's going on? It all works for me in bash, but that has nothing to do with me knowing what I'm doing!

Update: When I change my alias to alias foo='user@ip_addess_for_foo' it works. A bug, maybe.

© Super User or respective owner

Related posts about zsh