Copy-SshId.psd1

@{

# Script module or binary module file associated with this manifest.
RootModule = 'Copy-SshId'

# Version number of this module.
ModuleVersion = '2.1.0'

# ID used to uniquely identify this module
GUID = '1d32d3ce-07e8-4985-bf5a-391ff62259b4'

# Author of this module
Author = '埃博拉酱'

# Copyright statement for this module
Copyright = '(c) 2026 埃博拉酱. All rights reserved.'

# Description of the functionality provided by this module
Description = @'
向目标主机安装SSH公钥实现免密登录,或从目标主机移除本机公钥恢复密码登录。

语法:
  安装公钥:Copy-SshId [用户@]主机 [-RemoteUser 用户] [-RemotePort 端口] [-KeyFile 公钥路径]
    别名:-RemoteUser=-l -RemotePort=-p -KeyFile=-i
    例:Copy-SshId root@192.168.1.10
        Copy-SshId 192.168.1.10 -l root -p 2222 -i C:\Users\xxx\.ssh\id_ed25519.pub
    未指定 -KeyFile 时自动选用 ~\.ssh 下第一个可用公钥;免密已生效时直接跳过。

  移除公钥:Remove-SshId [用户@]主机 [-RemoteUser 用户] [-RemotePort 端口] [-KeyFile 公钥路径]
    例:Remove-SshId root@192.168.1.10
    仅在当前可免密登录时执行;未指定 -KeyFile 时移除 ~\.ssh 下所有公钥对应条目。
'@




# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
PrivateData = @{

    PSData = @{



        # A URL to the license for this module.
        LicenseUri = 'https://github.com/Ebola-Chan-bot/Copy-SshId/blob/main/LICENSE'

        # A URL to the main website for this project.
        ProjectUri = 'https://github.com/Ebola-Chan-bot/Copy-SshId'

        # ReleaseNotes of this module
        ReleaseNotes = '修复Linux上的语法错误问题'


    } # End of PSData hashtable

} # End of PrivateData hashtable

}