If you just want to do this for convenience, the simplest method is to add a stanza to your ssh configuration file `~/.ssh/config` : Host my_server_name HostName some_ip_address User my_name ... any other options Then you can `ssh my_server_name` to connect.