Skip to content

vedhavyas/hssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HSSH - HTTP to SSH

install

go get github.com/vedhavyas/hssh/cmd/hssh/...

Starting server

If your gobin is set under Path, you call hssh

hssh

for more details

hssh --help

Usage

Make a post to \ssh with server_ip an command_string

curl -XPOST "http://localhost:8080/ssh" -d '{"server_ip": "54.173.10.86", "command_string": "cat /usr/share/dict/words"}'

result

Once the post call is made, hssh will pick the ssh config from ~/.ssh/config and fallback to /etc/ssh/ssh_config Hssh streams the data if the output is larger than buffer. To test this, use curl. Postman doesn't support this at the moment.

Releases

No releases published

Packages

No packages published

Languages