If there is any possibility to use the parameters in zsh aliases? Something like this:
alias ssh_nokia="ssh root@<ip_parameter>"
Usage:
ssh_nokia 192.168.1.2
If there is any possibility to use the parameters in zsh aliases? Something like this:
alias ssh_nokia="ssh root@<ip_parameter>"
Usage:
ssh_nokia 192.168.1.2
In your particular case edit ~/.ssh/config (See Dave's answer below), or use:
Generally
is equivalent to alias (will produce
ssh root@1stparam 2ndparam 3rdparam …
).I would use up
~/.ssh/config
to create an alias for a particular connection, like so:Then you can:
More info: