amuck-landowner

SSH Chat

bigcat

Member
Verified Provider
I stumbled upon this on Hacker News. Just sharing it here cause its interesting

What is ssh-chat?

Custom SSH server written in Go. Instead of a shell, you get a chat prompt.

Simplest chat platform I've used so far.

Try

To connect,


ssh <username>@chat.shazow.net
Source on GitHub. Docker image available.

Whitelist some key, and you got yourself secure private room. But buggy though.

I just deployed it on LE VPS for giggles. 18 concurrent user, no visible load.

Have fun.
 

yomero

New Member
Maybe some kind of option to show a timestamp of the messages?

Anyway, I like it because its simple =)
 

bigcat

Member
Verified Provider
Im building one now... I need to find a way to block abuse though.
I saw people getting banned and rate-limited on the test chatroom. Maybe author have made some improvement which will soon go to GitHub.
 

Munzy

Active Member
I can't get it to install. Sad face.


I'll keep looking into it. Something to do with go.
 

Munzy

Active Member
go get github.com/shazow/ssh-chat/
package github.com/shazow/ssh-chat
        imports runtime: C source files not allowed when not using cgo: atomic_386.c defs.c float.c heapdump.c lfstack.c malloc.c mcache.c mcentral.c mem_linux.c mfixalloc.c mgc0.c mheap.c msize.c os_linux.c os_linux_386.c panic.c parfor.c proc.c runtime.c signal.c signal_386.c signal_unix.c stack.c string.c sys_x86.c vlrt.c
import cycle not allowed
package github.com/shazow/ssh-chat
        imports golang.org/x/crypto/ssh
        imports crypto/x509
        imports net
        imports runtime/cgo
        imports runtime/cgo


Any ideas how to fix this?
 
Last edited by a moderator:

mojeda

New Member
go get github.com/shazow/ssh-chat/
package github.com/shazow/ssh-chat
        imports runtime: C source files not allowed when not using cgo: atomic_386.c defs.c float.c heapdump.c lfstack.c malloc.c mcache.c mcentral.c mem_linux.c mfixalloc.c mgc0.c mheap.c msize.c os_linux.c os_linux_386.c panic.c parfor.c proc.c runtime.c signal.c signal_386.c signal_unix.c stack.c string.c sys_x86.c vlrt.c
import cycle not allowed
package github.com/shazow/ssh-chat
        imports golang.org/x/crypto/ssh
        imports crypto/x509
        imports net
        imports runtime/cgo
        imports runtime/cgo


Any ideas how to fix this?
rm -rf /

/s
 
Last edited by a moderator:

souen

Active Member
In case this might help someone, to get it running in CentOS 7:


$ cd /usr/local
# yum install git
// Get Go package url for your distro/arch at https://golang.org/dl/
# wget https://storage.googleapis.com/golang/go1.4.1.linux-amd64.tar.gz
# tar -xvf go*.tar.gz
$ export PATH=$PATH:/usr/local/go/bin

// Build
$ export GOPATH=$HOME/go
$ mkdir ~/go ~/go/bin ~/go/src
$ cd ~/go/src
$ go get github.com/shazow/ssh-chat
$ cd github.com/shazow/ssh-chat
$ make build
// build outputs to: ~/go/bin/ssh-chat

// Create ssh key for server (~/.ssh/id_rsa)
$ ssh-keygen -t rsa

// Start ssh-chat binding to desired port
$ ./go/bin/ssh-chat -i ~/.ssh/id_rsa --bind=:<port>

For Fedora, there are Go packages in the repo, yum install golang git then build.
 
Top
amuck-landowner