MCPcopy Create free account

hub / github.com/Mister-leo/fssh / functions

Functions183 in github.com/Mister-leo/fssh

↓ 1 callersFunctionValidatePasswordStrength
ValidatePasswordStrength 验证密码强度
internal/otp/prompt.go:153
↓ 1 callersFunctionVerify
Verify 验证 TOTP 验证码 支持 ±1 个时间窗口容错(±30秒),防止时钟偏移
internal/otp/totp.go:17
↓ 1 callersFunctionaddToSSHConfig
addToSSHConfig adds fssh agent configuration to SSH config
cmd/fssh/setup_sshconfig.go:14
↓ 1 callersFunctionanalyzeKeyFile
analyzeKeyFile analyzes a potential SSH key file
cmd/fssh/setup_keys.go:251
↓ 1 callersFunctionbuildHostBlock
(host, user, port, sock string)
cmd/fssh/config_gen.go:50
↓ 1 callersFunctioncheckInitialization
checkInitialization checks if fssh is already initialized
cmd/fssh/setup.go:105
↓ 1 callersFunctioncleanupBlankLines
cleanupBlankLines removes excessive blank lines (more than 2 consecutive)
internal/sshconfig/writer.go:483
↓ 1 callersFunctioncmdAdd
cmdAdd adds a new SSH host configuration
cmd/fssh/shell_commands.go:57
↓ 1 callersFunctioncmdAgent
()
cmd/fssh/main.go:222
↓ 1 callersFunctioncmdAlignSSHD
()
cmd/fssh/align.go:11
↓ 1 callersFunctioncmdConfigGen
()
cmd/fssh/config_gen.go:15
↓ 1 callersFunctioncmdDelete
cmdDelete deletes an SSH host configuration
cmd/fssh/shell_commands.go:380
↓ 1 callersFunctioncmdEdit
cmdEdit edits an existing SSH host configuration
cmd/fssh/shell_commands.go:238
↓ 1 callersFunctioncmdExport
()
cmd/fssh/main.go:173
↓ 1 callersFunctioncmdGlobal
cmdGlobal routes global subcommands
cmd/fssh/shell_commands.go:913
↓ 1 callersFunctioncmdGlobalEdit
cmdGlobalEdit interactively edits global configuration
cmd/fssh/shell_commands.go:710
↓ 1 callersFunctioncmdGlobalShow
cmdGlobalShow displays the current Host * configuration
cmd/fssh/shell_commands.go:639
↓ 1 callersFunctioncmdImport
()
cmd/fssh/main.go:102
↓ 1 callersFunctioncmdInfo
cmdInfo displays detailed host configuration by ID, alias, hostname, or IP
cmd/fssh/shell_commands.go:472
↓ 1 callersFunctioncmdInit
()
cmd/fssh/main.go:62
↓ 1 callersFunctioncmdList
()
cmd/fssh/main.go:146
↓ 1 callersFunctioncmdRekey
()
cmd/fssh/main.go:247
↓ 1 callersFunctioncmdRemove
()
cmd/fssh/main.go:236
↓ 1 callersFunctioncmdShow
cmdShow displays detailed host configuration
cmd/fssh/shell_commands.go:420
↓ 1 callersFunctioncmdStatus
()
cmd/fssh/main.go:211
↓ 1 callersFunctioncopyFile
(src, dst string)
cmd/fssh/config_gen.go:113
↓ 1 callersFunctiondefaultSocket
()
internal/agent/server.go:16
↓ 1 callersFunctiondefaultSocket
()
internal/config/config.go:22
↓ 1 callersFunctionderiveMasterKeyFromSeed
deriveMasterKeyFromSeed 从 OTP seed 派生 master key 使用与 OTPProvider 相同的方法,确保一致性
cmd/fssh/otp_init.go:132
↓ 1 callersFunctionensureBinaryInstalled
ensureBinaryInstalled installs fssh to /usr/local/bin if not already installed
cmd/fssh/setup_binary.go:13
↓ 1 callersFunctionensureDirs
()
internal/store/store.go:46
↓ 1 callersFunctionensureGlobalAlgos
(content string)
cmd/fssh/config_gen.go:100
↓ 1 callersFunctiongenerateAlias
generateAlias generates a suggested alias from the filename
cmd/fssh/setup_keys.go:279
↓ 1 callersFunctiongeneratePlistContent
generatePlistContent generates the plist file content
cmd/fssh/setup_launchd.go:57
↓ 1 callersFunctiongenerateSingleRecoveryCode
generateSingleRecoveryCode 生成单个恢复码 格式: XXXX-XXXX-XXXX-XXXX(去除易混淆字符)
internal/otp/recovery.go:30
↓ 1 callersFunctionhasHostBlock
(content, host string)
cmd/fssh/config_gen.go:65
↓ 1 callersFunctionimportSSHKeys
importSSHKeys scans ~/.ssh/ and interactively imports discovered keys
cmd/fssh/setup_keys.go:25
↓ 1 callersFunctionjsonUnmarshal
(b []byte, v interface{})
internal/agent/secure_agent.go:233
↓ 1 callersFunctionlistImportedKeys
--- Helper functions --- listImportedKeys lists all imported private keys
cmd/fssh/shell_commands.go:563
↓ 1 callersFunctionnewSecureAgentWithTTL
(ttlSeconds int)
internal/agent/secure_agent.go:26
↓ 1 callersFunctionparseSelection
parseSelection parses user selection string into indices Supports formats: "all", "1", "1,3", "1-3", "1,3-5,7" Note: Input should already be cleaned (
cmd/fssh/setup_keys.go:297
↓ 1 callersFunctionpreUnlockOTP
preUnlockOTP OTP 模式启动时预先解锁 提示用户输入密码和验证码,避免首次 SSH 连接时等待
internal/agent/server.go:113
↓ 1 callersFunctionprintSetupComplete
printSetupComplete prints the completion message
cmd/fssh/setup.go:174
↓ 1 callersFunctionprintWelcome
printWelcome displays the welcome banner
cmd/fssh/setup.go:88
↓ 1 callersFunctionpromptAuthMode
promptAuthMode prompts the user to select authentication mode
cmd/fssh/setup.go:124
↓ 1 callersFunctionreadFileOrEmpty
(p string)
cmd/fssh/config_gen.go:59
↓ 1 callersFunctionreplaceHostBlock
(content, host, block string)
cmd/fssh/config_gen.go:77
↓ 1 callersFunctionresolveHostQuery
resolveHostQuery resolves a query (id/alias/hostname/ip) to a host alias
cmd/fssh/shell_commands.go:536
↓ 1 callersFunctionrunInteractiveSetup
runInteractiveSetup orchestrates the complete interactive setup wizard
cmd/fssh/setup.go:15
↓ 1 callersFunctionrunLegacyInit
runLegacyInit executes the original non-interactive initialization
cmd/fssh/main.go:85
↓ 1 callersFunctionscanSSHDirectory
scanSSHDirectory scans the SSH directory for private key files
cmd/fssh/setup_keys.go:179
↓ 1 callersFunctionsetupLaunchAgent
setupLaunchAgent configures macOS LaunchAgent for auto-start
cmd/fssh/setup_launchd.go:13
↓ 1 callersFunctionstartAgent
startAgent starts the fssh agent and verifies it's running
cmd/fssh/setup_agent.go:12
↓ 1 callersMethodunlockSeed
unlockSeed 解锁 OTP seed(私有方法) 这是第一层认证:密码解密 OTP seed
internal/auth/otp.go:52
↓ 1 callersFunctionusage
()
cmd/fssh/main.go:58
FunctionBuildProxyJump
BuildProxyJump constructs a ProxyJump string
internal/sshconfig/hostconfig.go:180
MethodClearCache
ClearCache 实现 AuthProvider 接口 安全清零内存中的敏感数据
internal/auth/otp.go:195
MethodClearCache
ClearCache 清除缓存的敏感数据
internal/auth/auth.go:38
MethodClearCache
ClearCache 实现 AuthProvider 接口 Touch ID 不需要清除缓存(Keychain 自己管理)
internal/auth/touchid.go:38
FunctionDefaultInitOptions
DefaultInitOptions 返回默认初始化选项
internal/otp/init.go:27
FunctionError
(msg string, fields map[string]interface{})
internal/log/log.go:26
MethodExtension
(extensionType string, contents []byte)
internal/agent/secure_agent.go:209
FunctionGetCurrentCode
GetCurrentCode 获取当前时间的验证码 用于显示当前验证码(调试或用户查看)
internal/otp/totp.go:67
FunctionGetTimeRemaining
GetTimeRemaining 获取当前验证码剩余有效时间(秒)
internal/otp/totp.go:74
MethodIsAvailable
IsAvailable 检查认证方式是否可用 Touch ID: 检查设备是否支持 OTP: 检查配置文件是否存在
internal/auth/auth.go:32
MethodIsAvailable
IsAvailable 实现 AuthProvider 接口 检查 Keychain 中是否存在 master key
internal/auth/touchid.go:26
MethodList
()
internal/agent/secure_agent.go:72
FunctionLoadHostConfigs
LoadHostConfigs loads all hosts with complete configuration This is a wrapper around LoadAllHostConfigs from writer.go
internal/sshconfig/sshconfig.go:87
FunctionLoadHosts
()
internal/sshconfig/sshconfig.go:16
MethodMode
Mode 实现 AuthProvider 接口
internal/auth/otp.go:189
MethodMode
Mode 实现 AuthProvider 接口
internal/auth/touchid.go:32
FunctionParseProxyCommand
ParseProxyCommand attempts to parse an existing ProxyCommand
internal/sshconfig/hostconfig.go:188
FunctionParseProxyJump
ParseProxyJump parses an existing ProxyJump configuration
internal/sshconfig/hostconfig.go:231
MethodRemoveAll
()
internal/agent/secure_agent.go:228
MethodSignWithFlags
Support RSA-SHA2 algorithms when requested by the client.
internal/agent/secure_agent.go:145
MethodSigners
()
internal/agent/secure_agent.go:231
FunctionStart
(socketPath string)
internal/agent/server.go:21
MethodUnlockMasterKey
UnlockMasterKey 实现 AuthProvider 接口 通过 Touch ID 从 Keychain 加载 master key
internal/auth/touchid.go:20
FunctionUpdateConfig
UpdateConfig 更新配置字段 使用回调函数修改配置,然后保存
internal/otp/config.go:102
FunctionVerifyRecoveryCode
VerifyRecoveryCode 验证恢复码 返回是否有效和在哈希列表中的索引
internal/otp/recovery.go:67
FunctionWarn
(msg string, fields map[string]interface{})
internal/log/log.go:25
FunctiongetConfigField
getConfigField retrieves a config field value by name
internal/sshconfig/global.go:203
Functionmain
()
cmd/fssh/main.go:23
← previous101–183 of 183, ranked by callers