450 reputation
312
bio website
location Tokyo, Japan
age 28
visits member for 3 years, 3 months
seen Aug 29 at 1:53

Computational scientist lost in Japan


Sep
4
comment UTF-8 Not Working in PuTTY when using SSH Remote command
what is the value of $TERM on the remote machine? Also, please explain the meaning of "remote command in the connection" ... is this ssh username@server -t 'tmux' or some variant?
Aug
21
answered Download speed measures below ISP rated speed
Aug
21
comment ssh port forwarding from remote location to computers on server's network
Just wanted to come and give the final solution that I chose. The following two lines will work well in a shell script, and because of "sleep 60" it will automatically disconnect the port when I disconnect from the forwarded session. Also, this will open into a tmux session and close the ssh connection when detached (very handy for me :) )ssh -f2 -L $port:$localIP:22 workServer.com 'sleep 60' > /dev/null 2> /dev/null ; ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p $port localhost -t 'tmuxScript.sh' . It's a combination of things I found all over the web and here.
Aug
19
awarded  Supporter
Aug
19
accepted ssh port forwarding from remote location to computers on server's network
Aug
19
comment ssh port forwarding from remote location to computers on server's network
@eldering , Thanks so much. Right now I have $ ssh -N workServer.com -L 12345:192.168.x.y:22 &, and it seems to work great! Thanks a lot to both of you.
Aug
19
comment ssh port forwarding from remote location to computers on server's network
Thanks a lot for your post. After reading some other things and seeing your post, I think this almost gets me where I want to be. First, on homeC I run $ ssh workServer.com -L 2020:192.168.x.y:22, which actually takes me to workServer, but I can run in another shell ssh -p 2020 localhost to get me from homeC to 192.168.x.y (on workServer). That's rather convenient, but is there a way to suppress the original command from taking me to workServer in the terminal (ie. perform this action in the background, maybe a line in my bash profile?). Thanks a lot for the advice
Aug
19
asked ssh port forwarding from remote location to computers on server's network
Aug
18
comment How to make a pane width of tmux fixed?
Sorry that my previous answer was less helpful to you. I rethought it and added a new section above which can let you automate the resizing process. FYI this is useful to me too :)
Aug
18
revised How to make a pane width of tmux fixed?
Added information on automation after "---"
Aug
18
accepted tmux: sharing current window title (#T) from within nested tmux sessions
Aug
18
awarded  Scholar
Aug
18
comment Installing a library locally in home directory, but program doesn't recognize it
this reference is quite useful, thanks!
Aug
18
accepted Installing a library locally in home directory, but program doesn't recognize it
Aug
18
comment Installing a library locally in home directory, but program doesn't recognize it
Wow, thanks a lot for the quick reply. I ended up using LD_LIBRARY_PATH to fix the problem since I could simply apply this fix to any future library installations and always use the $HOME/local directory. Appreciate the help!
Aug
18
asked Installing a library locally in home directory, but program doesn't recognize it
Aug
16
answered tmux: Link panes?
Aug
15
awarded  Teacher
Aug
15
awarded  Student
Aug
15
revised tmux: sharing current window title (#T) from within nested tmux sessions
added 256 characters in body