From 567736d215445b3fb1c5a9e89cf2ff036756868d Mon Sep 17 00:00:00 2001 From: Will George Date: Wed, 2 Sep 2020 15:47:53 -0400 Subject: [PATCH] update readme to clarify installation instructions --- README.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c6d2e63..fb91e3c 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,7 @@ simple concurrent ssh server posing as cisco ios ## installation install dependencies -``` -go get github.com/gliderlabs/ssh -go get golang.org/x/crypto/ssh/terminal -``` +All dependencies are included in the `/vendor` folder, so no installation step is necessary. ## starting ``` @@ -22,6 +19,19 @@ go run cis.go 2020/08/22 00:17:34 starting ssh server on port :10027 ``` +alternatively you can compile and run in separate steps (useful for docker images, etc): + +```bash +user@LAPTOP-6PM8GPB2:/mnt/c/projects/cisgo-ios$ go build cis.go +user@LAPTOP-6PM8GPB2:/mnt/c/projects/cisgo-ios$ ./cis +2020/09/02 15:46:31 starting cis.go ssh server on port :10008 +2020/09/02 15:46:31 starting cis.go ssh server on port :10005 +2020/09/02 15:46:31 starting cis.go ssh server on port :10000 +2020/09/02 15:46:31 starting cis.go ssh server on port :10006 +... +``` + + ## using ssh into one of the open ports with ```admin``` as password and run "show version" or "show ip interface brief" or "show running-config" ```