Tuesday, January 10, 2017

remote connection to ipython server

For deep learning to TitanX box:

On  Server:  home user project directory where you are running ipython:
 ipython notebook --no-browser --port=8080 or a port which has been port forwarded
On the remote laptop: 
ssh -N -f -L localhost:8888:localhost:8080 remote_user@remote_host
Browser: localhost:8888
if error: bind: Address already in use channel_setup_fwd_listener_tcpip: cannot listen to port: 8888 Could not request local forwarding.
run lsof to find which processes are using the port:
localhost:~ dc$ lsof -ti:8888

Then sudo kill -9 325 1764

No comments:

Post a Comment