ssh-copy-id指令

  1. ssh-copy-id
  • linux

  • windows
    在powershell中沒有ssh-copy-id這個指令,不過我們可以用下面指令達成相同目標

    1
    type $env:USERPROFILE\.ssh\id_rsa.pub | ssh {IP-ADDRESS-OR-FQDN} "cat >> .ssh/authorized_keys"

參考:
https://www.chrisjhart.com/Windows-10-ssh-copy-id/

Author

Steven

Posted on

2022-06-24

Updated on

2025-01-14

Licensed under

Comments