example

command
v0.0.0-...-330ad6c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 1 Imported by: 0

README

How to run the example

cd $GOPATH/github.com/problame/go-netssh/example
go build
# confirm the following questions with empty passphrase
ssh-keygen -t ed25519 -f exampleident
PUBKEY=$(cat exampleident.pub)
ENTRY="command=\"$(pwd)/example proxy --log /tmp/netssh_proxy.log\",restrict $PUBKEY"
echo
echo "Add the following line to your authorized_keys file: "
echo
echo $ENTRY

Then, in one terminal, run

./example serve

And in another

touch /tmp/netssh_proxy.log
tail -f

And in another

./example connect --ssh.user $(id -nu) --ssh.identity exampleident --ssh.host localhost

You should see log activity in all 3 terminals.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL