Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Environment Regression #1035

Closed
russjones opened this issue Jun 1, 2017 · 0 comments
Closed

User Environment Regression #1035

russjones opened this issue Jun 1, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@russjones
Copy link
Contributor

Issue

If you use the --permit-user-env flag and do not specify a ~/.tsh/environment file, tsh does not allow you to login.

$ ./tsh --proxy=localhost --user=rjones ssh localhost
Enter password for Teleport user rjones:

ERROR REPORT:
Original Error: *trace.NotFoundError open /Users/rjones/.tsh/environment: no such file or directory
Stack Trace:
	/Users/rjones/Development/go/src/github.com/gravitational/teleport/lib/utils/environment.go:20 github.com/gravitational/teleport/lib/utils.ReadEnvironmentFile
	/Users/rjones/Development/go/src/github.com/gravitational/teleport/lib/srv/exec.go:284 github.com/gravitational/teleport/lib/srv.prepareCommand
	/Users/rjones/Development/go/src/github.com/gravitational/teleport/lib/srv/exec.go:132 github.com/gravitational/teleport/lib/srv.prepInteractiveCommand
	/Users/rjones/Development/go/src/github.com/gravitational/teleport/lib/srv/sess.go:530 github.com/gravitational/teleport/lib/srv.(*session).start
	/Users/rjones/Development/go/src/github.com/gravitational/teleport/lib/srv/sess.go:120 github.com/gravitational/teleport/lib/srv.(*sessionRegistry).openSession
	/Users/rjones/Development/go/src/github.com/gravitational/teleport/lib/srv/sshserver.go:903 github.com/gravitational/teleport/lib/srv.(*Server).dispatch
	/Users/rjones/Development/go/src/github.com/gravitational/teleport/lib/srv/sshserver.go:850 github.com/gravitational/teleport/lib/srv.(*Server).handleSessionRequests
	/usr/local/go/src/runtime/asm_amd64.s:2198 runtime.goexit
User Message: open /Users/rjones/.tsh/environment: no such file or directory
ssh: could not start shell

Solution

If ~/.tsh/environment is not found, tsh should ignore the file and move on as setting --permit-user-env allows you to specify an environment file, it doesn't not require you have one.

@russjones russjones self-assigned this Jun 1, 2017
@russjones russjones added this to the 2.2 milestone Jun 2, 2017
@kontsevoy kontsevoy added P0 and removed P1 labels Jun 3, 2017
hatched added a commit to hatched/teleport-merge that referenced this issue Nov 30, 2022
* Allow the slidetab tabs to take components and add a squared style to it.
* render skeleton for resource selector for server and database.
* Add xlarge style sizing to slidetabs
* spike for what adding app might look like.
hatched added a commit that referenced this issue Dec 20, 2022
* Allow the slidetab tabs to take components and add a squared style to it.
* render skeleton for resource selector for server and database.
* Add xlarge style sizing to slidetabs
* spike for what adding app might look like.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants