vscode 避免每次ssh校验

  • 在本地生成public_key

image-20240512171559201

  • 将文件传到虚拟机上
scp id_rsa.pub jvmuser@192.168.137.4:.ssh

image-20240512172209605

  • 将id_rsa.pub内容写到authorized_keys中
cat id_rsa.pub >> authorized_keys

image-20240512172336231

posted @ 2024-05-16 17:46  litayun  阅读(10)  评论(0编辑  收藏  举报