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

Error: open /home/dyno/.ssh/known_hosts: no such file or directory #40

Closed
owenthereal opened this issue May 26, 2020 · 0 comments · Fixed by #41
Closed

Error: open /home/dyno/.ssh/known_hosts: no such file or directory #40

owenthereal opened this issue May 26, 2020 · 0 comments · Fixed by #41

Comments

@owenthereal
Copy link
Owner

Upterm errors out if known_hosts doesn't exist:

./build/upterm host -- bash
Error: open /home/dyno/.ssh/known_hosts: no such file or directory
Usage:
  upterm host [flags]

Examples:
  # Host a terminal session that runs $SHELL with
  # client's input/output attaching to the host's
  upterm host

  # Host a terminal session that only allows specified public key(s) to connect
  $ upterm host --authorized-key PATH_TO_PUBLIC_KEY

  # Host a session with a custom command.
  upterm host -- docker run --rm -ti ubuntu bash

  # Host a session that runs 'tmux new -t pair-programming' and
  # force clients to join with 'tmux attach -t pair-programming'.
  # This is similar to tmate.
  upterm host --force-command 'tmux attach -t pair-programming' -- tmux new -t pair-programming

  # Use a different Uptermd server and host a session via WebSocket
  upterm host --server wss://YOUR_UPTERMD_SERVER -- YOUR_COMMAND

Flags:
  -a, --authorized-key string   an authorized_keys file that lists public keys that are permitted to connect.
  -f, --force-command string    force execution of a command and attach its input/output to client's.
  -h, --help                    help for host
      --known-hosts string      a file contains the known keys for remote hosts (required). (default "/home/dyno/.ssh/known_hosts")
  -i, --private-key strings     private key for public key authentication against the upterm server (required). (default [/home/dyno/.ssh/id_rsa])
  -r, --read-only               host a read-only session. Clients won't be able to interact.
      --server string           upterm server address (required), supported protocols are shh, ws, or wss. (default "ssh://uptermd.upterm.dev:22")

FATA[0000] open /home/dyno/.ssh/known_hosts: no such file or directory 
owenthereal added a commit that referenced this issue May 28, 2020
pull bot pushed a commit to fakegit/upterm that referenced this issue Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant