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

Could not connect: invalid option: window-size #12

Open
pvonmoradi opened this issue Apr 10, 2022 · 2 comments
Open

Could not connect: invalid option: window-size #12

pvonmoradi opened this issue Apr 10, 2022 · 2 comments

Comments

@pvonmoradi
Copy link

Any ideas?

Run lhotari/action-upterm@v1
upterm

Auto-generating ~/.ssh/known_hosts by attempting connection to uptermd.upterm.dev
Pseudo-terminal will not be allocated because stdin is not a terminal.

Warning: Permanently added 'uptermd.upterm.dev' (ED25519) to the list of known hosts.

Connection closed by xxx.yyy.zzz.aa port 22

Adding actor "pvonmoradi" to allowed users.
Fetching SSH keys registered with GitHub profiles: pvonmoradi
Fetched 1 ssh public keys
Creating a new session. Connecting to upterm server ssh://uptermd.upterm.dev:22
invalid option: window-size

invalid option: window-size

Error: 1

Here is the relavant parts from my yml file:

      - name: Setup upterm session
        uses: lhotari/action-upterm@v1
        with:
          ## limits ssh access and adds the ssh public key for the user which
          #triggered the workflow
          limit-access-to-actor: true
            ## limits ssh access and adds the ssh public keys of the listed
            #GitHub users
          limit-access-to-users: pvonmoradi
@mfn
Copy link

mfn commented May 3, 2022

Likely your runner is older than ubuntu-20.04 . The tmux specific commands used in this github action require a recent tmux version.

when I ran it on ubuntu-18.04, it failed. It works on ubuntu-20.04

@pvonmoradi
Copy link
Author

pvonmoradi commented Jul 17, 2022

when I ran it on ubuntu-18.04, it failed. It works on ubuntu-20.04

Even setting it to 20.04 doesn't fix the problem:

Run lhotari/action-upterm@v1
upterm
Auto-generating ~/.ssh/known_hosts by attempting connection to uptermd.upterm.dev
Pseudo-terminal will not be allocated because stdin is not a terminal.
Warning: Permanently added 'uptermd.upterm.dev' (ED25519) to the list of known hosts.
Connection closed by xx.yy.zz.aa port qq
Adding actor "pvonmoradi" to allowed users.
Fetching SSH keys registered with GitHub profiles: pvonmoradi
Fetched 1 ssh public keys
Creating a new session. Connecting to upterm server ssh://uptermd.upterm.dev:qq
no server running on /tmp/tmux-1001/default
Error: 1

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

No branches or pull requests

2 participants