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

jffs2reset produces no output when run by ssh directly #5

Open
bam80 opened this issue Sep 10, 2023 · 1 comment
Open

jffs2reset produces no output when run by ssh directly #5

bam80 opened this issue Sep 10, 2023 · 1 comment

Comments

@bam80
Copy link

bam80 commented Sep 10, 2023

Normal operation:

$ ssh root@openwrt

root@OpenWrt:~# jffs2reset 
This will erase all settings and remove any installed packages. Are you sure? [N/y]
N
root@OpenWrt:~#

When run with ssh directly, no output produced:

$ ssh root@openwrt jffs2reset
# waiting for input here
N
$ 
@bam80
Copy link
Author

bam80 commented Sep 10, 2023

I found a workaround for this by running ssh with -t option:

-t Force pseudo-terminal allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services.

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

1 participant