Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

ssh: unsupported key type "OPENSSH PRIVATE KEY" #59

Open
psyhomb opened this issue Nov 24, 2019 · 0 comments
Open

ssh: unsupported key type "OPENSSH PRIVATE KEY" #59

psyhomb opened this issue Nov 24, 2019 · 0 comments

Comments

@psyhomb
Copy link

psyhomb commented Nov 24, 2019

Using GitHub identity to share a session does not work for me!

Version: Teleconsole 0.4.0

SSH key pair was created with following command (without passphrase) and public key was successfully added to GitHub account:

ssh-keygen -t rsa -b 2048 -f .ssh/$github_user_key

Session was created by running:

teleconsole -i $github_user

When I try to join a previously created session I'm always encountering following error:

teleconsole -vv -i ~/.ssh/$github_user_key join $session_id

Teleconsole: joining session...
ssh: unsupported key type "OPENSSH PRIVATE KEY"
DEBU[0000] 
ERROR REPORT:
Original Error: *errors.errorString ssh: unsupported key type "OPENSSH PRIVATE KEY"
Stack Trace:
	/home/myusername/.cache/yay/teleconsole/src/go/src/github.com/gravitational/teleport/lib/client/interfaces.go:61 github.com/gravitational/teleport/lib/client.(*Key).AsAgentKey
	/home/myusername/.cache/yay/teleconsole/src/go/src/github.com/gravitational/teleport/lib/client/keyagent.go:62 github.com/gravitational/teleport/lib/client.NewLocalAgent
	/home/myusername/.cache/yay/teleconsole/src/go/src/github.com/gravitational/teleport/lib/client/api.go:334 github.com/gravitational/teleport/lib/client.NewClient
	/home/myusername/.cache/yay/teleconsole/src/go/src/github.com/gravitational/teleconsole/clt/clt.go:289 github.com/gravitational/teleconsole/clt.Join
	/home/myusername/.cache/yay/teleconsole/src/go/src/github.com/gravitational/teleconsole/clt/main.go:166 github.com/gravitational/teleconsole/clt.(*App).Join
	/home/myusername/.cache/yay/teleconsole/src/go/src/github.com/gravitational/teleconsole/main.go:37 main.main
	/usr/lib/go/src/runtime/proc.go:212 runtime.main
	/usr/lib/go/src/runtime/asm_amd64.s:1358 runtime.goexit
User Message: 
  file=teleconsole/main.go:61 func=main.fatalIf

If I try to use public key, which btw does not make any sense but I had to try it out 🙂:

teleconsole -vv -i ~/.ssh/$github_user_key.pub join $session_id

DEBU[0000] Server: https://teleconsole.com:443, Args: [join $session_id]  file=teleconsole/main.go:32 func=main.main
Teleconsole: joining session...
ssh: no key found
DEBU[0000] 
ERROR REPORT:
Original Error: *errors.errorString ssh: no key found
Stack Trace:
	/home/myusername/.cache/yay/teleconsole/src/go/src/github.com/gravitational/teleconsole/lib/identity.go:179 github.com/gravitational/teleconsole/lib.loginFromFile
	/home/myusername/.cache/yay/teleconsole/src/go/src/github.com/gravitational/teleconsole/lib/identity.go:92 github.com/gravitational/teleconsole/lib.MakeIdentityFromFile
	/home/myusername/.cache/yay/teleconsole/src/go/src/github.com/gravitational/teleconsole/clt/clt.go:355 github.com/gravitational/teleconsole/clt.findUserFor
	/home/myusername/.cache/yay/teleconsole/src/go/src/github.com/gravitational/teleconsole/clt/clt.go:271 github.com/gravitational/teleconsole/clt.Join
	/home/myusername/.cache/yay/teleconsole/src/go/src/github.com/gravitational/teleconsole/clt/main.go:166 github.com/gravitational/teleconsole/clt.(*App).Join
	/home/myusername/.cache/yay/teleconsole/src/go/src/github.com/gravitational/teleconsole/main.go:37 main.main
	/usr/lib/go/src/runtime/proc.go:212 runtime.main
	/usr/lib/go/src/runtime/asm_amd64.s:1358 runtime.goexit
User Message: 
  file=teleconsole/main.go:61 func=main.fatalIf
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant