wetty icon indicating copy to clipboard operation
wetty copied to clipboard

Wetty close if sending --command

Open AlexandreBourrieau opened this issue 3 years ago • 2 comments

Hello,

When I start wetty with --command option, then it close automaticaly ... Any idea to resolve thise issue ? Thanks !

AlexandreBourrieau avatar Jan 15 '22 09:01 AlexandreBourrieau

The Command flag executes the command on login, iirc once the command is finished it would close the ssh session. If you want a shell to remain open you need to ensure you spawn a shell in the command

butlerx avatar Jan 29 '22 20:01 butlerx

I tried to start wetty these ways: wetty --ssh-port 1234 --sshhost 127.0.0.1 --title "xxx" --command "export SSH_SESSION=true; /bin/bash -i" wetty --ssh-port 1234 --sshhost 127.0.0.1 --title "xxx" --command "/bin/bash -i; export SSH_SESSION=true" but didn't work though I'm pretty sure my intention is obvious. The browser page doesn't show me the login console but the "reconnect" button only; how should correct the command?

adrhc avatar Feb 13 '22 09:02 adrhc

Stale issue message

github-actions[bot] avatar Feb 13 '23 10:02 github-actions[bot]