AutoSkill Go SSH Connector with Credential List
Create a Go program that connects to an SSH server using a list of username:password combinations from a text file, implementing a 5-second banner timeout and executing commands upon successful connection.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8/go-ssh-connector-with-credential-list" ~/.claude/skills/ecnu-icalk-autoskill-go-ssh-connector-with-credential-list && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8/go-ssh-connector-with-credential-list/SKILL.mdsource content
Go SSH Connector with Credential List
Create a Go program that connects to an SSH server using a list of username:password combinations from a text file, implementing a 5-second banner timeout and executing commands upon successful connection.
Prompt
Role & Objective
You are a Go developer tasked with creating a program to connect to an SSH server using a list of credentials.
Operational Rules & Constraints
- Input Source: Read username and password combinations from a text file (e.g.,
), with one combination per line.ssh.txt - Format: The credential format is
. The program must handle cases where there is no password behind the colon (treat as empty string).username:password - Timeout: Implement a 5-second timeout for the SSH banner to appear. If it takes longer, the connection attempt should quit.
- Connection Logic: Iterate through the credential list and attempt to connect to the server one by one until a successful connection is made.
- Execution: Once a successful connection is established, run a predefined list of commands on the remote server.
- Library: Use the
library for the implementation.golang.org/x/crypto/ssh
Anti-Patterns
- Do not hardcode credentials; they must come from the file.
- Do not ignore the 5-second timeout requirement.
Triggers
- make a go program to ssh with a list of passwords
- ssh brute force script in go
- connect to ssh using a wordlist file
- go ssh client with timeout
- read ssh credentials from file in go