8000 GitHub - gsmitheidw/go-ssh-copy-id: Allows you do the same as ssh-copy-id does but on Windows
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gsmitheidw/go-ssh-copy-id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-ssh-copy-id

go-ssh-copy-id is an implementation of ssh-copy-id for Windows. It is a static binary with no dependencies other than native ssh client that already is in modern Windows.

An Apple OSX build has been added (because golang makes it trivial to add another build).

Usage

Usage: go-ssh-copy-id user@host[:port] [-i=/path/to/key.pub] [-p=22]

Options:
-i      Path to your public SSH key (optional)
-p      SSH port (optional, default is 22)
-h      Display this help message
-v      Display version information

 graph TD
    A[🚪go-ssh-copy-id] --> B{🔑 Check for ed25519 key}
    B -->|Yes| C[📄 Read ed25519 key]
    B -->|No| D{🔑 Check for rsa key}
    D -->|Yes| E[📄 Read rsa key]
    D -->|No| F[❌ Error & exit]
    C --> G[🧹 Clean key data]
    E --> G
    G --> H[⚙️ Prepare SSH command]
    H --> I[🌐 Execute SSH command]
    I --> J{✅ SSH command successful?}
    J -->|Yes| K[👍 OK ]
    J -->|No| L[👎 Error & exit]
    K --> M[🏁 End]
    L --> M
    I --> N[💻 Append key to authorized_keys]
    N --> M 
Loading

Notes & Limitations

  • Doesn't check for duplicate keys
  • Assumes remote hosts are unix/linux and conform to standard path for authorized_keys file

About

Allows you do the same as ssh-copy-id does but on Windows

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0