Namespace src/Ssh
src/Ssh
Overview
Directory src/Ssh
file source src/Ssh/checkAccess.sh
Ssh::checkAccess
check if host can accessed using ssh private key without requiring interactivity
Arguments
- $1 (host:String): the host to join
- … (args:String[]): other parameters to pass to the ssh command
Exit codes
- 1: if ssh fails
- 2: if missing host argument
Requires
- Ssh::requireSshCommand
src/Ssh/fixAuthenticityOfHostCantBeEstablished.sh
file source src/Ssh/fixAuthenticityOfHostCantBeEstablished.sh
Ssh::fixAuthenticityOfHostCantBeEstablished
Fix ssh issues
- The authenticity of host ‘www.host.net (140.82.121.4)’ can’t be established
- And Offending key for IP
Arguments
- $1 (host:String): the host to fix
Environment variables
- HOME (String):
Exit codes
- 1: is ssh-keygen fails
Requires
- Ssh::requireSshKeygenCommand
- Ssh::requireSshKeyscanCommand
src/Ssh/requireSshCommand.sh
file source src/Ssh/requireSshCommand.sh
Ssh::requireSshCommand
ensure command ssh is available
Exit codes
- 1: if ssh command not available
Output on stderr
- diagnostics information is displayed
src/Ssh/requireSshKeygenCommand.sh
file source src/Ssh/requireSshKeygenCommand.sh
Ssh::requireSshKeygenCommand
ensure command ssh-keygen is available
Exit codes
- 1: if ssh-keygen command not available
Output on stderr
- diagnostics information is displayed
src/Ssh/requireSshKeyscanCommand.sh
file source src/Ssh/requireSshKeyscanCommand.sh
Ssh::requireSshKeyscanCommand
ensure command ssh-keyscan is available
Exit codes
- 1: if ssh-keyscan command not available
Output on stderr
- diagnostics information is displayed