SSH


Posted by on February 21, 2019, modified on February 21, 2019

  1. Change the identity files location.

    ~/.ssh/config

    Host 192.168.2.14
       HostName 192.168.2.14
       IdentityFile ~/.ssh/status/ssh/id_rsa
       User git
    
  2. How to disable strict host key checking in ssh?

    ~/.ssh/config

    Host *
        StrictHostKeyChecking no
    
  3. How to generate ssh key?

    ssh-keygen

    $ ssh-keygen -t rsa -N '' -f id_rsa
    
本站總訪問量訪客