Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    how how do you alias a ssh host nome?

    hi, i know this can be done because i always see people doing it but i cant seem to work out how. instead of typing evertime i ssh in, ive seen people type
    ssh alias
    and it connects to
    does anyone know what file and to edit it and what it must contain

  2. #2
    man ssh_config
    basically , you need to edit ~/.ssh/config and for a host you want alias as your_alias , you would add


    you can then type ssh your_alias
    or simply your_alias if you add the following bash alias in your .bashrc
    alias your_alias='ssh your_alias'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts