Affected Version
Master @ b6c4dc0
Expected Behavior
Application to use the default value $HOME/.ssh/config
Current Behavior
Application crashes with the following error stack:
panic: read .: is a directory
goroutine 20 [running]:
github.com/kevinburke/ssh_config.(*sshLexer).peek(0xc0000d6370, 0x0)
/go/pkg/mod/github.com/kevinburke/ssh_config@v0.0.0-20190630040420-2e50c441276c/lexer.go:202 +0xf7
github.com/kevinburke/ssh_config.(*sshLexer).lexVoid(0xc0000d6370, 0x0)
/go/pkg/mod/github.com/kevinburke/ssh_config@v0.0.0-20190630040420-2e50c441276c/lexer.go:141 +0x45
github.com/kevinburke/ssh_config.(*sshLexer).run(0xc0000d6370)
/go/pkg/mod/github.com/kevinburke/ssh_config@v0.0.0-20190630040420-2e50c441276c/lexer.go:224 +0x4a
created by github.com/kevinburke/ssh_config.lexSSH
/go/pkg/mod/github.com/kevinburke/ssh_config@v0.0.0-20190630040420-2e50c441276c/lexer.go:239 +0xd7
Steps to Reproduce
- Create the following alias
mole add alias remote test --verbose --insecure --source 192.168.33.11:9090 --destination 127.0.0.1:8080 --server mole@127.0.0.01:22122 --key test-env/ssh-server/keys/key --keep-alive-interval 2s
- Start mole with alias
$ ./bin/mole start alias test
Affected Version
Master @ b6c4dc0
Expected Behavior
Application to use the default value
$HOME/.ssh/configCurrent Behavior
Application crashes with the following error stack:
Steps to Reproduce