wzhanjun / blog

my person notes
0 stars 0 forks source link

linux ssh #31

Open wzhanjun opened 4 years ago

wzhanjun commented 4 years ago

linux ssh 配置

ssh-keygen -f  xxx       #生成指定的文件名xxx    

  ssh-copy-id -i .ssh/id_rsa.pub  username@192.168.x.xxx

.ssh 目录新增/编辑 config文件

    HOST  name
    HostName   192.168.x.xxx
    IdentityFile ~/.ssh/xxx