Update README.md
This commit is contained in:
parent
188c3a77dc
commit
d0cd3f0809
1 changed files with 36 additions and 47 deletions
83
README.md
83
README.md
|
|
@ -24,15 +24,47 @@ SSH Piper works as a proxy-like ware, and route connections by `username`, `src
|
|||
|
||||
```
|
||||
|
||||
Demo
|
||||
|
||||
[](https://sshpiper.azurewebsites.net/)
|
||||
## Demo
|
||||
|
||||
[](https://asciinema.org/a/222825)
|
||||
|
||||
## Quick start
|
||||
|
||||
Just run `showme.sh` in [sshpiperd example directory](sshpiperd/example)
|
||||
or
|
||||
Copy paste command below to run
|
||||
|
||||
```
|
||||
git clone https://github.com/tg123/sshpiper
|
||||
cd sshpiper/sshpiperd/example/
|
||||
./showme.sh
|
||||
```
|
||||
|
||||
the example script will setup a sshpiper server using
|
||||
```
|
||||
bitbucket -> bitbucket@bitbucket.org:22 # ssh 127.0.0.1 -p 2222 -l bitbucket
|
||||
github -> github@github.com:22 # ssh 127.0.0.1 -p 2222 -l github
|
||||
gitlab -> gitlab@gitlab.com:22 # ssh 127.0.0.1 -p 2222 -l gitlab
|
||||
```
|
||||
|
||||
connect to gitlab
|
||||
|
||||
```
|
||||
$ ssh 127.0.0.1 -p 2222 -l gitlab
|
||||
Permission denied (publickey).
|
||||
```
|
||||
|
||||
|
||||
connect to github.com
|
||||
|
||||
```
|
||||
$ ssh 127.0.0.1 -p 2222 -l github
|
||||
Permission denied (publickey).
|
||||
```
|
||||
|
||||
## Install
|
||||
|
||||
### Build yourself [Go 1.14+]
|
||||
### Build yourself [Go 1.18]
|
||||
|
||||
```
|
||||
git clone
|
||||
|
|
@ -57,17 +89,6 @@ docker run -d -p 2222:2222 \
|
|||
|
||||
Run with [Additional Challenge](#additional-challenge---challenger-driver)
|
||||
|
||||
use env `SSHPIPERD_CHALLENGER` to specify which challenger to use
|
||||
|
||||
```
|
||||
docker run -d -p 2222:2222 \
|
||||
-e SSHPIPERD_CHALLENGER=pam \
|
||||
-v /YOUR_PAM_CONFIG:/etc/pam.d/sshpiperd \
|
||||
-v /etc/ssh/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key \
|
||||
-v /YOUR_WORKING_DIR:/var/sshpiper \
|
||||
farmer1992/sshpiperd
|
||||
```
|
||||
|
||||
### with [Snap](https://snapcraft.io/sshpiperd)
|
||||
|
||||
[](https://snapcraft.io/sshpiperd)
|
||||
|
|
@ -88,38 +109,6 @@ _NOTE:_
|
|||
* Default working dir for snap verion is `/var/snap/sshpiperd/common`
|
||||
|
||||
|
||||
## Quick start
|
||||
|
||||
Just run `showme.sh` in [sshpiperd example directory](sshpiperd/example)
|
||||
or
|
||||
Copy paste command below to run
|
||||
|
||||
```
|
||||
go get github.com/tg123/sshpiper/sshpiperd && `go env GOPATH`/src/github.com/tg123/sshpiper/sshpiperd/example/showme.sh
|
||||
```
|
||||
|
||||
the example script will setup a sshpiper server using
|
||||
```
|
||||
bitbucket -> bitbucket@bitbucket.org:22 # ssh 127.0.0.1 -p 2222 -l bitbucket
|
||||
github -> github@github.com:22 # ssh 127.0.0.1 -p 2222 -l github
|
||||
gitlab -> gitlab@gitlab.com:22 # ssh 127.0.0.1 -p 2222 -l gitlab
|
||||
```
|
||||
|
||||
connect to gitlab
|
||||
|
||||
```
|
||||
$ ssh 127.0.0.1 -p 2222 -l gitlab
|
||||
Permission denied (publickey).
|
||||
```
|
||||
|
||||
|
||||
connect to github.com
|
||||
|
||||
```
|
||||
$ ssh 127.0.0.1 -p 2222 -l github
|
||||
Permission denied (publickey).
|
||||
```
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue