jesseduffield / lazydocker

The lazier way to manage everything docker
MIT License
36.31k stars 1.18k forks source link

Kitten ssh crash #572

Open sahilkmishra opened 1 month ago

sahilkmishra commented 1 month ago

Describe the bug when running kitten ssh you@your-ssh-server sudo -S lazydocker I get the error: *fs.PathError open /dev/tty: no such device or address github.com/jesseduffield/lazydocker/main.go:96 (0x928f69) runtime/internal/atomic/types.go:194 (0x4402fd) runtime/asm_amd64.s:1695 (0x4733e1) To Reproduce run kitten ssh you@your-ssh-server sudo -S lazydocker

Expected behaviour Lazydocker opens on my remote ssh. Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

mark2185 commented 1 month ago

Does that happen without sudo as well?

sahilkmishra commented 1 month ago

Does that happen without sudo as well?

I get this fun error when i try to run this. Apologies about formatting

  unalias command; 
        printf "/stderr ]; thenm -rf "$tdir"ho" 2> /dev/null < /dev/tty
                033[31m%s
                         033[m
                              n
        printf "ev/fd/2 ]; thenr" "$*" > /dev/stderr;
                033[31m%s
                         033[m
                              n
        printf "               r" "$*" > /dev/fd/2;
                033[31m%s
                         033[m
                              n
    base64_encode() { command base64 | command tr -d turn 1; fi 1; fi

                                                     n

    base64_encode() { command b64encode - | command sed  }
                                                        1d;$d
                                                              | command tr -d 

                                                                              n

    pybase64() { command "$python" -c "import sys, base64; getattr(sys.stdout, r; }
                                                                               buffer
                                                                                     , sys.stdout).write(base64.standard_b64$1(getattr(sys.stdin, 
                                                                                                                                                  buffer
    base64_encode() { command "$perl" -MMIME::Base64 -0777 -ne 
                                                               print encode_base64($_)
    base64_decode() { command "$perl" -MMIME::Base64 -ne                              ; }
                                                         print decode_base64($_)
dcs_to_kitty() { printf "e not present on remote host, ssh kitten cannot function."
                         033P@kitty-$1|%s
                                         033
unset KITTY_SHELL_INTEGRATION; exec "$login_shell" -c ot" ""ad SSH data from tty" /dev/nulle in the futurequires tar."dbd91dc20763798400358""
                                                      lazydocker
: line 93: /dev/tty: No such device or address
environment: line 75: /dev/tty: No such device or address