I wish to do a local forward of port 8888:localhost:8888 so that I can ssh to my home network and get redirected to my main computer and run a jupyter notebook there. For convenience I want to make it a ssh config and have the shortcut return the token for the notebook so that I can simply go there in my browser.
My config file is
Host mystuff
HostName mystuff.duckdns.org
User ivar
Port xzyx
SessionType none
PermitLocalCommand yes
LocalCommand jupyter notebook list
LocalForward 8888 localhost:8888
This opens the tunnel but only returns "Currently running servers:" which is the line preceeding the notebooks running and their respective tokens.
How can I modify my config so as to see all that is being printed?
I have tried things like adding a LocalCommand sleep(1) before LocalForward