What is Internet Login in CLI Servers?
We have multiple servers e.g. Ramanujan which are rack servers and internet often expires in these servers at a regular interval. So, we need to login to the internet when it expires.
OS agnostic ways
Using browsh CLI Browser
- We have
browshinstalled in the servers. - Simply type
browshin the terminal and hit enter. - It should open a CLI browser.
- Press
Ctrl + Lto go to the URL bar. - Go to https://internet.iitgn.ac.in/ and login with your credentials.
Dynamic Port Forwarding (SOCKS Proxy)
- Login from CMD/terminal using
sshcommand with dynamic port forwarding.
ssh -D 8080 username@server- Now, set the proxy in your browser to
localhost:8080and you are good to go. - Go to https://internet.iitgn.ac.in/ and login with your credentials.
- You can turn off the proxy in your browser after you are done.
Windows
Using MobaXterm
- Download and install MobaXterm from here.
- Open MobaXterm and setup a new session for the server.
- Once you are able to login via ssh. Simply type
firefoxin the terminal and hit enter. - It should automatically open a separate window with the browser.
- Go to https://internet.iitgn.ac.in/ and login with your credentials.
This could be slower than the OS agnostic ways.
Linux (Ubuntu)
- Use
sshwith additional-Xflag.
ssh -X username@server- Now, type
firefoxin the terminal and hit enter. - It should automatically open a separate window with the browser.
- Go to https://internet.iitgn.ac.in/ and login with your credentials.
This could be slower than the OS agnostic ways.
Mac
- Install
XQuartzfrom here. - In XQuartz terminal, type
ssh -X username@server. - Now, type
firefoxin the terminal and hit enter. - It should automatically open a separate window with the browser.
This could be slower than the OS agnostic ways.