Buy me a coffee to play a crucial role in advancing this project.
Your contribution is indispensable! I'm genuinely grateful for your support ❤
ssh-keygen -t rsa -b 4096 -C "RSA 4096 bit Keys"
Generate an DSA SSH keypair with a 2048 bit private keyssh-keygen -t dsa -b 1024 -C "DSA 1024 bit Keys"
Generate an ECDSA SSH keypair with a 521 bit private keyssh-keygen -t ecdsa -b 521 -C "ECDSA 521 bit Keys"
Generate an ed25519 SSH keypair- this is a new algorithm added in OpenSSH.ssh-keygen -t ed25519
Extracting the public key from an RSA keypairopenssl rsa -pubout -in private_key.pem -out public_key.pem
Extracting the public key from an DSA keypairopenssl dsa -pubout -in private_key.pem -out public_key.pem
ssh-copy-id -i "user@hostname -p2222"
openssl x509 -in cert.pem -noout -pubkey >pubkey.pem cat pubkey.pem -----BEGIN PUBLIC KEY----- MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0TqlveKKlc2MFvEmuXJi LGBsY1t4ML4uiRADGSZlnc+7Ugv3h+MCjkkwOKiOdsNo8k4KSBIG5GcQfKYOOd17 AJvqCL6cGQbaLuqv0a64jeDm8oO8/xN/IM0oKw7rMr/2oAJOgIsfeXPkRxWWic9A VIS++H5Qi2r7bUFX+cqFsyUCAwEAAQ== -----END PUBLIC KEY-----
$ ssh-keygen -i -m PKCS8 -f pubkey.pem ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDROqW94oqVzYwW8Sa5cmIsYGxjW3gwvi6JEAMZJmWdz7tSC/eH4wKOSTA4qI52w2jyTgpIEgbkZxB8pg453XvbngfjPMhhAV0XSy3s1wUFGPWlumctOvaowxXf60y7h5zsDTSTHzO5d2agAk6Aix95c+RHFZaJz0BUhL74flCLavttQVf5yoWzJQ==