|
|
@ -11,13 +11,13 @@ run server
|
|
|
|
|
|
|
|
|
|
|
|
go get github.com/fangdingjun/obfssh/obfssh_server
|
|
|
|
go get github.com/fangdingjun/obfssh/obfssh_server
|
|
|
|
|
|
|
|
|
|
|
|
cp $GOPATH/src/github.com/fangdingjun/obfssh/obfssh_server/config_example.yaml config.yaml
|
|
|
|
cp $GOPATH/src/github.com/fangdingjun/obfssh/obfssh_server/config_example.yaml server_config.yaml
|
|
|
|
|
|
|
|
|
|
|
|
vim config.yaml
|
|
|
|
vim server_config.yaml
|
|
|
|
|
|
|
|
|
|
|
|
ssh-keygen -f ssh_host_rsa_key -t rsa
|
|
|
|
ssh-keygen -f ssh_host_rsa_key -t rsa
|
|
|
|
|
|
|
|
|
|
|
|
$GOPATH/bin/obfssh_server -c config.yaml
|
|
|
|
$GOPATH/bin/obfssh_server -c server_config.yaml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
run client
|
|
|
|
run client
|
|
|
@ -26,4 +26,10 @@ run client
|
|
|
|
|
|
|
|
|
|
|
|
$GOPATH/bin/obfssh_client -N -D :1234 -obfs_key some_keyworld -obfs_method rc4 -p 2022 -l user2 -pw user2 localhost
|
|
|
|
$GOPATH/bin/obfssh_client -N -D :1234 -obfs_key some_keyworld -obfs_method rc4 -p 2022 -l user2 -pw user2 localhost
|
|
|
|
|
|
|
|
|
|
|
|
this will create a socks proxy on :1234
|
|
|
|
or
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cp $GOPATH/src/github.com/fangdingjun/obfssh/obfssh_client/config_example.yaml client_config.yaml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vim client_config.yaml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$GOPATH/bin/obfssh_client -f client_config.yaml
|
|
|
|