DEV Community

Indra Wahyu
Indra Wahyu

Posted on • Updated on

Save ssh login info to make easy remote ssh

Define ~/.ssh/config file with the following contents

Host meh
    HostName meh.example.com
    User admin
    Port 1234
    IdentityFile ~/.ssh/id_rsa
Enter fullscreen mode Exit fullscreen mode

Use ssh [host] to connect to the host using the config file.

ssh meh
Enter fullscreen mode Exit fullscreen mode

reference

Top comments (0)