Dagger
Search

ssh-keygen

Generate a new SSH key pair.

Installation

dagger install github.com/sagikazarmark/daggerverse/ssh-keygen@v0.1.0

Entrypoint

Return Type
SshKeygen
Example
dagger -m github.com/sagikazarmark/daggerverse/ssh-keygen@2d83ae801770dcf7763e7cfbc9a171282ef6ee58 call \
func (m *myModule) example() *SshKeygen  {
	return dag.
			SshKeygen()
}
@function
def example() -> dag.SshKeygen:
	return (
		dag.ssh_keygen()
	)
@func()
example(): SshKeygen {
	return dag
		.sshKeygen()
}

Types

SshKeygen 🔗

Generate a new SSH key pair.

ed25519() 🔗

Generate a new SSH key pair using the Ed25519 algorithm.

Return Type
SshKeygenEd25519 !
Example
dagger -m github.com/sagikazarmark/daggerverse/ssh-keygen@2d83ae801770dcf7763e7cfbc9a171282ef6ee58 call \
 ed-2-5-5-1-9
func (m *myModule) example() *SshKeygenEd25519  {
	return dag.
			SshKeygen().
			Ed25519()
}
@function
def example() -> dag.SshKeygenEd25519:
	return (
		dag.ssh_keygen()
		.ed25519()
	)
@func()
example(): SshKeygenEd25519 {
	return dag
		.sshKeygen()
		.ed25519()
}

SshKeygenEd25519 🔗

generate() 🔗

Generate a new SSH key pair using the Ed25519 algorithm.

Return Type
SshKeygenKeyPair !
Arguments
NameTypeDefault ValueDescription
nameString "id_ed25519"Name used as public key file name and private key secret name. Set this to something unique if you need multiple keys.
passphraseSecret -Encrypt the private key with the given passphrase.
Example
dagger -m github.com/sagikazarmark/daggerverse/ssh-keygen@2d83ae801770dcf7763e7cfbc9a171282ef6ee58 call \
 ed-2-5-5-1-9 \
 generate
func (m *myModule) example() *SshKeygenKeyPair  {
	return dag.
			SshKeygen().
			Ed25519().
			Generate()
}
@function
def example() -> dag.SshKeygenKeyPair:
	return (
		dag.ssh_keygen()
		.ed25519()
		.generate()
	)
@func()
example(): SshKeygenKeyPair {
	return dag
		.sshKeygen()
		.ed25519()
		.generate()
}

SshKeygenKeyPair 🔗

publicKey() 🔗

Return Type
File !
Example
dagger -m github.com/sagikazarmark/daggerverse/ssh-keygen@2d83ae801770dcf7763e7cfbc9a171282ef6ee58 call \
 ed-2-5-5-1-9 \
 generate \
 public-key
func (m *myModule) example() *File  {
	return dag.
			SshKeygen().
			Ed25519().
			Generate().
			PublicKey()
}
@function
def example() -> dagger.File:
	return (
		dag.ssh_keygen()
		.ed25519()
		.generate()
		.public_key()
	)
@func()
example(): File {
	return dag
		.sshKeygen()
		.ed25519()
		.generate()
		.publicKey()
}

privateKey() 🔗

Return Type
Secret !
Example
dagger -m github.com/sagikazarmark/daggerverse/ssh-keygen@2d83ae801770dcf7763e7cfbc9a171282ef6ee58 call \
 ed-2-5-5-1-9 \
 generate \
 private-key
func (m *myModule) example() *Secret  {
	return dag.
			SshKeygen().
			Ed25519().
			Generate().
			PrivateKey()
}
@function
def example() -> dagger.Secret:
	return (
		dag.ssh_keygen()
		.ed25519()
		.generate()
		.private_key()
	)
@func()
example(): Secret {
	return dag
		.sshKeygen()
		.ed25519()
		.generate()
		.privateKey()
}