Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Overview


udmg-sshkey: SSH Key conversion

UDMG Server only accepts the OpenSSH format for SFTP/SSH public keys. The udmg-sshkey tool allows to convert from other format to the OpenSSH format.

The supported input formats are:

  • OpenSSH authorized key line
  • PEM encoded formats (PKCS8, PKCS1)
  • SSH wire format (Binary ASN1 DER)

The output of the tool shows the key details and the OpenSSH format that is suitable for use during the setup of SFTP servers on UDMG:

  • Key format
  • Key algorithm
  • Key size (only for RSA)
  • SHA256 fingerprint
  • MD5 fingerprint
  • Conversion to authorized key line format

Command line usage:

udmg-sshkey -h
Usage:
  udmg-sshkey [OPTIONS] <parse | version>
Help Options:
  -h, --help  Show this help message
Available commands:
  parse    Parse an SSH Public key file
  version  Print version and exit
  
udmg-sshkey parse -h
Usage:
  udmg-sshkey [OPTIONS] parse [parse-OPTIONS]
Help Options:
  -h, --help      Show this help message
[parse command options]
      -f, --file= The public key file, accepted formats are PKCS8 (x509), OpenSSH (authorized keys), and SSH wire.  

Example with a public key in PEM format (PKCS8):

udmg-sshkey parse -f PKCS8.pub
● Public Key:
        Algorithm:           ssh-rsa
        Bits:                2048
        MD5 fingerprint:     1b:46:00:1a:74:ad:5f:79:02:7c:b8:8d:5b:62:d6:2d
        SHA-256 fingerprint: SHA256:t9VWralQjLpMTmGl8c5lIdp23IyslkxkS/BWU5uKs0Q
        Authorized keys:     ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCm8o2RH5gJqQf+vYEmWWiEjZXm3i6/ycUXiv8GkZk/N7kv6Ano2/Zt351D9DOuv7TbZlH2ZP2sfJtk7/jiFaiXYJlyrDaBN4xTagCutbkZHVGNd8ShfHoVFS38hjSXJqOG6Mdou4sET23bR6rIuaHp6Jvkit9HfTRFJPIku2YmdjZJP34i3s3wI+thSGXp5Cuj/QrbjPuCc6ya4qQQI8Pzaqo3SFcwIs68RvnadMqptZeNmYo0CJmPZEkESbmvFtiRq0wXn77P9AajQlWhCMLR3X8qJlvvrn6L/wWV033iOh49Vu0iw5ez4rDyoQ0Wabvc2GAN4/MEowarj9bFn4xn


  • No labels