sup icon indicating copy to clipboard operation
sup copied to clipboard

piping doesn't work with dropbear server

Open untoreh opened this issue 6 years ago • 2 comments

I have tested piping a bash script, trying to pipe to a dropbear ssh server returns

Process exited with status 129 from signal HUP

While quickly testing with sshd it works as intended. Testing with with just the ssh client (standard openssh client)

echo "echo hello" | ssh user@dropbearhost bash

works so I don't know what golang ssh or sup does differently

untoreh avatar Jun 09 '18 16:06 untoreh

Please, provide a full reproducer

VojtechVitek avatar Jun 10 '18 21:06 VojtechVitek

# Supfile
version: 0.4

networks:
  test:
    hosts:
      - root@localhost:2222


commands:
  bash:
    desc: Interactive Bash on all hosts
    stdin: true
    run: >
      bash -l
targets:

dropbear

docker run --rm -it --net=host alpine sh -c "apk add --no-cache dropbear; mkdir -p /etc/dropbear; mkdir ~/.ssh; chmod 700 ~/.ssh; echo $SSH_KEY > ~/.ssh/authorized_keys; dropbear -p 2222 -REF"

sup

echo "hello" | sup test bash

untoreh avatar Jun 11 '18 03:06 untoreh