pressly / sup

Super simple deployment tool - think of it like 'make' for a network of servers
https://pressly.github.io/sup
MIT License
2.48k stars 178 forks source link

piping doesn't work with dropbear server #141

Open untoreh opened 6 years ago

untoreh commented 6 years ago

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

VojtechVitek commented 6 years ago

Please, provide a full reproducer

untoreh commented 6 years ago
# 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