This tutorial will be covered a few tips regarding Linux commands. Here I was demonstrated how remote Jupyter notebook can be accessed via SSH remote port forwarding.
Tip 01: How to use tmux to divide the Linux terminal vertically. Command: ctrl-b and after that % ( shift-5) If you don't have tmux installed in your Ubuntu PC - sudo apt install tmux
Tip 02: How to log in to a remote server via SSH( my case I used password) Command: ssh "user"@ip (default port is 22) or ssh -i "key".pem "user"@ip My case: ssh sajith@192.168.8.100
Tip 03: How to create and activate Python virtual machine in Linux
If you want to know, how to create a Python virtual machine following tutorial will be helped.
Tip 04: How to find a PID and kill process chain( In my case this was happed accidentally. I forgot to kill the previous process)
Command : lsof -i TCP:"port"
If you don't have lsof installed in your Ubuntu PC - sudo apt install lsof
Tip 05: This is the important tip for this tutorial. How to access remote port using via SSH remort port forwarding. Commad: ssh -N -f -L localhost:"local port":localhost:"remote local port" "user"@"IP" Sample:
ssh -N -f -L localhost:8888:localhost:8888 sajith@192.168.8.100
This is the full video tutorial.
References:
https://www.ssh.com/ssh/tunneling/
https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding
Happy Learning :)
No comments:
Post a Comment