name = "ssh_fragment"

[[elements]]
border_bottom = true
border_top = true
name = "ssh_header"
title = "🔐 SSH Credentials"
type = "section_header"

[[elements]]
help = "Absolute or relative path to SSH private key file"
name = "ssh_private_key_path"
nickel_path = ["ssh_credentials", "private_key_path"]
placeholder = "~/.ssh/id_rsa"
prompt = "Private key path"
required = true
type = "text"

[[elements]]
help = "Absolute or relative path to SSH public key file"
name = "ssh_public_key_path"
nickel_path = ["ssh_credentials", "public_key_path"]
placeholder = "~/.ssh/id_rsa.pub"
prompt = "Public key path"
required = true
type = "text"

[[elements]]
default = "torrust"
help = "Linux username for SSH access. Defaults to 'torrust'. Must be 1-32 characters, starting with letter or underscore."
name = "ssh_username"
nickel_path = ["ssh_credentials", "username"]
placeholder = "torrust"
prompt = "SSH username"
type = "text"

[[elements]]
default = "22"
help = "SSH port number (default 22). Must be between 1-65535."
name = "ssh_port"
nickel_path = ["ssh_credentials", "port"]
placeholder = "22"
prompt = "SSH port"
type = "text"
