So you're running Windows and you need to log into Linux machines at Fermilab. Cygwin is one way to do this. Cygwin is a UNIX-like environment that runs on top of Windows. Not only is it a great way to connect to remote Fermilab Linux machines, but it provides a UNIX-like way of interacting with your Windows programs (e.g. bash shell scripts, grep, Makefile, LaTeX, etc.). I think it's more useful than all that WRQ/Reflection/Putty/Xming stuff and the price is right!
These instructions will show how to install Cygwin with Kerberos and basic X windows support. You'll need to request a Kerberos Fermilab Domain Principal before you can get a kerberos ticket.
$ cd $ mkdir .ssh
$ chmod 600 ~/.ssh/config
$ nano .bashrcand somewhere in that file include the line:
export DISPLAY=:0.0This is so X will know which screen to use. If you get "can't open display" error messages double check your .bashrc file to make sure it has the above line. Save .bashrc, close all open Cygwin64 terminals.
$ kinit your-kerberos-name@FNAL.GOV (after entering your password you'll have a kerberos ticket) $ klist (displays your kerberos ticket) $ startxwin& (this will start the X server in the background) $ xclock& (you should see an analog clock window appear; this is running LOCALLY) $ ssh firstname.lastname@example.org (connect to a remote machine; if you have a ticket AND the remote machine is supports kerberos AND you have an account on that machine it should log you right in without any prompts for username or password) $ xclock& (another clock should appear; this clock is actually running on the remote machine but is displayed on your screen... this is what X windows does for you)
A word of warning... the Cygwin package nc (aka netcat) will get flagged by the anti-virus scanner and will result in your windows PC getting blocked from the network if on site. nc is not normally installed with the base Cygwin packages, but it could be installed if you install ALL "net" packages.
If you think this 1994-retro HTML page was helpful, or if something is unclear, email me at email@example.com
last update 2017-05-10