update README

tls
Dingjun 7 years ago
parent f39fed1a4b
commit 441017d722

@ -1,16 +1,16 @@
obfssh\_scp obfssh\_scp
========= =========
obfssh\_scp is a scp style sftp client support use obfssh encryption obfscp is a scp style sftp client by golang, support connect to server via TLS
usage usage
==== ====
obfssh\_scp user@host:/path/to/file local obfscp user@host:/path/to/file local
or or
obfssh\_scp local user@host:/path/to/file obfscp local user@host:/path/to/file

@ -1,7 +1,7 @@
obfssh\_client obfssh\_client
============= =============
this is obfssh\_client example this is obfssh example
usage usage
@ -9,27 +9,27 @@ usage
run server run server
go get github.com/fangdingjun/obfssh/obfssh_server go get github.com/fangdingjun/obfssh/obfsshd
cp $GOPATH/src/github.com/fangdingjun/obfssh/obfssh_server/config_example.yaml server_config.yaml cp $GOPATH/src/github.com/fangdingjun/obfssh/obfsshd/config_example.yaml server_config.yaml
vim server_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 server_config.yaml $GOPATH/bin/obfsshd -c server_config.yaml
run client run client
go get github.com/fangdingjun/obfssh/obfssh_client go get github.com/fangdingjun/obfssh/obfssh
$GOPATH/bin/obfssh_client -N -D :1234 -obfs_key some_keyworld -obfs_method rc4 -p 2022 -l user2 -pw user2 localhost $GOPATH/bin/obfssh -N -D :1234 -p 2022 -l user2 -pw user2 localhost
or or
cp $GOPATH/src/github.com/fangdingjun/obfssh/obfssh_client/config_example.yaml client_config.yaml cp $GOPATH/src/github.com/fangdingjun/obfssh/obfssh/config_example.yaml client_config.yaml
vim client_config.yaml vim client_config.yaml
$GOPATH/bin/obfssh_client -f client_config.yaml $GOPATH/bin/obfssh -f client_config.yaml

@ -1,7 +1,7 @@
obfssh\_server obfsshd
============= =============
this is obfssh\_server example this is obfsshd example
usage usage
@ -9,21 +9,21 @@ usage
run server run server
go get github.com/fangdingjun/obfssh/obfssh_server go get github.com/fangdingjun/obfssh/obfsshd
cp $GOPATH/src/github.com/fangdingjun/obfssh/obfssh_server/config_example.yaml config.yaml cp $GOPATH/src/github.com/fangdingjun/obfssh/obfsshd/config_example.yaml config.yaml
vim config.yaml vim 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/obfsshd -c config.yaml
run client run client
go get github.com/fangdingjun/obfssh/obfssh_client go get github.com/fangdingjun/obfssh/obfssh
$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 -p 2022 -l user2 -pw user2 localhost
this will create a socks proxy on :1234 this will create a socks proxy on :1234

@ -10,6 +10,7 @@ listen:
key: key:
cert: cert:
- -
# this listen for TLS
port: 2023 port: 2023
key: server.key key: server.key
cert: server.crt cert: server.crt

Loading…
Cancel
Save